Skip to main content

Phone Numbers

Buy a phone number inside Upload-Post and use it for WhatsApp, SMS and calls, without a SIM card. A number belongs to one profile of your account: you can connect it to WhatsApp (Meta calls the number and the code appears in Upload-Post), read the SMS it receives, send SMS from it, forward its calls to your phone and get voicemails transcribed.

Not generally available yet

While phone numbers are not available on your account, every endpoint below answers 403 with error_code: "phone_numbers_not_available" and GET /config answers enabled: false.

No emergency calls

Upload-Post numbers cannot call emergency services (112, 911 or any other) and cannot make outgoing calls at all. Keep another phone for emergencies.

  • Paid plans only. The account needs an active paid subscription with at least one paid invoice. Free plans and trials get 402 phone_numbers_paid_plan_required with an upgrade_url.
  • Terms. Every purchase accepts the phone number terms: send accept_terms: true and the current terms_version (from GET /config).
  • Owner only for money and identity. On team accounts, buying, sending identity documents, releasing a number and reading its port-out details are for the account owner: a team member acting with X-Act-As-User gets 403 phone_numbers_owner_only. Buying and sending documents need the account's API key: a profile JWT is never accepted.
  • Limits. Up to 5 numbers per account (max_numbers in GET /config) and one purchase every 10 minutes.

Step by step from the dashboard: Buy a phone number and Connect WhatsApp with an Upload-Post number.

All endpoints are under https://api.upload-post.com/api and take your API key:

NameValueDescription
AuthorizationApikey your-api-key-hereYour API key for authentication

Pricing​

WhatPrice
The number, per month1.5× our carrier's monthly cost, rounded up to the next whole unit. Minimum 3, maximum 30. It depends on the country and the number type. A number that would cost more than 30 a month is not offered.
Setup feeNone.
Outbound SMS2× the carrier cost, per message part.
Forwarded call minutes2× the carrier cost, only when the forwarded call is answered.
Call recording and transcription2× the carrier cost, per minute.
Inbound call minutesAt the carrier cost.
Inbound SMSFree.

