Diska
Phone numbers

List phone numbers

The organization's phone number inventory.
GET https://api.diska.ai/v1/phone-numbers

Scope: phone-numbers:read

Numbers imported over SIP also carry the trunk fields; the SIP password is never returned, only sip_password_configured.

Parameters

Query string

NameTypeRequiredDescription
searchstring | nullNoText in the number, the name or the SIP domain. Up to 200 characters.
number_typestring | nullNopurchased (DISKA numbers) or imported (your own numbers over SIP).

Examples

curl "https://api.diska.ai/v1/phone-numbers" \
  -H "Authorization: Bearer $DISKA_API_KEY"

Try it

Send the request from this page, with your key. The key stays on this page: it is not stored and is only sent to api.diska.ai. Use a test key with the fewest scopes you need.

GEThttps://api.diska.ai/v1/phone-numbers
Starts with dsk_. It stays in this browser tab only.
query
query
Enter an API key (dsk_…).

Response 200

FieldTypeDescription
itemsarrayThe numbers.
items[].idstringID.
items[].organization_idstringOrganization it belongs to.
items[].e164stringThe number in E.164 format.
items[].friendly_namestring | nullName given to the number.
items[].number_typestringpurchased (DISKA number) or imported (your own number over SIP). Default: purchased.
items[].statusstringactive or inactive. Default: active.
items[].country_codestringNumber's country (ISO 3166). Default: AO.
items[].capabilitiesobjectWhat the number supports.
items[].capabilities.callsbooleanMakes and receives calls. Default: true.
items[].capabilities.smsbooleanSends SMS. Default: true.
items[].monthly_price_kznumber | nullMonthly price in kwanzas, when applicable.
items[].providerstring | nullNumber's carrier.
items[].provider_sidstring | nullThe number's ID at the carrier.
items[].agent_idstring | nullThe number's main agent.
items[].agentsarrayAgents that use the number.
items[].agents[].idstringAgent.
items[].agents[].namestringAgent name.
items[].agents[].statusstring | nullAgent state.
items[].sip_domainstring | nullSIP trunk: server domain.
items[].sip_usernamestring | nullSIP trunk: username.
items[].sip_password_configuredbooleantrue when the SIP password is set (it is never returned). Default: false.
items[].sip_outbound_proxystring | nullSIP trunk: outbound proxy.
items[].sip_auth_usernamestring | nullSIP trunk: authentication username, if different.
items[].sip_outbound_registerbooleantrue when Diska registers with the SIP server. Default: false.
items[].origination_uristring | nullSIP address the carrier sends incoming calls to.
items[].sip_statusstring | nullSIP trunk state. One of: pending_credentials, pending_provisioning, ready, error.
items[].sip_status_detailstring | nullTrunk state detail.
items[].sip_transportstringSIP transport. One of: udp, tcp. Default: udp.
items[].sip_allowed_ipsarrayIP addresses allowed to send calls.
items[].created_atstring | nullCreation date (ISO 8601).
items[].updated_atstring | nullLast change date (ISO 8601).
totalintegerHow many numbers.
{
  "items": [
    {
      "id": "5c2e8a14-7d3b-4f9e-a1c6-0b8d2f4e6a93",
      "organization_id": "5c2e8a14-7d3b-4f9e-a1c6-0b8d2f4e6a93",
      "e164": "+244900000000",
      "friendly_name": "Linha principal",
      "number_type": "purchased",
      "status": "active",
      "country_code": "AO",
      "capabilities": {
        "calls": true,
        "sms": true
      },
      "monthly_price_kz": 0,
      "provider": "africell",
      "provider_sid": null,
      "agent_id": "3f1c2a7e-5b9d-4c1e-8f3a-2d6b7e9c1a40",
      "agents": [
        {
          "id": "5c2e8a14-7d3b-4f9e-a1c6-0b8d2f4e6a93",
          "name": "Recepção",
          "status": "active"
        }
      ],
      "sip_domain": null,
      "sip_username": null,
      "sip_password_configured": false,
      "sip_outbound_proxy": null,
      "sip_auth_username": null,
      "sip_outbound_register": false,
      "origination_uri": null,
      "sip_status": null,
      "sip_status_detail": null,
      "sip_transport": "udp",
      "sip_allowed_ips": [],
      "created_at": "2026-10-25T18:40:00Z",
      "updated_at": "2026-10-25T18:40:00Z"
    }
  ],
  "total": 1
}

Errors

This endpoint has no errors of its own.

Errors common to every endpoint (401, 403, 422, 429 and 5xx) are in Errors.

Copyright © 2026