API Keys
API keys let you authenticate without a browser. Use them for CI/CD, scripts, and automation.
Create an API key
Section titled “Create an API key”You can create keys in the dashboard or in the CLI.
From the dashboard
Section titled “From the dashboard”- 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_)
From the CLI
Section titled “From the CLI”ap auth api-keys create --name github-actionsap auth api-keys listap auth api-keys revoke <id>The CLI only shows the full key once when it is created. Save it immediately.
Use an API key
Section titled “Use an API key”Environment variable
Section titled “Environment variable”export AP_API_KEY=ap_your_key_hereap post "Hello from CI"Combined with explicit project/connection flags
Section titled “Combined with explicit project/connection flags”AP_API_KEY=ap_your_key_here ap post "Hello" --project <workspace-id> --connection linkedinSecurity
Section titled “Security”- API keys have the same permissions as the account that created them
- Store them as secrets in your CI provider, not in source control
- Rotate keys regularly
- Revoke compromised keys immediately with
ap auth api-keys revoke <id>or in Settings