The price is not fixed: it varies by country and number type (and can change with the carrier's cost). How it is worked out from the carrier's monthly cost:

Carrier cost per month× 1.5You pay per month
$1.00$1.50$3 (minimum)
$2.40$3.60$4
$7.30$10.95$11
$19.50$29.25$30
more than $20.00more than $30not offered

Check the real price of each country and type in GET /countries (or in the dashboard, under Buy a number) and of each number in GET /available before buying.

  • Prices are in your account's billing currency (USD, EUR or GBP, the currency of your Upload-Post subscription; currency in GET /config) with the same numeric amount: a $3 number is €3 on a euro subscription and £3 on a pound one. The monthly price shows before you buy: monthly_cents in GET /countries (each type of each country) and in GET /available (each number).
  • The number is added to your Upload-Post subscription: the part of the current period is charged at once (prorated), then the price is billed with each renewal. Annual plans pay 12 times the monthly price.
  • Usage (SMS, minutes, recording, transcription) is added to the next invoice of the subscription, in the same currency. GET /usage shows it as it accrues.
  • Daily usage limit. Each account has a daily usage limit (daily_cap in GET /usage). When it is reached, outbound SMS, call forwarding and recording stop until midnight UTC; incoming calls are kept as missed calls and incoming SMS keep arriving.
  • Releasing an active number stops its monthly charge (no partial refund of the current period). Releasing a number that is still waiting for payment or for the document review refunds it.

Countries and number types​

CountryCode
United StatesUS
United KingdomGB
SpainES
FranceFR
GermanyDE
ItalyIT
MexicoMX
BrazilBR

Number types are local (geographic, with an area code), mobile and national (non-geographic), depending on the country. The types on sale and their prices change with the carrier's stock: GET /countries is the live list. Toll-free numbers are not sold. Numbers from India, Saudi Arabia and Australia are never sold.

What a number can do:

  • Calls: every number receives calls (forwarding, voicemail, WhatsApp verification). No number makes outgoing calls.
  • SMS: depends on the number. sms (can receive) and sms_send (can send) in GET /countries, and features of each number in GET /available, tell you. US numbers receive SMS but cannot send them yet. Some Spanish, German and Italian numbers have no SMS at all.
  • WhatsApp: every number can be connected to WhatsApp, by phone call.

Identity requirements (KYC)​

Telephone regulators require the carrier to know who uses each number, so every purchase sends the end user (end_user): the person or company that will use the number.

FieldRequiredDescription
typeYesindividual or business.
first_name, last_nameYesName of the person (for a business, its contact person). Up to 100 characters each.
business_nameFor a businessLegal business name.
phoneYesContact phone in E.164 (+34600111222).
emailNoContact email.
addressYesstreet_address, locality, postal_code and country_code (ISO alpha-2) are required; extended_address and administrative_area (state, province) are optional.
  • Spain, Germany, France and Italy need an address in that country. For a local number the address should match the number's area.
  • Some countries and types also need documents or extra data: an ID card or passport, a company registration certificate, a tax id, a proof of address issued in the last 3 months... GET /kyc lists exactly what a country and type need. needs_kyc: true in GET /countries marks them.
  • With documents, the purchase answers 202 status: kyc_required (nothing is charged) and you send them to POST /kyc. The number is paid and stays pending_regulatory while the carrier reviews them, usually from a few hours to a few business days. Approved: it becomes active (phone_number_activated). Declined: the charge is refunded, the number becomes regulatory_declined and you get phone_number_declined with the reason.
  • Approved documents are reused for later purchases of the same country and type.
  • The end user's details are stored encrypted and used only for the carrier and for port-out. Documents are sent to the carrier and not kept by Upload-Post.

Statuses​

statusMeaning
pending_paymentPaid; the order with our carrier is still being confirmed. Ends active or failed (refunded), usually within about 15 minutes.
pending_regulatoryPaid; the carrier is reviewing the identity documents.
activeWorking.
regulatory_declinedThe carrier declined the documents. Refunded.
failedThe purchase did not complete (payment failed, or the carrier could not provide the number and the charge was refunded). See failure_reason.
releasedReleased by you, or after the subscription ended. Final.
ported_outMoved to another carrier.

Two flags can be set on any number: suspended (SMS and calls are off; see suspended_reason) and abuse_review (the number is being reviewed for misuse). A number whose subscription ended has suspended: true and release_scheduled_at.


The phone number object​

{
"id": "pn_3f9c0a1b2c3d4e5f6a7b8c9d",
"phone_number": "+34911234567",
"country": "ES",
"number_type": "local",
"features": ["voice"],
"status": "active",
"profile_username": "client-a",
"monthly_cents": 300,
"currency": "eur",
"billing_interval": "month",
"purchase_intent_id": "buy-2026-11-27-0001",
"voice": {
"forward_to": "tel:+34600111222",
"voicemail_enabled": true,
"voicemail_greeting": null,
"recording_enabled": true,
"transcription_enabled": true,
"transcription_language": "es"
},
"whatsapp": { "verify_until": null },
"sms_send": false,
"emergency_calls": false,
"suspended": false,
"suspended_reason": null,
"abuse_review": false,
"created_at": "2026-11-27T10:00:00+00:00",
"activated_at": "2026-11-27T10:00:04+00:00",
"released_at": null,
"release_scheduled_at": null,
"decline_reason": null,
"failure_reason": null
}
FieldDescription
idUpload-Post id of the number (pn_...). Use it in every /{number_id} path.
phone_numberThe number in E.164.
featuresWhat the carrier enabled on it: voice, sms, mms...
monthly_cents, currency, billing_intervalMonthly price in cents of the subscription's currency; year = billed 12× on annual renewals.
voiceCall settings (see Call settings). New numbers start with voicemail, recording and transcription on, in English, and no forwarding.
whatsapp.verify_untilWhile set and in the future, calls are answered to catch a WhatsApp code (see Prepare for WhatsApp).
sms_sendWhether Send SMS works on this number.
emergency_callsAlways false.
release_scheduled_atSet when the subscription ended: the number is suspended and released on this date.
port_out{status, updated_at} once a move to another carrier started.

Errors always look like this, with extra fields when they help (upgrade_url, terms_url, max_numbers, retry_after_seconds, fields):

{ "success": false, "error": "Phone numbers are not available on this account yet.", "error_code": "phone_numbers_not_available" }

Get configuration​

GET /api/uploadposts/phone-numbers/config

Whether phone numbers are available on the account, whether it can buy one now (and why not), and the current terms. Call it first: it never answers 403.

curl https://api.upload-post.com/api/uploadposts/phone-numbers/config \
-H "Authorization: Apikey YOUR_API_KEY"
{
"success": true,
"enabled": true,
"max_numbers": 5,
"numbers_count": 1,
"currency": "usd",
"can_purchase": true,
"terms_version": "2026-11-27",
"terms_url": "https://docs.upload-post.com/resources/phone-number-terms",
"countries": ["US", "GB", "ES", "FR", "DE", "IT", "MX", "BR"],
"emergency_calls": false
}

When can_purchase is false, reason says why: phone_numbers_not_available (with enabled: false), phone_numbers_paid_plan_required (with upgrade_url), phone_numbers_limit_reached, purchase_velocity (one purchase every 10 minutes), phone_numbers_account_suspended, phone_numbers_currency_unsupported (the subscription is billed in a currency other than USD, EUR or GBP), or phone_numbers_capacity / phone_numbers_not_configured (temporarily unavailable, try later).


List countries and prices​

GET /api/uploadposts/phone-numbers/countries

Countries and number types on sale, cheapest first. monthly_cents is the monthly price in cents of currency, your account's billing currency (300 = $3, €3 or £3).

{
"success": true,
"currency": "usd",
"countries": [
{
"code": "US",
"name": "United States",
"types": [
{ "number_type": "local", "monthly_cents": 300, "currency": "usd", "needs_kyc": false,
"sms": true, "sms_send": false, "voice": true, "whatsapp": true, "emergency_calls": false }
]
},
{
"code": "ES",
"name": "Spain",
"types": [
{ "number_type": "local", "monthly_cents": 300, "currency": "usd", "needs_kyc": true,
"sms": false, "sms_send": false, "voice": true, "whatsapp": true, "emergency_calls": false }
]
}
]
}
FieldDescription
needs_kycIdentity documents are required (see Identity requirements).
sms / sms_sendNumbers of this type can usually receive / send SMS. The features of each number in GET /available are authoritative.

Search numbers​

GET /api/uploadposts/phone-numbers/available

Numbers you can buy right now, with their monthly price.

Query parameterRequiredDescription
countryYesISO country code (US, GB, ES...).
number_typeNolocal (default), mobile or national.
area_codeNoArea code (national destination code), e.g. 415 or 91.
localityNoCity.
containsNoDigits the number must contain.
smsNotrue = only numbers with SMS.
limitNoInteger, 1-50 (default 20).
curl "https://api.upload-post.com/api/uploadposts/phone-numbers/available?country=US&area_code=415&limit=5" \
-H "Authorization: Apikey YOUR_API_KEY"
{
"success": true,
"numbers": [
{ "phone_number": "+14155550123", "features": ["sms", "voice"], "locality": "San Francisco",
"monthly_cents": 300, "currency": "usd" }
]
}

Numbers are not reserved: one can be taken by someone else before you buy it (409 phone_number_unavailable). Search again. Both lookups answer 409 phone_numbers_currency_unsupported when the account is billed in a currency other than USD, EUR or GBP.


Buy a number​

POST /api/uploadposts/phone-numbers/purchase
FieldTypeRequiredDescription
profile_usernameStringYesProfile that will own the number.
countryStringYesISO country code.
number_typeStringYeslocal, mobile or national.
phone_numberStringNoA number from GET /available, in E.164. Leave it out to take the first available one.
area_codeStringNoWithout phone_number: take the first available number in this area.
purchase_intent_idStringYesYour idempotency key (8-100 characters: letters, digits, _ - . :). Repeating it returns the same number and never charges twice; use a new one to retry a failed purchase.
end_userObjectYesWho uses the number (see Identity requirements).
accept_termsBooleanYesMust be true: you accept the phone number terms (no emergency calls, acceptable use, porting authorization, processing of the data by our carrier in the United States).
terms_versionStringYesThe terms_version of GET /config.
curl -X POST https://api.upload-post.com/api/uploadposts/phone-numbers/purchase \
-H "Authorization: Apikey YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"profile_username": "client-a",
"country": "US",
"number_type": "local",
"area_code": "415",
"purchase_intent_id": "buy-2026-11-27-0001",
"accept_terms": true,
"terms_version": "2026-11-27",
"end_user": {
"type": "business",
"first_name": "Ana",
"last_name": "Lopez",
"business_name": "Acme Inc",
"phone": "+14155550100",
"address": {
"street_address": "1 Market St",
"locality": "San Francisco",
"administrative_area": "CA",
"postal_code": "94105",
"country_code": "US"
}
}
}'

