Postbot Orders API

The Orders API from Postbot — 2 operation(s) for orders.

GitHub OpenAPI

Operations 2

GET /orders List your letters, newest first #
GET /orders/{orderId} Read the status of one of your letters #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/postbot-cz:postbot-cz-orders-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

postbot-cz-orders-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Postbot Orders API
  version: 1.0.0
  description: 'Send real physical letters in the Czech Republic from an AI agent, CLI, or the web. Backed by Česká pošta (DopisOnline).


    Versioning: the version is in the path. This document describes v1, served at /api/v1; the unversioned /api/* paths serve the same v1 surface. A breaking change ships under a new path version. Before a version retires, its responses announce it with a `Deprecation` header (RFC 9745) and a `Sunset` header (RFC 8594) that carry the dates.'
  contact:
    email: ladi@amentistudio.com
servers:
- url: https://postbot.cz/api/v1
tags:
- name: Orders
paths:
  /orders:
    get:
      summary: List your letters, newest first
      description: The Orders of this account, newest first, one page at a time. Pass a page's next_cursor as `cursor` to read the next page; has_more is false on the last one. No item carries the letter content. The hosted MCP tool list_letters returns the same page.
      operationId: listOrders
      security:
      - apiKey: []
      parameters:
      - name: limit
        in: query
        required: false
        schema:
          type: integer
          minimum: 1
          maximum: 100
          default: 20
        description: Orders per page.
      - name: cursor
        in: query
        required: false
        schema:
          type: string
        description: Opaque. The next_cursor of the previous page, unchanged. Omit it for the first page.
      responses:
        '200':
          description: One page of this account's Orders.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OrderPage'
        '400':
          description: '{error: ''invalid_request'', message}. limit is not an integer from 1 to 100, or cursor is not a next_cursor this API returned.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Missing or invalid API key.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        default:
          description: Any other failure, for example 413 payload_too_large or a 5xx. The `error` code says which; `message` says what to do. Only the responses that declare Retry-After send it.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      tags:
      - Orders
  /orders/{orderId}:
    get:
      summary: Read the status of one of your letters
      description: Status, Česká pošta order code, and tracking number of a letter sent from this account. Used by `posta status`.
      operationId: getOrder
      security:
      - apiKey: []
      parameters:
      - name: orderId
        in: path
        required: true
        schema:
          type: string
        description: The orderId that /send returned.
      responses:
        '200':
          description: The Order's status on this account.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AccountOrder'
        '401':
          description: Missing or invalid API key.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: No such order on this account (another account's order also answers 404).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        default:
          description: Any other failure, for example 413 payload_too_large or a 5xx. The `error` code says which; `message` says what to do. Only the responses that declare Retry-After send it.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      tags:
      - Orders
components:
  schemas:
    OrderStatus:
      type: string
      enum:
      - created
      - dispatching
      - dispatched
      - send_failed
      - canceled
      description: created = recorded, not yet handed over (a one-off quote waits for payment); dispatching = Handover to Česká pošta in progress; dispatched = handed over; send_failed = Handover failed; canceled = an unpaid quote was retired, never mailed.
    Error:
      type: object
      description: 'Every 4xx/5xx body. Some errors add fields: `issues` (400 invalid_letter), `rails` (402), `orderId` (409 duplicate_send), `minCzk`/`maxCzk` (400 bad_amount), `infoUrl`/`contact` (503 sending_paused).'
      required:
      - error
      properties:
        error:
          type: string
          description: Stable machine-readable code, e.g. invalid_letter, unauthorized, payment_required, not_found.
        message:
          type: string
          description: Human-readable cause and how to fix it.
        docs:
          type: string
          format: uri
          description: Where to read more. Sent when no route answered (not_found, server_error, request_failed).
      additionalProperties: true
    AccountOrder:
      type: object
      required:
      - orderId
      - status
      properties:
        orderId:
          type: string
        status:
          $ref: '#/components/schemas/OrderStatus'
        orderCode:
          type: string
          description: Česká pošta order code. Absent until handed over.
        tracking:
          type: string
          description: Česká pošta tracking number. Absent when it assigned none.
    Service:
      type: string
      enum:
      - obycejne
      - doporucene
      description: obycejne = ordinary letter; doporucene = registered, with tracking.
    OrderPage:
      type: object
      required:
      - data
      - next_cursor
      - has_more
      properties:
        data:
          type: array
          items:
            $ref: '#/components/schemas/OrderSummary'
          description: Newest first.
        next_cursor:
          type:
          - string
          - 'null'
          description: Pass as `cursor` to read the next page. null on the last page.
        has_more:
          type: boolean
          description: Whether another page follows this one.
    OrderSummary:
      type: object
      required:
      - orderId
      - status
      - service
      - sheets
      - chargeCzk
      - createdAt
      - orderCode
      - tracking
      properties:
        orderId:
          type: string
          description: For GET /orders/{orderId}.
        status:
          $ref: '#/components/schemas/OrderStatus'
        service:
          $ref: '#/components/schemas/Service'
        sheets:
          type: integer
          description: Printed sheets.
        chargeCzk:
          type: integer
          description: Price on prepaid credit, CZK.
        createdAt:
          type: string
          format: date-time
          description: When the Order was recorded.
        orderCode:
          type:
          - string
          - 'null'
          description: Česká pošta order code. null until handed over.
        tracking:
          type:
          - string
          - 'null'
          description: Česká pošta tracking number. null when it assigned none.
  securitySchemes:
    apiKey:
      type: http
      scheme: bearer
      bearerFormat: pb_...
      description: 'Postbot API key: `Authorization: Bearer pb_...`.'
    oauth2:
      type: oauth2
      description: OAuth 2.1 authorization code flow. PKCE accepts S256 only, and a public client must use it. Register a client at https://postbot.cz/oauth/register. In this API only POST /keys takes an OAuth access token; the other operations take an API key. The same scopes gate the MCP tools at https://postbot.cz/mcp.
      flows:
        authorizationCode:
          authorizationUrl: https://postbot.cz/oauth/authorize
          tokenUrl: https://postbot.cz/oauth/token
          scopes:
            letters:send: Send Letters, which spends the account's prepaid CZK credit, and mint an API key.
            letters:read: Read the status of the account's Letters.
x-service-info:
  name: Postbot
  description: Physical letter delivery across the Czech Republic for AI agents.
  categories:
  - postal
  - printing
  - logistics
  - communication
  docs:
    homepage: https://postbot.cz
    apiReference: https://postbot.cz/openapi.json
    llms: https://postbot.cz/llms.txt