HATO API

The Pigeon Post Office

📘 Manual Sign in Create account
API Reference →

Letterflow API

Saved definitions

List owned Letterflows with limit and cursor pagination. Detail endpoints provide metadata, readiness, and signed links to saved regional inputs. Private keys and account credentials are excluded.

EndpointAPI permissions
GET /api/v1/letterflows/
GET /api/v1/letterflows/{id}/
letterflows:read

Request a run and check its status

Send an empty JSON object to request a run of a saved Letterflow. Include an Idempotency-Key header. Use a new key for each new run, or reuse the key to retry the same request. Use your saved Letterflow settings and the dashboard’s Schedule page for scheduled runs.

EndpointAPI permissions
POST /api/v1/letterflows/{id}/runs/letterflows:run
GET /api/v1/runs/{uuid}/runs:read

A new run returns HTTP 202. Follow the Location header to check its status. Repeating a successful request with the same key returns HTTP 200 and the original run, even after cancellation.

Possible states are waiting, queued, running, completed, and failed. A waiting run is still in your account queue. A queued run has capacity reserved and is waiting to start in its execution region. Follow letterbox_url when available.

Check queue_position and wait_reason while the run is waiting. The admitted_at field records when Hato API reserved capacity, and started_at records when execution began. A full queue returns HTTP 429 with error.code=queue_full.

Delivery queues →
curl -X POST -H "Authorization: Bearer $HATO_API_KEY" \
  -H 'Idempotency-Key: example-run-001' -H 'Content-Type: application/json' \
  --data '{}' 'https://hato-api.example/api/v1/letterflows/7/runs/'