The price of the current period is charged on your subscription first; the number is ordered only after the payment succeeds. If the carrier then cannot provide it, the charge is refunded.

200: bought and active (also for a repeated purchase_intent_id of a finished purchase):

{ "success": true, "status": "active", "phone_number": { "id": "pn_3f9c0a1b2c3d4e5f6a7b8c9d", "phone_number": "+14155550123", "status": "active", "...": "..." } }

202: documents needed. Nothing was charged. Get the list from fields_url and send them with POST /kyc, with the same body:

{
"success": true,
"status": "kyc_required",
"purchase_intent_id": "buy-2026-11-27-0001",
"fields_url": "/api/uploadposts/phone-numbers/kyc?country=DE&number_type=local"
}

202: not active yet, with phone_number:

HTTPerror_codeWhen
400phone_numbers_invalid_requestA field is missing or wrong (purchase_intent_id, phone_number not in E.164...).
400terms_not_acceptedaccept_terms is not true or terms_version is not the current one. The answer carries terms_version and terms_url.
400phone_numbers_kyc_invalidend_user is incomplete or the address is not in the required country. fields lists each problem.
400phone_numbers_country_not_available / phone_numbers_type_not_offeredThat country or type is not sold.
402phone_numbers_paid_plan_requiredFree plan, trial, or no paid invoice yet. With upgrade_url.
402phone_numbers_payment_failedThe charge failed (card declined...). Nothing was bought.
403phone_numbers_not_availablePhone numbers are not available on this account yet.
403phone_numbers_owner_onlyA team member or a profile JWT tried to buy.
403phone_numbers_account_suspendedPhone numbers are suspended on this account. Contact support.
404profile_not_foundprofile_username does not exist.
409purchase_velocityOne purchase every 10 minutes (retry_after_seconds).
409phone_numbers_limit_reachedThe account already has max_numbers numbers.
409phone_number_unavailableThe number was taken. Search again.
409phone_numbers_currency_unsupportedThe subscription's currency or billing period cannot carry a number. Contact support.
429phone_numbers_rate_limitedToo many requests to the carrier. Honour Retry-After.
502phone_numbers_carrier_errorThe carrier refused the order; you were not charged (or the charge was refunded).
502phone_numbers_billing_errorBilling failed before charging. Retry.
503phone_numbers_capacity / phone_numbers_not_configuredTemporarily unavailable. Retry later.

