Outpost logoOutpost Docs

Get details for a specific phone number

GET
/v1/phones/{phone}
x-api-key<token>

Project-scoped API key. Keys carry either the ADMIN or TENANT role; a route additionally requires that the key's role is listed in its x-required-roles. Machine-to-machine callers should use this.

In: header

Path Parameters

phone*string

Phone number in E.164 format (e.g., +12488778283)

Match^\+[1-9]\d{1,14}$

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/v1/phones/string"
{  "phoneE164": "string",  "isOptedOut": true,  "optOutReason": "string",  "optOutAt": 0,  "optOutToken": "string",  "optOutUrl": "string",  "lastOptOutReminderAt": 0,  "lastMessageAt": 0,  "messageCount": 0,  "deliveredCount": 0,  "failedCount": 0,  "blockedCount": 0,  "totalCost": 0,  "isValidated": true,  "validatedAt": 0,  "isValid": true,  "validationErrorMessage": "string",  "carrier": "string",  "country": "string",  "countryCodeIso2": "string",  "city": "string",  "phoneType": "string",  "timezone": "string",  "tenantIds": [    "string"  ],  "projectIds": [    "string"  ],  "createdAt": 0,  "updatedAt": 0}