Skip to main content

Get Requirements

Get the regulatory requirements for purchasing phone numbers in a specific country. Some countries require identity verification, proof of address, or other documentation before you can purchase a number.

Endpoint

GET https://api.p.2chat.io/open/numbers/requirements

Authentication

Include your API key in the X-User-API-Key header. Learn more about authentication.

Parameters

These are query-string parameters.

FieldTypeRequiredDescription
countrystringYesISO country code (e.g. US, BR, DE)
did_typestringNoDID type ID to filter requirements (from the DID Types endpoint)

Invocation

curl --location --request GET 'https://api.p.2chat.io/open/numbers/requirements?country=DE' \
--header 'X-User-API-Key: your_api_key_here'
info

Regulation requirements vary by country. Some countries (like the US) have no special requirements, while others (like Germany) may require identity documents and proof of address.

Response

Success

{
"success": true,
"data": {
"requirements": [
{
// Regulation fields vary by country
// May include identity, address, and proof requirements
}
]
}
}

Error

{
"success": false,
"error": true,
"error_message": "Description of what went wrong"
}