Get identity requirements​

GET /api/uploadposts/phone-numbers/kyc?country=DE&number_type=local

The end-user fields every purchase needs (fields.end_user) and the extra requirements of this country and type (fields.requirements, empty when none). kind is text, date, address (filled from end_user.address) or file.

{
"success": true,
"country": "DE",
"number_type": "local",
"fields": {
"end_user": [
{ "key": "end_user.type", "kind": "text", "label": "Who uses the number", "example": "individual | business" },
{ "key": "end_user.first_name", "kind": "text", "label": "First name", "example": "Ana" },
{ "key": "end_user.address", "kind": "address", "label": "Full address", "example": "street_address, extended_address, locality, administrative_area, postal_code, country_code" }
],
"requirements": [
{ "requirement_id": "1c5f2e4a-0d3b-4c1e-9a6f-2b7d8e9f0a1b", "label": "Proof of address", "kind": "file",
"description": "Utility bill or bank statement issued in the last 3 months.", "example": "", "acceptance_criteria": {} },
{ "requirement_id": "7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d", "label": "Address", "kind": "address",
"description": "Address in Germany.", "example": "", "acceptance_criteria": {} }
]
},
"terms_version": "2026-11-27"
}

Requirement ids and labels come from the carrier and can change: read them before each submission instead of hard-coding them.


