# Trial requests (dry-run)

https://docs.sendsms.to/en/guides/dry-run/

Check your integration without sending or changing anything: the X-Dry-Run: true header on any changing request.

## Steps

1. Add the X-Dry-Run: true header to the request — for example to POST /v1/messages. Everything else is as in the real request: the same key, URL, body and Idempotency-Key.
2. The API makes every check of the real path: key and IP allowlist, key permission, account and channel, request fields, approved sender, template and variables, number of parts and price, sufficient funds, Idempotency-Key format.
3. Then nothing is executed: no message is created or handed to an operator, no funds are reserved, templates and scenarios do not change, the Idempotency-Key is not taken — a real request with the same key goes through as a new one.
4. The answer has the same status and structure as a real success, plus the dryRun: true field and the X-Dry-Run: true header. Identifiers in it are conditional (zero UUID): no status can be read by them. Refusals are the real ones, with the same codes.
5. Trial requests have their own, lower rate limit; the header with another value gives 400 invalid_dry_run. When the check passes, remove the header — the request becomes real.

## Keep in mind

A trial request confirms that the real one would be accepted now; it does not reserve funds and does not guarantee delivery. Reading requests (GET) with the header run as usual — they change nothing.
