Long Code Numbers
Overview
The current concept of Number
represents the so-called Long Code Number
. Long Code Number always relates to the Number
purchased or ordered from the Inventory. This is any number, that has a country prefix at the beginning. The term Number
is renamed to LongCodeNumber.
API Access
The following API requests can only be made using a valid access key, and attached to an access role, with an access policy that at least specifies the permissions to the resources outlined in each section below. Learn more about API access.
List Long Code Numbers
In order to retrieve a list of long code numbers available in your workspace you can use this request.
Get a list of all Long code numbers assigned to your workspace. You can filter your list of numbers by country code, types (e.g. a local, mobile, or toll-free number), supported capabilities and the number leading digits. The results can be paginated. To learn more about the pagination, please refer to the pagination section on API Access Common API Usage section.
The ID for the workspace.
d386a801-ee8d-4aba-a7e4-78671bd3b11e
Limits the number of results to return per page. The default value is 10 and maximum is 99. If the nextPageToken is defined on response, you can use it to get remaining numbers. To know more, refer to the pagination section.
10
Pagination token that keeps of track of the current position in the list. Use it to query remaining results. If not provided, the first page is returned. To learn more about the pagination, please refer to the pagination section on API Access Common API Usage section.
Order in which to retrieve the results. By default, the orders are in ascending order date. To get the results in descending order, set this parameter to true.
false
Used to filter numbers by their leading digits. The "+" prefix is optional, but the country code is required.
+1212
A 2-digit ISO 3166-1 country code array.
["US","NL"]
f6606a78-e48e-4026-b5e8-4fb9c3ed3bbb
GET /workspaces/{workspaceId}/numbers-long-code HTTP/1.1
Host: api.bird.com
Authorization: AccessKey YOUR_SECRET_TOKEN
Accept: */*
OK
{
"nextPageToken": "text",
"results": [
{
"id": "41e3cf43-4386-464a-a1ee-e6ef6fd6883d",
"endpointId": "41e3cf43-4386-464a-a1ee-e6ef6fd6883d",
"numberString": "+14155552671",
"countryCode": "US",
"type": "local",
"capabilities": {
"voice": {
"inbound": true,
"outbound": true
},
"sms": {
"inbound": true,
"outbound": true
},
"mms": {
"inbound": true,
"outbound": true
}
},
"createdAt": "2025-08-03T17:59:36.127Z",
"updatedAt": "2025-08-03T17:59:36.127Z",
"order": {
"countryCode": "US",
"type": "local",
"capabilities": [
"voice"
],
"prefix": "text",
"status": "draft",
"createdAt": "2025-08-03T17:59:36.127Z",
"updatedAt": "2025-08-03T17:59:36.127Z"
},
"deprovisionAt": "2025-08-03T17:59:36.127Z",
"endpoint": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"type": "long-code-number",
"instanceId": "1551f382-6870-4480-8f9b-f5ab34936288",
"name": "+14155552671",
"capabilities": [
{
"name": "sms",
"inbound": {
"status": "active",
"issues": [
"subscription-is-not-active"
]
},
"outbound": {
"status": "active",
"destinationStatuses": {
"active": 1,
"inactive": 1,
"available": 1,
"unavailable": 1
},
"supportsDestinations": true,
"issues": [
"subscription-is-not-active"
]
}
}
],
"dependencies": [
{
"type": "connector",
"connectorId": "123e4567-e89b-12d3-a456-426614174000",
"connectorTemplateRef": "text",
"capabilities": [
"voice"
]
}
],
"issues": [
"subscription-is-not-active"
],
"provisioningStatus": "provisioned",
"createdAt": "2025-08-03T17:59:36.127Z",
"updatedAt": "2025-08-03T17:59:36.127Z"
}
}
]
}
curl "https://api.bird.com/workspaces/{workpaceId}/numbers-long-code/"
-H 'Authorization: Bearer '
Get a Long Code Number
In order to retrieve the details of a long code number available in your workspace you can use this request.
This endpoint returns the information of a Long Code Number assigned to the workspace given its ID. You may use the EndpointID as well to search for your long code number.
The ID for the workspace.
d386a801-ee8d-4aba-a7e4-78671bd3b11e
Your long code number/endpoint ID.
3d7eb12b-9101-450d-923b-5ffcd9e989a9
GET /workspaces/{workspaceId}/numbers-long-code/{longCodeNumberId} HTTP/1.1
Host: api.bird.com
Authorization: AccessKey YOUR_SECRET_TOKEN
Accept: */*
{
"id": "41e3cf43-4386-464a-a1ee-e6ef6fd6883d",
"endpointId": "41e3cf43-4386-464a-a1ee-e6ef6fd6883d",
"numberString": "+14155552671",
"countryCode": "US",
"type": "local",
"capabilities": {
"voice": {
"inbound": true,
"outbound": true
},
"sms": {
"inbound": true,
"outbound": true
},
"mms": {
"inbound": true,
"outbound": true
}
},
"createdAt": "2025-08-03T17:59:36.127Z",
"updatedAt": "2025-08-03T17:59:36.127Z",
"order": {
"countryCode": "US",
"type": "local",
"capabilities": [
"voice"
],
"prefix": "text",
"status": "draft",
"createdAt": "2025-08-03T17:59:36.127Z",
"updatedAt": "2025-08-03T17:59:36.127Z"
},
"deprovisionAt": "2025-08-03T17:59:36.127Z",
"endpoint": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"type": "long-code-number",
"instanceId": "1551f382-6870-4480-8f9b-f5ab34936288",
"name": "+14155552671",
"capabilities": [
{
"name": "sms",
"inbound": {
"status": "active",
"issues": [
"subscription-is-not-active"
]
},
"outbound": {
"status": "active",
"destinationStatuses": {
"active": 1,
"inactive": 1,
"available": 1,
"unavailable": 1
},
"supportsDestinations": true,
"issues": [
"subscription-is-not-active"
]
}
}
],
"dependencies": [
{
"type": "connector",
"connectorId": "123e4567-e89b-12d3-a456-426614174000",
"connectorTemplateRef": "text",
"capabilities": [
"voice"
]
}
],
"issues": [
"subscription-is-not-active"
],
"provisioningStatus": "provisioned",
"createdAt": "2025-08-03T17:59:36.127Z",
"updatedAt": "2025-08-03T17:59:36.127Z"
}
}
curl "https://api.bird.com/workspaces/{workspaceId}/numbers-long-code/{longCodeId}" \
-H 'Authorization: Bearer <your-access-key>'
Last updated
Was this helpful?