Send identity documents and buy​

POST /api/uploadposts/phone-numbers/kyc

The same body as Buy a number plus:

FieldTypeDescription
valuesObjectrequirement_id → text, for text and date requirements.
documentsObjectrequirement_id → {filename, content_base64}, for file requirements. PDF, JPG or PNG, up to 10 MB each.

Or send multipart/form-data: the JSON body in the field data, and each file as document_<requirement_id>.

curl -X POST https://api.upload-post.com/api/uploadposts/phone-numbers/kyc \
-H "Authorization: Apikey YOUR_API_KEY" \
-F 'data={"profile_username":"client-a","country":"DE","number_type":"local","purchase_intent_id":"buy-2026-11-27-0002","accept_terms":true,"terms_version":"2026-11-27","end_user":{"type":"individual","first_name":"Lena","last_name":"Schmidt","phone":"+4915112345678","address":{"street_address":"Hauptstr. 1","locality":"Berlin","postal_code":"10115","country_code":"DE"}}}' \
-F 'document_1c5f2e4a-0d3b-4c1e-9a6f-2b7d8e9f0a1b=@proof-of-address.pdf'

The documents are sent to the carrier and the number is bought: 202 with status: pending_regulatory until the carrier approves them (or pending_payment while the order is confirmed, as in Buy a number; 200 if nothing needed review). Declined = refunded and phone_number_declined. Same errors as Buy a number; a missing or invalid document is 400 phone_numbers_kyc_invalid with fields.


List numbers​

GET /api/uploadposts/phone-numbers

The account's numbers, newest first (up to 100). Without status, only pending_payment, pending_regulatory and active ones.

Query parameterDescription
statusOne status (see Statuses), e.g. released.
profile_usernameOnly the numbers of this profile.
{ "success": true, "phone_numbers": [ { "id": "pn_3f9c0a1b2c3d4e5f6a7b8c9d", "phone_number": "+34911234567", "status": "active", "...": "..." } ] }

Get a number​

GET /api/uploadposts/phone-numbers/{number_id}
{ "success": true, "phone_number": { "id": "pn_3f9c0a1b2c3d4e5f6a7b8c9d", "...": "..." } }

404 phone_number_not_found if the id is not one of your numbers.


Release a number​

DELETE /api/uploadposts/phone-numbers/{number_id}?confirm=true

Final. WhatsApp and anything else using the number stop working at once, and the carrier may give the number to someone else later. The monthly charge stops (no proration). confirm=true is required (query string or JSON body); without it the API answers 400 confirmation_required and nothing changes. Owner only.

{ "success": true, "phone_number": { "id": "pn_3f9c0a1b2c3d4e5f6a7b8c9d", "status": "released", "released_at": "2026-11-27T12:00:00+00:00", "...": "..." } }

To keep the number with another provider, port it out instead of releasing it.


Call settings​

PATCH /api/uploadposts/phone-numbers/{number_id}/voice

Send only the fields you change.

FieldTypeDescription
forward_toString or nullForward incoming calls to this number, as tel:+E164 (tel:+34600111222). null turns forwarding off. Only geographic or mobile numbers of the number's country or the end user's country; premium-rate and special numbers are refused.
voicemail_enabledBooleanAnswer unanswered (or not forwarded) calls with voicemail.
voicemail_greetingStringYour greeting, up to 500 characters (read aloud). null = the default one.
recording_enabledBooleanRecord voicemails. Off: calls are only logged as missed.
transcription_enabledBooleanTranscribe voicemails.
transcription_languageStringen, es, pt, fr, de or it.
curl -X PATCH https://api.upload-post.com/api/uploadposts/phone-numbers/pn_3f9c0a1b2c3d4e5f6a7b8c9d/voice \
-H "Authorization: Apikey YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"forward_to": "tel:+34600111222", "transcription_language": "es"}'

