Skip to content

Authentication

Agents authenticate with bearer API keys.

Terminal window
curl https://api.ui.plan.ai/v1/frame-submissions \
-H "Authorization: Bearer $PLANAI_AGENT_API_KEY"
  • Raw keys are shown once in the workbench.
  • Only hashes are stored.
  • Keys have prefixes for support and audit display.
  • Keys can be scoped to tenant, agent, channel, and media capabilities.
  • Revoked keys return 401.
  • Keys without permission for the target agent or channel return 403.

When multiple approval policies apply, the most specific wins. See Approval policy for the precedence rule (tenant < agent < channel < API-key override).

Do not put plan.ai team user sessions in agent scripts. Browser users authenticate through Supabase Auth; agents authenticate through API keys.