Integrate with Numix using documented authentication, scopes and rental message endpoints. Review examples, errors, polling limits and content retention.
Use the same-origin /v1 API base on sms-666.top. Browser workflows use the Numix session cookie. External integrations use Authorization: Bearer with a scoped API key created in your signed-in developer workspace. Store that key server-side, grant only the required scopes and revoke it when no longer needed. The examples below use placeholders and contain no real credentials.
Required credentials by endpoint
Endpoint
Required scope or session
GET /v1/rentals and GET /v1/rentals/:rentalId
rentals:read
GET /v1/rentals/:rentalId/messages and /messages/latest
messages:read
GET /v1/rentals/:rentalId/verification-code
verification_codes:read
POST /v1/rentals/:rentalId/verification-code/poll
verification_codes:poll; account action access also checked
POST /v1/rentals/:rentalId/messages/poll
Browser session and account action access; not an API-key route
POST /v1/rentals/:rentalId/renew
Browser session, account action access and Idempotency-Key
Replace RENTAL_ID with an ID returned for your account. This GET reads stored records; it does not initiate provider polling. The response includes items, with contentAvailable and contentExpiresAt on each message. Do not write sender, body, codes or full request URLs into analytics or application logs.
curl https://sms-666.top/v1/rentals/RENTAL_ID/messages \
-H "Authorization: Bearer YOUR_API_KEY"
// Example of a valid empty stored-message list:
{ "items": [], "page": { "nextCursor": null } }
List limits are endpoint-specific
The current rental and stored-message routes return bounded lists with page.nextCursor set to null; they do not consume cursor or limit query parameters. Do not build a cursor loop on these routes. The anonymous public-products endpoint separately supports cursor pagination with a maximum limit of 100. Follow each endpoint’s actual contract rather than assuming one global pagination scheme.
Poll only when explicitly needed
The code-poll endpoint checks account capability, rental access and provider readiness before contacting the provider. Its response identifies outcome, polledAt, nextPollAt and a nullable latestCode. Respect nextPollAt and any returned retry timing. Polling more often does not make an external sender deliver a message sooner.
EMPTY: no new usable content was returned by the check.
MESSAGE_STORED: incoming content was stored.
MESSAGE_UNCHANGED: the check did not produce a new distinct message.
Provider errors or a locked poll are not permission to retry continuously.
curl -X POST https://sms-666.top/v1/rentals/RENTAL_ID/verification-code/poll \
-H "Authorization: Bearer YOUR_API_KEY"
Handle errors and content expiry
Errors contain a stable code, message and requestId. Use the request ID for support without sharing private content. Missing and inaccessible resources do not reveal another account’s existence. Message access requires a valid owned rental; retained metadata does not imply retained message content.
Recovery decisions
Condition
Safe response
Missing or invalid authentication
Correct the session or API key; never embed a secret in a public page.
Missing scope or unavailable account capability
Review permissions in the workspace; do not retry to bypass the check.
NO_MESSAGE or an empty list
No usable stored message is available. A supported explicit poll is a separate choice.
Expired content or inaccessible rental
Check contentExpiresAt and rental status. Purged content cannot be recovered through another read.
RATE_LIMITED
Wait for the returned retry timing before a permitted retry.
Provider unavailable or uncertain transaction
Preserve context, check status and use support; do not repeat purchases automatically.