Read Upload-Post phone numbers, SMS, calls and codes
phone_numbers_readRead Upload-Post phone number configuration, available numbers, KYC requirements, rented numbers, SMS/call history, verification codes, usage, and port-out details without making changes.
Instructions
Upload-Post phone numbers: real numbers the account rents from Upload-Post to receive SMS and calls, verify WhatsApp Business on them and, outside the US and Canada, send SMS. Changes nothing. config: whether the account can buy now (enabled, can_purchase, reason such as phone_numbers_paid_plan_required, phone_numbers_limit_reached or purchase_velocity), numbers_count / max_numbers, the countries on sale, and the current terms_version and terms_url that purchase_phone_number needs. countries: countries and number types on sale, cheapest first, with the monthly price in cents of the account's billing currency (currency: usd, eur or gbp, the same amount in each, e.g. $4 = 4 EUR = 4 GBP, which is what is charged). Prices vary by country and number type: 1.5 times our carrier's monthly cost for that number, rounded up to the next whole unit, at least 3 and at most 30 (numbers that would cost more are not offered): e.g. a carrier cost of 2.40 gives 3.60, so 4 per month; 7.30 gives 10.95, so 11. Always read the real price here or in search_available, needs_kyc (identity documents required), sms (can receive) and sms_send (can send). search_available (country required; number_type, area_code, locality, contains = digits the number must contain, sms: true = only numbers with SMS, limit 1-50, default 20): numbers that can be bought now with their monthly price in the billing currency. countries, search_available and purchases answer 409 phone_numbers_currency_unsupported when the account is billed in a currency phone numbers do not support. kyc_fields (country, number_type): the end_user fields every purchase needs and the extra requirements of that country and type (requirement_id, label, kind text | date | address | file). list (optional status, profile_username): the account's numbers, pending and active unless status says otherwise; each with id (pn_...), phone_number (E.164), country, number_type, features, status (pending_payment, pending_regulatory, active, regulatory_declined, failed, released, ported_out), suspended / abuse_review flags, monthly_cents and currency, voice settings, sms_send, whatsapp.verify_until, release_scheduled_at. get (number_id): one number. messages (number_id, limit 1-200 default 50, before = ISO date for older ones): inbound and outbound SMS, newest first, with any codes found. messages, calls, codes and usage answer 400 phone_numbers_invalid_request for an invalid date or limit. calls (number_id, limit, before): calls newest first (mode forward | voicemail | whatsapp_verify | missed), duration, voicemail transcript and a signed recording_url valid 1 hour. codes (number_id, since = ISO date): one-time codes (4-8 digits, also spoken in English, Spanish or Portuguese) found in SMS and call transcripts of the last 30 minutes; poll it every few seconds while the user verifies WhatsApp. usage (from, to: ISO dates, default this month so far): billable usage in the account's billing currency (currency), charged on the next subscription invoice (outbound SMS, forwarded minutes, recording and transcription; inbound minutes at cost; inbound SMS free): lines (number_id, phone_number, kind sms_outbound | forwarding | recording | transcription | inbound_minutes, quantity, unit, amount, billed, created_at), totals per kind { quantity, amount }, total, and today against the account's daily_cap; over the daily usage limit, outbound SMS, forwarding and recording stop until midnight UTC. port_out_info (number_id): what the user gives another carrier to move the number there (name and address as submitted, account number, the number); owner only, and only for the user who is moving it. Webhooks (opt-in, list them in webhook_events or a webhook subscription): sms_received, call_received, voicemail_received, phone_number_activated, phone_number_declined, phone_number_released, phone_number_port_out. Paid plans only (an active subscription with at least one paid invoice; trials and the Free plan get 402 phone_numbers_paid_plan_required with an upgrade_url to relay). These numbers cannot make outbound calls and can NEVER call emergency services (112 / 911). US and Canadian numbers receive SMS but cannot send SMS yet (403 sms_registration_required); some Spanish, German and Italian numbers have no SMS at all. Not generally available yet: the API answers 403 phone_numbers_not_available until phone numbers are available for the account (phone_numbers_read config answers enabled: false).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"action": "<action>"
},
"name": "phone_numbers_read"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | usage: ISO date (default: now). | |
| sms | No | search_available: true = only numbers that receive SMS. | |
| from | No | usage: ISO date (default: start of the month). | |
| limit | No | search_available: 1-50 (default 20). messages / calls: 1-200 (default 50). | |
| since | No | codes: ISO date, only codes received after it. | |
| action | Yes | ||
| before | No | messages / calls: ISO date, only older items (pagination). | |
| status | No | list: only numbers in this status. | |
| country | No | search_available (required) and kyc_fields: ISO country code, e.g. 'ES'. | |
| contains | No | search_available: digits the number must contain. | |
| locality | No | search_available: city. | |
| area_code | No | search_available: national destination code (area code). | |
| number_id | No | get, messages, calls, codes, port_out_info: the number's id (`pn_...`). | |
| number_type | No | local (default), mobile or national. No toll-free numbers. | |
| profile_username | No | list: only numbers of this Upload-Post profile. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | No |