Get a list of all Long code numbers assigned to your workspace.
You can filter your list of numbers using any of th following attributes:
countryCode: 2 digit ISO code of the country, example: US for United States, we follow iso3166-1 standard.
types: types of numbers your are searching for. Check API spec for allowed values.
capabilities: the capabilities of the number (sms, mms, voice, whatsapp). Check API spec for allowed values..
numberString: search numbers by their leading digits.
List Numbers in Workspace
get
List all purchased numbers assigned to the workspace. This endpoint provides various filtering options, including Country, Number Type and Capabilities.
Authorizations
HTTPRequired
Uses the Authorization header: 'AccessKey ' followed by your access key token (e.g., 'Authorization: AccessKey AbCdEfGhIjKlMnOpQrStUvWxYzAbCdEfGhIj')
Path parameters
workspaceIdstring · uuidRequired
The ID for the workspace.
Example: d386a801-ee8d-4aba-a7e4-78671bd3b11e
Query parameters
limitinteger · min: 1 · max: 99Optional
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.
Default: 10
pageTokenstring · max: 8000Optional
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.
reversebooleanOptional
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.
Default: false
prefixstring · min: 1 · max: 250Optional
Used to filter numbers belonging to a specific local area-code. It MUST be used in conjunction with the countryCodes filter. Always provide prefixes in full international format.
Example: +1212
searchTermstring · min: 1 · max: 250Optional
Used to filter for numbers containing the search term.
statusstring · enumOptional
The status of the number.
Possible values:
typestring · enumOptional
The type of the number.
Possible values:
countrystring · iso3166-1Optional
The country of the number.
smsstring · enumOptional
Include the SMS capability in the search filter.
Possible values:
voicestring · enumOptional
Include the Voice capability in the search filter.
Possible values:
mmsstring · enumOptional
Include the MMS capability in the search filter.
Possible values:
faxstring · enumOptional
Include the Fax capability in the search filter.
Possible values:
Responses
200
OK
application/json
404
Number or workspace not found
application/json
422
Invalid filter
application/json
get
/workspaces/{workspaceId}/numbers
Last updated
Was this helpful?
Was this helpful?
GET /workspaces/{workspaceId}/numbers HTTP/1.1
Host: api.bird.com
Authorization: AccessKey YOUR_SECRET_TOKEN
Accept: */*