Request number (purchase)
request_numberReserve a virtual phone number to receive SMS verification codes. Specify the service and country, then the number is charged to your wallet and can receive OTPs.
Instructions
Reserve a virtual number for SMS verification. ⚠️ This SPENDS from your wallet immediately. Requires an API key. Use list_services / get_service_countries first to pick a serviceCode and countryIso. Best-effort retry guard: an identical call in the same session is replayed without charging again. To intentionally order a SECOND number for the same service/country, pass a distinct idempotency_token.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| operator | No | Optional carrier filter (provider-dependent), e.g. 'any'. | |
| countryIso | Yes | Country ISO 3166-1 alpha-2 code, e.g. 'TR', 'US'. | |
| serviceCode | Yes | Service code, e.g. 'wa' for WhatsApp (from list_services). | |
| idempotency_token | No | Optional. Reuse the SAME token to safely retry one intended order; use a DIFFERENT token to place a separate order with identical args. |