Deactivated Number Dip
Schema
The result of a deactivated-number dip: the entries found for a phone number in the deactivated number reports.
Type Object
| Name | Type | Description |
|---|---|---|
number |
String | The source number that was queried. |
results |
Array:SubObject | A list of results. |
SubObject
Sub-Schema
Type Object
| Name | Type | Description |
|---|---|---|
deactivated_at |
String(format:datetime) | Desc. deactivated_at |
messaging_reference_id |
String | Desc. messaging_reference_id |
Desc. deactivated_at
A rough datetime when the number was deactivated by its respective provider.
Desc. messaging_reference_id
Tychron reference id for the number's original provider.
Example
{
"number": "12003004000",
"results": [
{
"deactivated_at": "2021-08-13T04:08:44.762841Z",
"messaging_reference_id": "us_acme"
}
]
}
Summary
Lookup a deactivated item by its number, this will return data from deactivated number reports.
NOTE. This is a paid service, every request will charge your account.
The lookup is published at two paths, /api/v1/deactivated_number/{number} and /api/deactivated_number/{number}; they are the same operation.
API
List Deactivated Items for specified number
GET /api/v1/deactivated_number/{number} HTTP/1.1
NOTE. This is a paid service, every request will charge your account.
Lookup a deactivated item by its number, this will return data from deactivated number reports.
The same operation is also available without the version prefix:
GET /api/deactivated_number/{number} HTTP/1.1
Path Parameters
| Name | Type | Description |
|---|---|---|
| number | String(format:tel)! | The phone number to lookup, |
Query Parameters
| Name | Type | Description |
|---|---|---|
| output | Enum(TEXT, JSON):String |
Query Desc. output |
| after_datetime | String(format:datetime) | Query Desc. after_datetime |
| before_datetime | String(format:datetime) | Query Desc. before_datetime |
| limit | Integer(1..20) | Query Desc. limit |
| number_format | Enum(10DIGIT, 11DIGIT, E164):String |
Query Desc. number_format |
| enable_cdr_export | Boolean | Query Desc. enable_cdr_export |
Query Desc. output
Preferred output format:
* TEXT
* JSON
Default: JSON
Query Desc. after_datetime
Only items at or after the specified timestamp will be returned, this can be used to to filter items over a period.
Together with before_datetime can form a range: after..before.
Query Desc. before_datetime
Only items at or before the specified timestamp will be returned, this can be used to to filter items over a period.
If not provided only the latest records are returned instead.
Query Desc. limit
The maximum number of items that should be returned.
Default: 10
Query Desc. number_format
Preferred number format:
* 10DIGIT - e.g. 2003001234
* 11DIGIT - e.g. 12003001234
* E164 - e.g. +12003001234
Default: 11DIGIT
Query Desc. enable_cdr_export
Should the CDR created from this request be forwarded to the CDR Webhook?
By default, CDRs from enumeration services are not forwarded due to their volume.
Default: false
Request
GET /api/v1/deactivated_number/{number} HTTP/1.1
Accept: application/json
Response 200
application/json
HTTP/1.1 200
Content-Type: application/json
Content-Length: 204
{
"data": {
"number": "12003004000",
"results": [
{
"deactivated_at": "2021-08-13T04:08:44.762841Z",
"messaging_reference_id": "us_acme"
}
]
},
"errors": []
}
Response 402
application/json
HTTP/1.1 402
Content-Type: application/json
Content-Length: 143
{
"errors": [
{
"code": "account.balance_insufficient",
"detail": "string",
"title": "Insufficient Balance"
}
]
}
Response 403
application/json
HTTP/1.1 403
Content-Type: application/json
Content-Length: 312
{
"errors": [
{
"code": "access_denied.no_scope",
"detail": "No scope available to user role",
"params": {
"action": "index",
"level": "guest",
"resource": "resource"
},
"sub_code": "none",
"title": "Access Denied, no scope available"
}
]
}