Skip to content

API Keys

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

  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
export AP_API_KEY=ap_your_key_here
ap post "Hello from CI"
Terminal window
ap post "Hello" --api-key ap_your_key_here
  • 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