Answers {success, phone_number} with the new settings.

How a call is handled:

  1. During a WhatsApp verification window: answered, recorded (up to 90 seconds) and transcribed to catch the code.
  2. With forward_to: transferred to that number, showing the Upload-Post number as caller ID. Up to 60 minutes per call and 4 hours of forwarded calls per number every 24 hours. Forwarded minutes are billed only when the forwarded call is answered; if nobody answers, the call goes to voicemail (step 3).
  3. Otherwise, with voicemail and recording on: the greeting always starts by telling the caller that the call will be recorded and transcribed, then records up to 2 minutes and sends voicemail_received.
  4. Otherwise the call is rejected and kept as a missed call.

Over the daily usage limit, or on a suspended number, calls are kept as missed calls. Every call sends call_received when it ends.

HTTPerror_codeWhen
400phone_numbers_invalid_forward_toforward_to is not a valid tel:+E164 number, or is premium-rate/special.
400phone_numbers_forward_country_not_allowedNot in the number's country or the end user's country.
400phone_numbers_invalid_requestAnother field is invalid.
409phone_number_not_activeThe number is not active (or under review).

Send an SMS​

POST /api/uploadposts/phone-numbers/{number_id}/sms
FieldTypeRequiredDescription
toStringYesRecipient in E.164 (+447700900123).
textStringYesUp to 1,600 characters. Billed per message part.
curl -X POST https://api.upload-post.com/api/uploadposts/phone-numbers/pn_3f9c0a1b2c3d4e5f6a7b8c9d/sms \
-H "Authorization: Apikey YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"to": "+447700900123", "text": "Your table is ready."}'
{ "success": true, "message": { "id": "msg_9a8b7c6d5e4f3a2b1c0d9e8f", "direction": "outbound", "from": "+447700900456", "to": "+447700900123",
"text": "Your table is ready.", "media": [], "status": "queued", "codes": [], "created_at": "2026-11-27T12:00:00+00:00" } }

Rules:

  • Not from US numbers yet (they receive SMS): 403 sms_registration_required. A number without SMS: 403 sms_not_supported.
  • People who reply STOP (or UNSUBSCRIBE, BAJA, ARRET, STOPP...) are not messaged again until they reply START: 409 recipient_opted_out.
  • At most 10 messages per recipient every 24 hours (429 sms_recipient_limit) and 1 message per second per number (429 sms_rate_limited).
  • Spam, adult, gambling, drugs, crypto and loan content is refused: 422 sms_content_blocked.
  • Over the daily usage limit: 429 phone_usage_daily_cap. A suspended number: 403 phone_number_suspended. A number that is not active: 409 phone_number_not_active.

List SMS​

GET /api/uploadposts/phone-numbers/{number_id}/messages

Inbound and outbound SMS, newest first. limit 1-200 (default 50); before (ISO 8601 date) returns older messages, for paging. limit must be an integer; an invalid limit or date answers 400 phone_numbers_invalid_request.

{
"success": true,
"messages": [
{ "id": "msg_1a2b3c4d5e6f7a8b9c0d1e2f", "direction": "inbound", "from": "+14155550100", "to": "+14155550123",
"text": "Your verification code is 482913", "media": [], "status": "received", "codes": ["482913"],
"created_at": "2026-11-27T11:58:02+00:00" }
]
}

codes are the one-time codes found in the text (see Verification codes).

List calls and voicemails​

GET /api/uploadposts/phone-numbers/{number_id}/calls

Calls newest first, same limit and before.

{
"success": true,
"calls": [
{ "id": "call_5e6f7a8b9c0d1e2f3a4b5c6d", "from": "+34600999888", "to": "+34911234567", "mode": "voicemail",
"status": "completed", "started_at": "2026-11-27T11:40:00+00:00", "ended_at": "2026-11-27T11:40:41+00:00",
"duration_seconds": 41, "forwarded_to": null, "consent_notice_played": true,
"recording_url": "https://signed-url.example/recording.mp3?signature=...", "transcript": "Hi, this is Marta, please call me back.", "codes": [] }
]
}
FieldDescription
modeforward, voicemail, whatsapp_verify or missed.
consent_notice_playedThe caller heard that the call is recorded and transcribed.
recording_urlSigned link to the recording, valid for 1 hour. Read the call again for a new one.
transcriptTranscription of the voicemail or verification call.

