Skip to content

Latest commit

 

History

History
43 lines (34 loc) · 1.41 KB

File metadata and controls

43 lines (34 loc) · 1.41 KB
title Agent API quickstart
description V1 private Agent API overview and first curl request.
sidebar
order
1
stability stable
last_synced_with 2026-05-21-content-audit

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.

Submit a frame

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.

Endpoint set

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