Get Long Code Number Details
Get the details of a specific Long code nnumber that you own.
GET
/workspaces/{workspaceId}/numbers-long-code/{longCodeNumberId}
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.
Payload respons
id
string
wajib
The unique identifier of the long code number. The endpoint ID is the same.
endpointId
string
wajib
The unique identifier of the endpoint. The long conde ID is the same.
numberString
string
wajib
The phone number in E.164 format.
countryCode
string
wajib
The country code in ISO 3166-1 alpha-2 format.
type
string
The type of long code number.
Possible values: local, national, toll-free, mobile
capabilities
object
wajib
Capabilities of the phone number. It shows if the phone number supports voice, sms and/or mms.
Tampilkan atribut turunan
capabilities.voice
object
wajib
Tampilkan atribut turunan
capabilities.voice.inbound
boolean
wajib
Whether the number supports inbound use cases.
capabilities.voice.outbound
boolean
wajib
Whether the number supports outbound use cases.
capabilities.sms
object
wajib
Tampilkan atribut turunan
capabilities.sms.inbound
boolean
wajib
Whether the number supports inbound use cases.
capabilities.sms.outbound
boolean
wajib
Whether the number supports outbound use cases.
capabilities.mms
object
wajib
Tampilkan atribut turunan
capabilities.mms.inbound
boolean
wajib
Whether the number supports inbound use cases.
capabilities.mms.outbound
boolean
wajib
Whether the number supports outbound use cases.
capabilities.whatsapp
object
Tampilkan atribut turunan
capabilities.whatsapp.inbound
boolean
wajib
Whether the number supports inbound use cases.
capabilities.whatsapp.outbound
boolean
wajib
Whether the number supports outbound use cases.
createdAt
string
wajib
updatedAt
string
wajib
order
object
The order that created this long code number. It contains information such as the capabilities, order status and type.
Tampilkan atribut turunan
order.countryCode
string
wajib
The country code in ISO 3166-1 alpha-2 format.
order.type
string
wajib
The type of long code number.
Possible values: local, national, toll-free, mobile
order.capabilities
array of string
wajib
order.prefix
string
order.status
string
wajib
Possible values: draft, submitted, processing, fulfilled, rejected, cancelled
order.createdAt
string
wajib
order.updatedAt
string
wajib
deprovisionAt
string
The date and time when the long code number should be deprovisioned.
endpoint
object
wajib
A representation of an endpoint. It contains details such as the capabilities, dependencies, and more.
Tampilkan atribut turunan
endpoint.id
string
wajib
The ID of the endpoint.
endpoint.type
string
wajib
The type of the endpoint. It can be a long code number, short code number, alpha number, ip pool, or rcs google agent.
Possible values: long-code-number, short-code-number, alpha-number, ip-pool, rcs-google-agent
endpoint.instanceId
string
wajib
The unique identifier of the instance.
endpoint.name
string
wajib
The name of the endpoint. For some cases it will be the number in international format as string.
endpoint.capabilities
array of object
wajib
Tampilkan atribut turunan
endpoint.capabilities.name
string
wajib
Possible values: sms
endpoint.capabilities.inbound
object
Tampilkan atribut turunan
endpoint.capabilities.inbound.status
string
wajib
Possible values: active, inactive, available, unavailable
endpoint.capabilities.inbound.issues
array of string
endpoint.capabilities.outbound
object
Tampilkan atribut turunan
endpoint.capabilities.outbound.status
string
wajib
Possible values: active, inactive, available, unavailable
endpoint.capabilities.outbound.destinationStatuses
object
Tampilkan atribut turunan
endpoint.capabilities.outbound.destinationStatuses.active
number
endpoint.capabilities.outbound.destinationStatuses.inactive
number
endpoint.capabilities.outbound.destinationStatuses.available
number
endpoint.capabilities.outbound.destinationStatuses.unavailable
number
endpoint.capabilities.outbound.supportsDestinations
boolean
Whether the number supports destinations
endpoint.capabilities.outbound.issues
array of string
endpoint.capabilities.name
string
wajib
Possible values: mms
endpoint.capabilities.inbound
object
Tampilkan atribut turunan
endpoint.capabilities.inbound.status
string
wajib
Possible values: active, inactive, available, unavailable
endpoint.capabilities.inbound.issues
array of string
endpoint.capabilities.outbound
object
Tampilkan atribut turunan
endpoint.capabilities.outbound.status
string
wajib
Possible values: active, inactive, available, unavailable
endpoint.capabilities.outbound.destinationStatuses
object
Tampilkan atribut turunan
endpoint.capabilities.outbound.destinationStatuses.active
number
endpoint.capabilities.outbound.destinationStatuses.inactive
number
endpoint.capabilities.outbound.destinationStatuses.available
number
endpoint.capabilities.outbound.destinationStatuses.unavailable
number
endpoint.capabilities.outbound.supportsDestinations
boolean
Whether the number supports destinations
endpoint.capabilities.outbound.issues
array of string
endpoint.capabilities.name
string
wajib
Possible values: voice
endpoint.capabilities.inbound
object
Tampilkan atribut turunan
endpoint.capabilities.inbound.status
string
wajib
Possible values: active, inactive, available, unavailable
endpoint.capabilities.inbound.issues
array of string
endpoint.capabilities.outbound
object
Tampilkan atribut turunan
endpoint.capabilities.outbound.status
string
wajib
Possible values: active, inactive, available, unavailable
endpoint.capabilities.outbound.destinationStatuses
object
Tampilkan atribut turunan
endpoint.capabilities.outbound.destinationStatuses.active
number
endpoint.capabilities.outbound.destinationStatuses.inactive
number
endpoint.capabilities.outbound.destinationStatuses.available
number
endpoint.capabilities.outbound.destinationStatuses.unavailable
number
endpoint.capabilities.outbound.supportsDestinations
boolean
Whether the number supports destinations
endpoint.capabilities.outbound.issues
array of string
endpoint.capabilities.useCaseType
string
Possible values: contact-centre
endpoint.capabilities.name
string
wajib
Possible values: whatsapp
endpoint.capabilities.inbound
object
Tampilkan atribut turunan
endpoint.capabilities.inbound.status
string
wajib
Possible values: active, inactive, available, unavailable
endpoint.capabilities.inbound.issues
array of string
endpoint.capabilities.outbound
object
Tampilkan atribut turunan
endpoint.capabilities.outbound.status
string
wajib
Possible values: active, inactive, available, unavailable
endpoint.capabilities.outbound.destinationStatuses
object
Tampilkan atribut turunan
endpoint.capabilities.outbound.destinationStatuses.active
number
endpoint.capabilities.outbound.destinationStatuses.inactive
number
endpoint.capabilities.outbound.destinationStatuses.available
number
endpoint.capabilities.outbound.destinationStatuses.unavailable
number
endpoint.capabilities.outbound.supportsDestinations
boolean
Whether the number supports destinations
endpoint.capabilities.outbound.issues
array of string
endpoint.capabilities.name
string
wajib
Possible values: email
endpoint.capabilities.inbound
object
Tampilkan atribut turunan
endpoint.capabilities.inbound.status
string
wajib
Possible values: active, inactive, available, unavailable
endpoint.capabilities.inbound.issues
array of string
endpoint.capabilities.outbound
object
Tampilkan atribut turunan
endpoint.capabilities.outbound.status
string
wajib
Possible values: active, inactive, available, unavailable
endpoint.capabilities.outbound.destinationStatuses
object
Tampilkan atribut turunan
endpoint.capabilities.outbound.destinationStatuses.active
number
endpoint.capabilities.outbound.destinationStatuses.inactive
number
endpoint.capabilities.outbound.destinationStatuses.available
number
endpoint.capabilities.outbound.destinationStatuses.unavailable
number
endpoint.capabilities.outbound.supportsDestinations
boolean
Whether the number supports destinations
endpoint.capabilities.outbound.issues
array of string
endpoint.capabilities.name
string
wajib
Possible values: rcs-google
endpoint.capabilities.inbound
object
Tampilkan atribut turunan
endpoint.capabilities.inbound.status
string
wajib
Possible values: active, inactive, available, unavailable
endpoint.capabilities.inbound.issues
array of string
endpoint.capabilities.outbound
object
Tampilkan atribut turunan
endpoint.capabilities.outbound.status
string
wajib
Possible values: active, inactive, available, unavailable
endpoint.capabilities.outbound.destinationStatuses
object
Tampilkan atribut turunan
endpoint.capabilities.outbound.destinationStatuses.active
number
endpoint.capabilities.outbound.destinationStatuses.inactive
number
endpoint.capabilities.outbound.destinationStatuses.available
number
endpoint.capabilities.outbound.destinationStatuses.unavailable
number
endpoint.capabilities.outbound.supportsDestinations
boolean
Whether the number supports destinations
endpoint.capabilities.outbound.issues
array of string
endpoint.dependencies
array of object
The dependencies of the endpoint. It shows the connectors that the endpoint is connected to.
Tampilkan atribut turunan
endpoint.dependencies.type
string
Possible values: connector
endpoint.dependencies.connectorId
string
wajib
endpoint.dependencies.connectorTemplateRef
string
wajib
endpoint.dependencies.capabilities
array of string
endpoint.issues
array of string
endpoint.provisioningStatus
string
wajib
Possible values: provisioned, provisioning, deprovisioned, deprovisioning
endpoint.whatsApp
object
WhatsApp pre-verification details for this endpoint, if applicable. Only present for long code numbers from WhatsApp-capable providers.
Tampilkan atribut turunan
endpoint.whatsApp.whatsAppId
string
endpoint.whatsApp.status
string
WhatsApp number status
Possible values: unknown, already-exists, installed, verified, not-verified, expired
endpoint.whatsApp.stage
string
endpoint.whatsApp.attempt
integer
endpoint.whatsApp.nextAttemptAt
string
endpoint.whatsApp.verificationExpiresAt
string
endpoint.whatsApp.requestedCodeAt
string
endpoint.whatsApp.createdAt
string
endpoint.whatsApp.updatedAt
string
endpoint.createdAt
string
wajib
endpoint.updatedAt
string
wajib
Contoh kode
curl -X GET 'https://api.bird.com/workspaces/{workspaceId}/numbers-long-code/{longCodeNumberId}' \
-H 'Authorization: AccessKey YOUR_ACCESS_KEY'