Get verification requirements
get_verification_requirementsFetch the carrier’s verification requirements—required fields, documents, and address—before buying a phone number or registering for US SMS.
Instructions
Read what the carrier needs to verify the organization before it
can buy a number. Call this when quote_numbers shows an offer with
readiness == "verification_required". Read-only.
``country_code`` is ISO alpha-2 (for example ``"GB"``). ``number_type``
is ``local``, ``mobile``, ``national`` or ``toll_free``.
``subject_type`` is required: ``person`` (the user) or ``business``
(the user's company). Never guess it: ask the user "you or your
company?". The result's ``subject_types`` lists what the carrier
accepts. The organization may hold one verification of each. ``quote_id`` is the
offer's ``quote_id`` from quote_numbers. It is required for
``purpose='number'``: the form is the one for that offer.
``purpose`` is ``number`` (default, to buy a number) or ``sms``.
``purpose='sms'`` registers the organization to text US numbers from a
US number (country_code US, number_type local). Fees are charged from
credit per step: when the details are submitted, when the carriers
start their review, then monthly after approval. If the error says to pass
``number_id``, pass the ``id`` of one of the organization's US numbers
from list_numbers.
Returns ``required`` (false means no verification is needed and
submit_verification would fail), ``fields`` (values to collect),
``documents`` (slots, each with ``options``), ``address_required``.
A field of kind ``choices`` takes several of its ``options``: send
their keys joined by commas (for example
``"CUSTOMER_CARE,DELIVERY_NOTIFICATION"``), between ``min_choices``
and ``max_choices`` of them.
A field with ``max_length`` takes at most that many characters,
counted in UTF-16 code units (an emoji counts as 2); a longer value
is refused (422).
Skip any document slot whose ``needs_input`` is false: do not send it.
Ask the USER for every value and every file. Never invent, guess or
infer personal or company data. Never reuse data from another task.
Errors come back as ``{"error": "<message>"}``.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": {
"country_code": "<country_code>",
"number_type": "<number_type>",
"subject_type": "<subject_type>"
},
"name": "get_verification_requirements"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| purpose | No | number | |
| quote_id | No | ||
| number_id | No | ||
| number_type | Yes | ||
| country_code | Yes | ||
| subject_type | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||