Let your customers verify their identity with a link
Telephone regulators require the carrier to know who uses each phone number, and some countries also ask for an ID, a company certificate or a proof of address. When the person who will use the number is your customer, you do not have to collect those documents yourself: send them a link to a white-label page hosted by Upload-Post, where they fill in their own details and documents. When they submit it, the number is bought on your Upload-Post account, for the profile you chose.
The API answers 403 phone_numbers_not_available until phone numbers are available for your account.
How it works
- You create a link for one profile, country and number type, with your branding and a
redirect_url. - You send the link to your customer (email, chat, your own app).
- Your customer opens it, with no login, fills in their identity and the documents the country needs, accepts the phone number terms and submits.
- Upload-Post buys the number on your account and the page sends your customer back to your
redirect_url. - You follow the number with
GET /kyc/shareand webhooks until it is active.
Before you start
- A paid plan on your account. The number is billed to your subscription like any other purchase (see Pricing). The plan is checked when you create the link and again when your customer submits the page.
- The profile that will own the number (
profile_username), and the country and number type to buy: check them inGET /countries. Optionally, a specific number fromGET /available. - Your account's API key. Creating, listing and revoking links is for the account owner (team members get
403 phone_numbers_owner_only).
1. Create the link
curl -X POST https://api.upload-post.com/api/uploadposts/phone-numbers/kyc/share \
-H "Authorization: Apikey YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"profile_username": "client-a",
"country": "DE",
"number_type": "local",
"redirect_url": "https://example.com/onboarding/phone?customer=123",
"branding": {
"company_name": "Acme",
"logo_url": "https://example.com/logo.png",
"brand_color": "#4F46E5"
},
"language": "en"
}'
| Field | Required | Description |
|---|---|---|
profile_username | Yes | Profile of your account that will own the number. |
country, number_type | Yes | ISO country code and local, mobile or national. |
phone_number | No | A specific number from GET /available (E.164). Without it, the first available number is taken when the page is submitted. |
redirect_url | Yes | https:// page your customer is sent to after submitting. Your own query parameters are kept. |
branding | No | company_name (up to 80 characters), logo_url (https://) and brand_color (#RRGGBB) shown on the page. |
language | No | en (default), es or pt-BR. |
The answer:
{
"success": true,
"id": "kl_3f9c0a1b2c3d4e5f6a7b8c9d",
"url": "https://app.upload-post.com/phone-kyc/Zx8rN2...",
"token": "Zx8rN2...",
"expires_at": "2026-12-04T10:00:00+00:00"
}
urlis what you send to your customer.id(kl_...) is your handle to list and revoke the link. Store it next to your customer.tokenis the secret part of the URL. It is returned only here: Upload-Post does not store it and never shows it again.
2. Send it to your customer
Send url however you talk to your customer. Anyone with the link can use it, so send it only to them.
- Single use: once submitted, it cannot be used again.
- Valid 7 days (
expires_at). After that, create a new one. - Up to 20 active links per account at a time.
3. What your customer sees
- No login and no Upload-Post account. The page shows your company name, logo and color, in the language of the link. It never shows your account, plan or profile.
- The country, number type and, if you chose one, the number.
- Their details: whether the number is for an individual or a business, name, business name, contact phone and address (an address in the country for Spain, Germany, France and Italy).
- The documents or extra data the country needs, if any (PDF, JPG or PNG, up to 10 MB each).
- The notice that the number cannot call emergency services, and the phone number terms, which they accept on the page before submitting.
- If the number is for an individual, the request to start the number at once within the 14-day withdrawal period (immediate-start consent), which they give on the page too. You do not send it yourself, and the page cannot be submitted without it.
If a detail is missing or invalid, the page says what to fix and your customer can correct it and submit again.
4. Back to your site
After a successful submission, the page sends your customer to your redirect_url with two parameters added:
https://example.com/onboarding/phone?customer=123&kyc=submitted&country=DE
kyc=submitted means the details were sent and the number was bought on your account. It does not mean the number is active yet: countries with documents need the carrier's review first.
5. Track the number
GET /kyc/share lists your links, newest first. A submitted link has status: used and the number_id it bought:
{
"success": true,
"links": [
{ "id": "kl_3f9c0a1b2c3d4e5f6a7b8c9d", "profile_username": "client-a", "country": "DE", "number_type": "local",
"phone_number": null, "status": "used", "created_at": "2026-11-27T10:00:00+00:00",
"expires_at": "2026-12-04T10:00:00+00:00", "used_at": "2026-11-27T16:20:00+00:00", "revoked_at": null,
"number_id": "pn_8a7b6c5d4e3f2a1b0c9d8e7f" }
]
}
status is active (not used yet), used, expired or revoked. With number_id, GET /phone-numbers/{number_id} gives the number and its status (active, pending_payment, or pending_regulatory while the carrier reviews the documents).
Instead of polling, list these webhook events in webhook_events (they are opt-in):
phone_number_activated: the number is active.phone_number_declined: the carrier declined the documents. The payment is kept; see below.phone_number_kyc_comment: the carrier's reviewer wrote a message.
Every event has profile_username and account_id (the number_id), so you can match it to your customer.
If the carrier declines the documents
A declined review keeps your payment and pauses the monthly charge. You fix it, from your account: GET /remediate shows what was rejected and the reviewer's messages, and POST /remediate sends only the corrections (ask your customer for the new document). Nothing fixed within 30 days means the purchase is cancelled and refunded. Details: If the documents are declined.
The link itself is already used: you do not need a new one to fix a declined review.
Revoke a link
To cancel a link you sent (wrong customer, wrong country, a plan change):
curl -X DELETE https://api.upload-post.com/api/uploadposts/phone-numbers/kyc/share/kl_3f9c0a1b2c3d4e5f6a7b8c9d \
-H "Authorization: Apikey YOUR_API_KEY"
It stops working at once: the page tells your customer it was cancelled by the company that sent it (410 phone_kyc_link_revoked). A link that was already used cannot be revoked (409 phone_kyc_link_used): release the number instead.
When the link cannot be used
Problems your customer cannot fix are never explained to them on the page, so your plan, limits and account stay private. The page says the link cannot be used right now (phone_kyc_link_unavailable) and asks them to contact you, and the link stays active: once you solve it, your customer can submit the same link again. Typical causes:
- your account has no active paid plan (
phone_numbers_paid_plan_required); - the account already has the maximum of numbers, or bought one less than 10 minutes ago;
- the chosen number was taken, or the country or type is no longer sold.
Limits and errors
Limits
- 20 active links per account; 7 days per link; one use per link.
- Up to 10 submissions per link: after that the link is locked and listed as
expired. - The usual purchase limits of your account apply when the page is submitted (5 numbers, one purchase every 10 minutes).
Errors of the API (your side)
| HTTP | error_code | When |
|---|---|---|
| 400 | phone_numbers_invalid_request | redirect_url or logo_url is not https://, brand_color is not #RRGGBB, company_name is longer than 80 characters, or language or phone_number is invalid. |
| 400 | phone_numbers_country_not_available / phone_numbers_type_not_offered | That country or type is not sold. |
| 402 | phone_numbers_paid_plan_required | Your account has no active paid plan. With upgrade_url. |
| 403 | phone_numbers_owner_only | A team member tried to create, list or revoke links. |
| 404 | profile_not_found | profile_username does not exist. |
| 404 | phone_kyc_link_not_found | Revoke: no link with that id on your account. |
| 409 | phone_kyc_links_limit | 20 links are already active (max_active). Revoke one or wait until one is used or expires. |
| 409 | phone_kyc_link_used | Revoke: the link was already used. Release the number instead. |
What the page shows your customer
| Code | Meaning |
|---|---|
phone_kyc_link_revoked (410) | You revoked the link. |
phone_kyc_link_used (410) | The link was already submitted. |
phone_kyc_link_expired (410) | The 7 days passed, or there were too many submissions. Send a new link. |
phone_kyc_link_invalid (404) | The link does not exist (mistyped or incomplete URL). |
phone_kyc_link_unavailable (409) | A problem on your side (see When the link cannot be used). The link stays active. |
phone_kyc_link_busy (409) | A submission is still being processed. Try again in a minute. |
phone_kyc_link_attempts (429) | Too many submissions of this link: it is locked. Send a new link. |
phone_kyc_payload_too_large (413) | The documents add up to more than 40 MB. Your customer can send smaller files (each one up to 10 MB). |
phone_kyc_length_required (411) | The submission arrived without its size (Content-Length) and was not read. Your customer can submit again. |
The page talks to Upload-Post through its own public endpoint, only for the page: it is not part of the API you call and you never need it.