Endpoint
Overview
Poll for the verification code sent to a rented number. Until the code arrives, the endpoint returns409 — keep polling every few seconds.
On success the response body is the bare verification code as plain text, not JSON.
Query Parameters
The transaction ID returned by Rent Number.
Response
200 with the verification code as a plain text body, e.g. 483920.
Errors
| Status | Error | Meaning |
|---|---|---|
| 400 | Transaction ID is missing | No transaction_id provided |
| 400 | Transaction cancelled | The rental was already cancelled |
| 404 | Transaction not found | Unknown transaction (or it belongs to another account) |
| 409 | Code not received yet | No SMS yet — keep polling |
| 502 | Service temporarily unavailable | Upstream failure — retry |