API Keys
API keys let you authenticate without a browser. Use them for CI/CD, scripts, and automation.
Creating an API Key
Section titled “Creating an API Key”- Go to Settings in the web dashboard
- Click Create API Key
- Give it a name (e.g., “GitHub Actions”)
- Copy the key (it starts with
ap_)
Using an API Key
Section titled “Using an API Key”Environment variable
Section titled “Environment variable”export AP_API_KEY=ap_your_key_hereap post "Hello from CI"CLI flag
Section titled “CLI flag”ap post "Hello" --api-key ap_your_key_hereSecurity
Section titled “Security”- API keys have the same permissions as your account
- Store them as secrets in your CI system
- Rotate keys regularly
- Revoke compromised keys immediately in Settings