Skip to content

API Keys

API keys let you authenticate without a browser. Use them for CI/CD, scripts, and automation.

You can create keys in the dashboard or in the CLI.

  1. Go to Settings in the web dashboard
  2. Click Create API Key
  3. Give it a name (e.g., “GitHub Actions”)
  4. Copy the key (it starts with ap_)
Terminal window
ap auth api-keys create --name github-actions
ap auth api-keys list
ap auth api-keys revoke <id>

The CLI only shows the full key once when it is created. Save it immediately.

Terminal window
export AP_API_KEY=ap_your_key_here
ap post "Hello from CI"

Combined with explicit project/connection flags

Section titled “Combined with explicit project/connection flags”
Terminal window
AP_API_KEY=ap_your_key_here ap post "Hello" --project <workspace-id> --connection linkedin
  • 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