Verification codes​

GET /api/uploadposts/phone-numbers/{number_id}/codes

One-time codes (4 to 8 digits) found in the SMS and call transcripts of the last 30 minutes, newest first. Spoken codes are recognised in English, Spanish and Portuguese ("four eight two nine one three"). since (ISO 8601) returns only codes after it. Poll it every few seconds while you connect WhatsApp.

{
"success": true,
"codes": [
{ "code": "482913", "source": "call", "from": "+16505550000", "received_at": "2026-11-27T12:03:11+00:00",
"text": "Your WhatsApp code is 4 8 2 9 1 3. Your WhatsApp code is 4 8 2 9 1 3." }
]
}

source is sms or call.

Prepare for WhatsApp​

POST /api/uploadposts/phone-numbers/{number_id}/whatsapp/prepare

Opens a 30-minute window in which calls to the number are answered, recorded (up to 90 seconds) and transcribed, so the code Meta reads out appears in GET /codes. Optional body {"language": "en"} (en, es, pt, fr, de, it; the language Meta's call will use). Call it again for a new window.

{
"success": true,
"verify_until": "2026-11-27T12:30:00+00:00",
"phone_number": "+34911234567",
"instructions": "In Meta's window add this number and choose Phone call to receive the code. Upload-Post answers the call and shows the code in GET /codes."
}

Then open Connect WhatsApp on the profile, add the number in Meta's window and choose Phone call (not text message). Full walkthrough: Connect WhatsApp with an Upload-Post number. Errors: 409 phone_number_not_active, 403 phone_number_suspended.


Port-out details​

GET /api/uploadposts/phone-numbers/{number_id}/port-out

You can move a number to another carrier at any time: ask the new carrier to port it and give them these details. Owner only.

{
"success": true,
"phone_number": "+34911234567",
"account_number": "34911234567",
"pin": null,
"name": "Acme SL",
"address": { "street_address": "Calle Mayor 1", "locality": "Madrid", "postal_code": "28013", "country_code": "ES", "extended_address": null, "administrative_area": null },
"instructions": "Give your new carrier this name and address exactly as shown, the account number and the phone number. No PIN is set. Your number stays active until the move completes."
}

You get phone_number_port_out as the move progresses (and an email). When it completes, the number becomes ported_out and its monthly charge stops. Porting a number into Upload-Post is not available yet.


Get usage​

GET /api/uploadposts/phone-numbers/usage

Billable usage between from and to (ISO 8601; default: from the start of the month until now), in your account's billing currency (currency). Charged on the next subscription invoice.

{
"success": true,
"from": "2026-11-01T00:00:00+00:00",
"to": "2026-11-27T12:00:00+00:00",
"currency": "usd",
"lines": [
{ "id": "pu_0a1b2c3d4e5f6a7b8c9d0e1f", "number_id": "pn_3f9c0a1b2c3d4e5f6a7b8c9d", "phone_number": "+34911234567",
"kind": "forwarding", "quantity": 3, "unit": "minute", "amount": 0.3, "currency": "usd", "billed": false,
"created_at": "2026-11-27T11:45:00+00:00" }
],
"totals": { "forwarding": { "quantity": 3, "amount": 0.3 } },
"total": 0.3,
"today": 0.3,
"daily_cap": 20.0
}

kind is sms_outbound (unit part), forwarding, inbound_minutes, recording or transcription (unit minute). billed: true once the line is on an invoice. today against daily_cap is the daily usage limit. An invalid date answers 400 phone_numbers_invalid_request.


Webhook events​

Seven webhook events, opt-in like dm_received: list them in webhook_events (or in a webhook subscription). They are sent only while phone numbers are available on the account.

EventWhenExtra fields
sms_receivedA number received an SMS.message
call_receivedA call to a number ended (forwarded, voicemail, verification or missed).call
voicemail_receivedA voicemail was recorded (with its transcript when transcription is on).call
phone_number_activatedA number became active (also after the documents were approved).number
phone_number_declinedThe carrier declined the identity documents. Refunded.number, reason
phone_number_releasedA number was released.number, reason
phone_number_port_outA move to another carrier changed status.number, port_out_status

Every event has the same envelope: platform is phone, account_id is the number's id (pn_...) and phone_number the number in E.164. message is a SMS, call a call and number a phone number object.

{
"event": "sms_received",
"user_email": "[email protected]",
"profile_username": "client-a",
"platform": "phone",
"account_id": "pn_3f9c0a1b2c3d4e5f6a7b8c9d",
"phone_number": "+14155550123",
"created_at": "2026-11-27T11:58:02.481920",
"message": { "id": "msg_1a2b3c4d5e6f7a8b9c0d1e2f", "direction": "inbound", "from": "+14155550100", "to": "+14155550123",
"text": "Your verification code is 482913", "media": [], "status": "received", "codes": ["482913"],
"created_at": "2026-11-27T11:58:02+00:00" }
}
{
"event": "voicemail_received",
"user_email": "[email protected]",
"profile_username": "client-a",
"platform": "phone",
"account_id": "pn_3f9c0a1b2c3d4e5f6a7b8c9d",
"phone_number": "+34911234567",
"created_at": "2026-11-27T11:41:10.102233",
"call": { "id": "call_5e6f7a8b9c0d1e2f3a4b5c6d", "from": "+34600999888", "to": "+34911234567", "mode": "voicemail", "status": "completed",
"started_at": "2026-11-27T11:40:00+00:00", "ended_at": "2026-11-27T11:40:41+00:00", "duration_seconds": 41,
"forwarded_to": null, "consent_notice_played": true, "recording_url": "https://signed-url.example/recording.mp3?signature=...",
"transcript": "Hi, this is Marta, please call me back.", "codes": [] }
}
{
"event": "phone_number_released",
"user_email": "[email protected]",
"profile_username": "client-a",
"platform": "phone",
"account_id": "pn_3f9c0a1b2c3d4e5f6a7b8c9d",
"phone_number": "+34911234567",
"created_at": "2026-11-27T12:00:00.000000",
"number": { "id": "pn_3f9c0a1b2c3d4e5f6a7b8c9d", "phone_number": "+34911234567", "status": "released", "...": "..." },
"reason": "customer"
}

phone_number_released reason: customer (you released it), subscription_deleted_grace_ended (the subscription ended and the 7-day grace period passed), or another value when support released it. phone_number_declined reason is the carrier's explanation. phone_number_port_out port_out_status is the status of the move as the carrier reports it (ported / completed when done).


When the subscription ends​

If the subscription is cancelled or ends, its numbers are suspended at once (suspended: true, release_scheduled_at set) and released after a 7-day grace period, with an email before. Subscribe again within those 7 days to keep them. While suspended, a number cannot send SMS and its calls are not forwarded or answered. Moving to another paid plan keeps the numbers.

Misuse​

Numbers are for your own communications. Receiving one-time codes for third parties on an ongoing basis, sending spam, bulk account creation, traffic pumping and the other uses forbidden by the phone number terms lead to a review (abuse_review: true) and suspension (suspended: true). A suspended number is not released automatically: contact support.

Errors​

Every endpoint can also answer:

HTTPerror_codeWhen
401—Missing or invalid API key.
403phone_numbers_not_availablePhone numbers are not available on this account yet.
403phone_numbers_owner_onlyOnly the account owner can do this.
404phone_number_not_foundThe number_id is not one of your numbers.
400phone_numbers_invalid_requestInvalid parameter (dates must be ISO 8601; limit must be an integer within its range).
429phone_numbers_rate_limitedToo many requests to the carrier. Honour Retry-After.
502phone_numbers_carrier_errorThe carrier did not answer. Retry.

The full contract of every endpoint is in the OpenAPI spec (tag Phone Numbers).