Successful response with a list of short codes.
Array of objects (ShortCode) | |
object (PaginationMeta) |
{- "data": [
- {
- "country_code": "US",
- "created_at": "2019-01-23T18:10:02.574Z",
- "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
- "messaging_profile_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
- "record_type": "short_code",
- "short_code": "12345",
- "updated_at": "2019-01-23T18:10:02.574Z"
}
], - "meta": {
- "page_number": 2,
- "page_size": 25,
- "total_pages": 3,
- "total_results": 55
}
}
Successful response with details about a short code.
{- "data": {
- "country_code": "US",
- "created_at": "2019-01-23T18:10:02.574Z",
- "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
- "messaging_profile_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
- "record_type": "short_code",
- "short_code": "12345",
- "updated_at": "2019-01-23T18:10:02.574Z"
}
}
Update the settings for a specific short code. To unbind a short code from a profile, set the messaging_profile_id
to null
or an empty string.
Successful response with details about a short code.
object (ShortCode) | |||||||||||||||
|
{- "messaging_profile_id": "abc85f64-5717-4562-b3fc-2c9600000000"
}
{- "data": {
- "country_code": "US",
- "created_at": "2019-01-23T18:10:02.574Z",
- "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
- "messaging_profile_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
- "record_type": "short_code",
- "short_code": "12345",
- "updated_at": "2019-01-23T18:10:02.574Z"
}
}