Overview
- Category
- Communication
- API mode
not_available- Processing
- client-side
- Privacy
- no-data-stored
Public descriptor
The descriptor is available without an API key and supplies this tool’s metadata, schemas, modes, and examples.
GET /api/v1/tools/international-phone-number-formatter
Execute availability
This tool is documented as a browser capability. Its execute route does not produce a server-side result; when execution is enabled, it responds with browser_interaction_required and points callers to the public tool page.
POST /api/v1/tools/international-phone-number-formatter/execute
Authentication is not issued during the preview. A bearer API key is planned for execution after launch.
Input schema
object object; additional properties are not accepted.
phone· string · required- Enter phone number.
country_code· string · required- Enter country calling code.
output· string · required-
Enter output style. Accepted values:
international, e164, national.
{
"type": "object",
"properties": {
"phone": {
"type": "string",
"description": "Enter phone number."
},
"country_code": {
"type": "string",
"description": "Enter country calling code."
},
"output": {
"type": "string",
"description": "Enter output style.",
"enum": [
"international",
"e164",
"national"
]
}
},
"required": [
"phone",
"country_code",
"output"
],
"additionalProperties": false
}
Output schema
On a successful execution, schema values appear in data.result.values.
formatted· string- Formatted number produced by the tool.
e164· string- E.164 candidate produced by the tool.
digits· number- Digits produced by the tool.
notice· string- Validation notice produced by the tool.
{
"type": "object",
"properties": {
"formatted": {
"type": "string",
"description": "Formatted number produced by the tool."
},
"e164": {
"type": "string",
"description": "E.164 candidate produced by the tool."
},
"digits": {
"type": "number",
"description": "Digits produced by the tool."
},
"notice": {
"type": "string",
"description": "Validation notice produced by the tool."
}
},
"additionalProperties": false
}
International Phone Number Formatter worked example
The request body follows the published input schema. The response below shows the success-envelope shape returned after execution is available.
curl -X POST "https://utilitypages.org/api/v1/tools/international-phone-number-formatter/execute" \
-H "Content-Type: application/json" \
-d '{
"phone": "(312) 555-0199",
"country_code": "1",
"output": "international"
}'
{
"ok": true,
"data": {
"slug": "international-phone-number-formatter",
"result": {
"values": {
"formatted": "++131 255 501 99",
"e164": "+13125550199",
"digits": 11,
"notice": "Formatting only; number assignment and reachability are not verified."
},
"display": {
"display": "++131 255 501 99"
},
"warnings": [],
"assumptions": [],
"steps": []
}
},
"meta": [],
"request_id": "req_example_123"
}
Errors
api_not_launched· 503- Returned by the current launch gate for every execute request.
invalid_json· 400- Returned when an enabled execute request does not contain valid JSON.
validation_failed· 422- Returned when a request does not satisfy the input schema.
browser_interaction_required· 422- Returned for browser capability tools instead of inventing a server-side result.
tool_not_found· 404- Returned when a requested descriptor slug does not exist.
execution_failed· 503- Returned when an enabled server-side execution cannot complete.