Skip to content

API conventions

The V1 Agent API is small, but it should behave like a durable developer API from the start.

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

The major version is in the path. V1 does not require a separate version header.

HeaderRequiredMeaning
Authorization: Bearer ...yesAgent API key.
Idempotency-Keyyes on POSTRetry-safe create key.
Content-Typeyesmultipart/form-data for frame submissions; application/json for media uploads.
X-Request-IdresponseSupport and log correlation ID.
  • Create endpoints return 202 Accepted or 201 Created.
  • Long-running work is polled through status endpoints.
  • Errors use application/problem+json.
  • Response bodies use snake_case JSON fields.

Agents may retry network failures and 5xx responses with the same Idempotency-Key. Agents must not change request parameters when reusing a key.