# Idempotency and pagination > Retry sends safely, page through lists, and keep track of messages as they move. Source: https://dropline.cleforyx.com/docs/developers/idempotency · Section: Developers · All docs: https://dropline.cleforyx.com/llms.txt ## Idempotency `POST /mailboxes/{id}/send` and `POST …/reply` accept an `Idempotency-Key` header: any string up to 200 characters. - The first response is stored for **24 hours**, per token. - A repeat with the same key returns that response again, with `Idempotent-Replayed: true`, and sends nothing. curl: ```bash curl -X POST https://dropline.cleforyx.com/api/v1/mailboxes/$MB/send \ -H "Authorization: Bearer $DROPLINE_TOKEN" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: order-4471-shipped" \ -d '{"to":[{"address":"kofi@example.com"}],"subject":"Your order shipped","text":"It is on its way."}' ``` > [!TIP] > Always set a key when you retry after a timeout. Something tied to the reason you’re sending (like an order number) works well. ## Pagination List endpoints take `page` (0-based) and `page_size` (1–100, default 25), and return `total`, `page`, `page_size` and `has_more`. Request: ```http GET /mailboxes/{mailbox_id}/messages?folder=INBOX&page=0&page_size=25 ``` ## Messages and UIDs - A message is addressed by **mailbox id + folder + uid**. - `folder` is a query parameter. It defaults to `INBOX`; use the `path` from List folders for others. - A UID is unique within its folder and **changes when the message moves**. Move returns the new folder and uid. --- Previous: [Rate limits](https://dropline.cleforyx.com/docs/developers/rate-limits.md) · Next: [Code examples](https://dropline.cleforyx.com/docs/developers/examples.md)