API reference
Limits
How many calls, documents, pages and bytes the Composa API takes, and how long its links and records last.
Your plan sets how many pages you print a month, how many print calls a minute the API takes from your Team, and how many documents of a batch print at once. See Pricing for each plan's numbers. Everything below is the same on every plan.
Calls
| Limit | Value | Past it |
|---|---|---|
Documents per call to /v1/run | 1 | 413 too_large: send a batch |
| Items per batch | 50,000 | 413 too_large |
| Request body | 50 MB | 413 too_large |
| Reads a minute, per Team: reading a batch, canceling one, reading template fields | 300 | 429 rate_limited |
Print calls a minute, per Team: /v1/run, /v1/run/batches, /v1/uploads | Set by your plan | 429 rate_limited |
A 429 answer carries Retry-After, in seconds. Reads are counted apart from print calls, so polling a batch never spends a print call.
Documents
| Limit | Value | Past it |
|---|---|---|
Time for a call to /v1/run | 50 seconds | 422 deadline_exceeded: send a batch |
| Pages drawn as pictures in one document | 50 | 400: ask for a PDF, or "pages": "1-50" |
| One picture | 16 million pixels | 400 |
| A file in an answer | 25 MB | 413 too_large: ask for "output": "url" |
A picture sent in data | 5 MB | 400 |
| Pictures in one call, together | 20 MB | 400 |
| An uploaded file of batch items | 64 MB | 400 |
A PDF has no page limit.
How long things last
| What | How long |
|---|---|
A link from /v1/run | 1 hour |
| A link from a batch | 24 hours |
| A batch's record and list of links | 24 hours after it ends |
| An upload link | 1 hour to upload; the upload can be used for a day |