List the numbers of the project
const url = 'https://api.clearance.rest/numbers/items?limit=50';const options = {method: 'GET', headers: {'X-API-Key': '<X-API-Key>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://api.clearance.rest/numbers/items?limit=50' \ --header 'X-API-Key: <X-API-Key>'Every number the project has ever had stays in the list; status tells whether it is usable. Sorted by assigned_at (newest first). A page can hold fewer than limit items; the list ends when next_cursor is null. Filter on metadata values with metadata.<key>=<string> query parameters (top-level keys of letters, digits, _ and -, up to 64 characters; the value is compared as a string; several filters must all match), and on missing keys with metadata_absent=<key>,<key> (comma-separated).
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”Page size (1-200).
The next_cursor value of the previous page.
Comma-separated statuses; a number matches when it has any of them (default: all).
Comma-separated number types; a number matches when it has any of them.
Comma-separated capabilities; the number must have all of them.
Exact match (E.164); encode + as %2B.
Comma-separated metadata keys; the number must have none of them.
Responses
Section titled “Responses”Default Response
object
A number of the project with its status and metadata.
object
UTC timestamp (ISO 8601).
UTC timestamp (ISO 8601).
Increases on every change; use it in If-Match.
Example
{ "success": true, "items": [ { "type": "temporary", "status": "ACTIVE" } ]}Default Response
Error envelope returned by every JSON endpoint.
object
object
Machine-readable error code (snake_case).
Human-readable message.
Extra context for the error.
object
Example
{ "success": false}Default Response
Error envelope returned by every JSON endpoint.
object
object
Machine-readable error code (snake_case).
Human-readable message.
Extra context for the error.
object
Example
{ "success": false}Default Response
Error envelope returned by every JSON endpoint.
object
object
Machine-readable error code (snake_case).
Human-readable message.
Extra context for the error.
object
Example
{ "success": false}