Get Number Information

Overview

Get basic information relating to a number, including rate center, state, sms enablement, and other data.

Authentication

Authentication is done by passing your TSG Global API key via the Authorization header in the format "Authorization: Bearer <api_key>"

SMS and MMS Configuration Method

Returns information about the did (currently SMS and MMS configuration only).

GET https://api-service.tsgglobal.world/v2/dids/<number>

Path Parameters

NameTypeDescription

number*

string

The number that was looked up.

{
  "number": "12342341234",
  "sms_enabled": true,
  "sms_status": "ACTIVE",
  "sms_post_ver": "postv2",
  "sms_uri": "https://example.com",
  "mms_enabled": true,
  "mms_uri": "mm4://example.com:2525"
}

Possible sms_status values: "N/A" or "NONE" - number not sms enabled "PENDING" - number pending to be enabled "DSBL-PND" - number pending to be disabled "ACTIVE" - number sms enabled "ERROR" - unable to sms enable number - contact support

Additional Data Method

Lookup additional phone number information.

GET https://api-service.tsgglobal.world/v1/did/lookup?did=<1NPANXXXXXX>

If did param is omitted all numbers on the matching account will be listed one per line.

Path Parameters

NameTypeDescription

did

string

1NPANXXXXXX, +NPANXXXXXX, 12022011234, +12022011234

DID, ROUTING INFO, ACTIVATION DATE, LAST USED DATE, SEC USED, DID RATE, ORDER ID, RATE CENTER, STATE, TIER, PORTED, SMS ENABLED, SMS STATUS, SMS POST VERSION, SMS POST URL, PROVISIONING DATA, MAX CHANNELS
"17867469428","SIP/XXXX","2022-01-11 00:00:00","2022-05-01 00:00:01","0","0.0030000000","CUS9079-SMS","MIAMI","FL","0","N","t","ACTIVE","postv1","","ppm-did-billing-RFC2833-no+","2000"

Last updated