Skip to content

API reference

All 43 endpoints of the Postacio REST API, with their fields, limits and examples. Drawn from the same OpenAPI document your tools can load, so it is never out of date.

New here? Start with the developer guide: your first key, your first draft, and connecting an AI agent.

  • Base URL

    Every path is relative to https://postacio.com/api/v1. Requests and answers are JSON.
  • Authentication

    Send Authorization: Bearer pk_live_… on every request. An API key (pk_live_…) or an agent access token (at_…). Get a key
  • Retrying safely

    Up to 128 visible ASCII characters. Retrying with the same key and body within 24 hours replays the first answer (with Idempotent-Replayed: true) instead of doing the work twice; the same key with a different body is 422 idempotency_conflict.
  • Rate limits

    Every answer carries X-RateLimit-Limit, X-RateLimit-Remaining and X-RateLimit-Reset for the key, and the same with -User- for the account. A 429 adds Retry-After. The limits
  • Errors

    A failed request answers in the Error envelope, with error.code, error.message, error.param, error.detail, error.retry_after and error.needed. What they mean

Endpoints.

Grouped by what they work on. Every example runs as it is once your key is set.

Ready to send your first draft?

Start your free trial, create a key in Settings, and call the API in a minute.