MCL Dip
Schema
The result of a Messaging Carrier Lookup (MCL) dip: the messaging carrier and messaging capability of an 11-digit NANP number.
Type Object
| Name | Type | Description |
|---|---|---|
number |
String | The number from the request. |
messaging |
SubObject |
SubObject
Sub-Schema
Type Object
| Name | Type | Description |
|---|---|---|
country |
String | Origin country of the number's provider. |
country_code |
String | Desc. country_code |
enabled |
Boolean | Desc. enabled |
provider |
String | Desc. provider |
reference_id |
String | Desc. reference_id |
Desc. country_code
ISO country code of the number's provider.
Desc. enabled
Whether the queried number is capable of messaging.
Desc. provider
Messaging provider if messaging-enabled, otherwise the voice provider.
Desc. reference_id
Tychron-issued internal ID grouping the service provider.
Example
{
"number": "12003004000",
"messaging": {
"enabled": true,
"provider": "ACME Corp",
"country": "United States",
"country_code": "US",
"reference_id": "us_acme"
}
}
Summary
Look up the messaging carrier and messaging capability of an 11-digit NANP number. Dips for Canadian numbers require additional permissions. Authenticate with your API Key's HTTP token as a Bearer credential.
Query results are licensed for the immediate transaction that generated the query. Under Tychron's Acceptable Use Policy, results may not be cached, stored, or reused for later transactions or used to build any dataset or directory, and may not be used for eligibility decisions regulated by the Fair Credit Reporting Act — query fresh, every time.
This endpoint is not part of the Atlas OpenAPI definition. This chapter follows the customer-facing contract on the MCL API page and its OpenAPI specification; that page also has troubleshooting for each response code and code samples.
API
Look up the messaging carrier for a number
GET /api/v1/messaging_carrier/{number} HTTP/1.1
Path Parameters
| Name | Type | Description |
|---|---|---|
| number | String! | Path Desc. number |
Query Parameters
| Name | Type | Description |
|---|---|---|
| output | Enum(json, text):String |
Query Desc. output |
| enable_cdr_export | Boolean | Query Desc. enable_cdr_export |
Path Desc. number
An 11-digit, valid North American Numbering Plan (NANP) number.
Query Desc. output
Response output format. JSON is recommended; text output is supported but discouraged, because it does not contain all of the information in the JSON response.
Default: json
Query Desc. enable_cdr_export
Forward CDRs generated by this request to any configured CDR Webhooks.
Default: false
Request
GET /api/v1/messaging_carrier/{number} HTTP/1.1
Accept: application/json
Response 200
application/json
Messaging-enabled number
HTTP/1.1 200
Content-Type: application/json
Content-Length: 237
{
"data": {
"number": "12003004000",
"messaging": {
"enabled": true,
"provider": "ACME Corp",
"country": "United States",
"country_code": "US",
"reference_id": "us_acme"
}
},
"errors": []
}
Number without messaging (provider is the voice provider)
HTTP/1.1 200
Content-Type: application/json
Content-Length: 254
{
"data": {
"number": "12003004000",
"messaging": {
"enabled": false,
"provider": "ACME Landline Co",
"country": "United States",
"country_code": "US",
"reference_id": "us_acme_landline"
}
},
"errors": []
}
text/plain
Space-separated:
HTTP/1.1 200
Content-Type: text/plain
Content-Length: 14
true ACME Corp
Response Headers
| Name | Description |
|---|---|
| X-Request-ID | ID identifying the HTTP request. |
| X-CDR-ID | ID of the CDR (Call Detail Record) generated by the request; provide it for billing questions. |
Other Responses
| Code | Description |
|---|---|
| 400 | Bad Request — invalid parameters. |
| 401 | Unauthorized — missing, invalid, or expired API token, or the account is not permitted. |
| 402 | Payment Required — insufficient balance or credit limit exceeded. |
| 403 | Forbidden — currently applies to Canadian dips, which require additional permissions. |
| 415 | Unsupported Media Type — remove the Content-Type header; this is a GET with query parameters. |
| 422 | Unprocessable Entity — parameters failed validation; the body contains details. |
| 500 | Internal Server Error. |