> ## Documentation Index
> Fetch the complete documentation index at: https://docs.superskope.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Errors, limits and pagination

> Handle rejected requests and uncertain outcomes without duplicating work.

Read the response body, not only the status code. Errors normally contain `error`; successful HTTP responses can still contain `state: "unknown"`. A timeout or disconnected response does not prove that nothing happened.

## Error catalogue

| HTTP status | Meaning | What to do |
| - | - | - |
| `400` | Invalid fields, IDs, cursor or request key. | Correct the request. For a write, inspect the original intent before deciding it is safe to submit another. |
| `401` | Missing, invalid, expired or revoked customer key. | Restore access through the owner. Do not rotate away unresolved operations. |
| `403` | Missing scope, conversation/number access or disallowed browser credential use. | Ask the owner to review the specific grant; do not escalate to a root key. |
| `404` | Unsupported route or unavailable authorized resource. | Check [release status](https://docs.superskope.com/developers/release-status.md) and the exact resource. |
| `405`, `415` | Unsupported method or content type. | Use the documented method and `application/json`. |
| `409` | Version/identity conflict, already-reserved key or unresolved operation. | Refresh the relevant read or inspect the original request. Never manufacture a new key to bypass a lock. |
| `410` | Event cursor expired. | Resync permitted history, then start a new subscription. |
| `413`, `416` | Body/file too large or invalid byte range. | Use the documented byte limits and one valid range. |
| `429` | Usage or concurrency limit. | Respect `Retry-After` when present. Reads may be retried deliberately; writes still require original-request review. |
| `502`, `503` | Upstream failure or temporarily unavailable installation. | A write may already have been submitted. Inspect its original request state. |

The SDK's `SuperSkopeError` provides `status`, `details` and `uncertain`. Network failures have no HTTP status. `uncertain` is conservative for writes; it does not tell you the message was delivered. The SDK performs no automatic retries.

## Current bounds

These are application limits, not claims about WhatsApp's own maximums. The API remains authoritative for your installation version.

| Resource | Current bound |
| - | - |
| Text / caption | 4,000 / 1,000 characters |
| Outgoing attachment | 5 MiB decoded; supported MIME and filename validation also applies |
| Incoming media | 32 MiB; a single HTTP byte range supports playback/seek |
| Customer key | One phone, up to 100 explicitly selected conversations; separate verified-created-group opt-in |
| Active customer keys | Ten; default 90-day expiry, configurable 1–365 days |
| History list page | `limit` 1–100, default 50; `offset` 0–100,000; `before` uses Unix seconds |
| Own-key log page | `limit` 1–100, default 50; `before` is the prior log ID |
| Event retention | Seven days or 50,000 source events, whichever removes an event first |
| Event page | Up to 100 source events; filtering can return fewer or none |
| Webhook | One URL per key; 5,000 pending jobs per installation; eight attempts |
| Group member change | 1–20 supplied participants per action |

Additional installation, subscription, rate and concurrency limits can reject work. Do not promise unlimited sends, complete historical coverage or a guaranteed throughput based on these bounds.

## Pagination without losing events

For chats/history, continue with the returned `nextOffset` while `hasMore`. Never assume a filtered page's length means the underlying source is exhausted.

For events, persist `nextCursor` even if `events` is empty. Continue while `hasMore`. A new subscription begins at the present cursor without backfill. Event `createdAt` is an ISO timestamp; message `timestamp` is Unix seconds. Treat IDs as opaque strings.

For request logs, pass `nextBefore` as `before`. Logs describe currently authorized metadata, not message bodies or every business event. Read [events](https://docs.superskope.com/developers/events.md) and [safe request handling](https://docs.superskope.com/developers/reliability.md) before writing a worker.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.