Rate limits, retries and cost

60 requests a minute per key, idempotency keys for safe retries, size limits, and what requests cost.

Reference

At a glance

LimitValue
Requests per key60 a minute
Rows per add50
Rows per rows read50
Passages per search10
Request body200 KB
CostAbout $0.00125 per thousand requests, from AI credit

Rate limits

Each key can make 60 requests a minute. Past that, the answer is 429 rate_limited with a Retry-After header: wait that many seconds, then try again.

  • Add up to 50 rows in one request rather than one row per request.
  • Listing actions with GET /api/v1/tools does not count.
  • Over MCP, the workspace has its own limits as well, so a busy agent may wait sooner.

Idempotency

Send an idempotency key with every add, so a retry never adds a row twice. Use the same key for the same event, such as an order number or a file's name and date.

bash
curl -X POST https://app.alchex.com/api/v1/tools/write_record/add \  -H "Authorization: Bearer EXAMPLE_API_KEY" \  -H "Content-Type: application/json" \  -H "Idempotency-Key: order-10432" \  -d '{ "register": "Suppliers", "rows": [ { "cells": { "Name": "Acme", "Risk": "High" } } ] }'

Send it as the Idempotency-Key header or as idempotencyKey in the body, up to 120 characters. A repeat adds nothing and answers 200:

json
{ "replayed": true, "rowIds": ["…"] }

Each key keeps its own idempotency keys. Other actions take no idempotency key, so check before you retry a change.

Large answers

An answer that would be too large is refused with 413 answer_too_large. Ask for less: a lower limit, a where, or one clauseCode. A long document comes in parts; send continueFrom back as fromSection to read on.

Billing and cost

Each request costs what it costs Alchex to run, with no markup: about $0.00125 per thousand requests. It is taken from the workspace's AI credit, in small batches.

  • API keys need Pro or Enterprise. Those plans include AI credit each month.
  • The free plan includes no AI credit, so its keys are refused.
  • An empty balance answers 402 AI_ALLOWANCE_EXCEEDED. Requests work again once there is credit.
  • A request turned away for its key, its permission, the rate limit or an empty balance costs nothing.