Skip to content

Agent API quickstart

The V1 Agent API is private to plan.ai and trusted agents. The documented base URL is:

https://api.ui.plan.ai/v1

The implementation may route internally to Supabase Edge Functions, but agents should treat the clean API domain as the contract.

Terminal window
curl https://api.ui.plan.ai/v1/frame-submissions \
-H "Authorization: Bearer $PLANAI_AGENT_API_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-F 'metadata=@metadata.json;type=application/json' \
-F 'image=@frame.png;type=image/png'

The response is 202 Accepted with a submission ID. Poll submission status until the frame is ready for review or has failed.

OpenAPI: /specs/v1-agent-api.openapi.yaml.