Gets a paginated list of phone number reservations.
Successful response with a list of number reservations.
Array of objects (NumberReservation) | |
object (PaginationMeta) |
import telnyx telnyx.api_key = "YOUR_API_KEY" telnyx.NumberReservation.list(filter={"phone_numbers.phone_number": ["+18665552368"]})
{- "data": [
- {
- "created_at": "2018-01-01T00:00:00.000000Z",
- "customer_reference": "MY REF 001",
- "id": "12ade33a-21c0-473b-b055-b3c836e1c292",
- "phone_numbers": [
- {
- "created_at": "2018-01-01T00:00:00.000000Z",
- "errors": "",
- "expired_at": "2018-01-01T00:00:00.000000Z",
- "id": "12ade33a-21c0-473b-b055-b3c836e1c292",
- "phone_number": "+19705555098",
- "record_type": "reserved_phone_number",
- "status": "pending",
- "updated_at": "2018-01-01T00:00:00.000000Z"
}
], - "record_type": "number_reservation",
- "status": "pending",
- "updated_at": "2018-01-01T00:00:00.000000Z"
}
], - "meta": {
- "page_number": 2,
- "page_size": 25,
- "total_pages": 3,
- "total_results": 55
}
}
Creates a Phone Number Reservation for multiple numbers.
Successful response with details about a number reservation.
{- "created_at": "2018-01-01T00:00:00.000000Z",
- "customer_reference": "MY REF 001",
- "id": "12ade33a-21c0-473b-b055-b3c836e1c292",
- "phone_numbers": [
- {
- "created_at": "2018-01-01T00:00:00.000000Z",
- "expired_at": "2018-01-01T00:00:00.000000Z",
- "id": "12ade33a-21c0-473b-b055-b3c836e1c292",
- "phone_number": "+19705555098",
- "record_type": "reserved_phone_number",
- "status": "pending",
- "updated_at": "2018-01-01T00:00:00.000000Z"
}
], - "record_type": "number_reservation",
- "status": "pending",
- "updated_at": "2018-01-01T00:00:00.000000Z"
}
{- "data": {
- "created_at": "2018-01-01T00:00:00.000000Z",
- "customer_reference": "MY REF 001",
- "id": "12ade33a-21c0-473b-b055-b3c836e1c292",
- "phone_numbers": [
- {
- "created_at": "2018-01-01T00:00:00.000000Z",
- "errors": "",
- "expired_at": "2018-01-01T00:00:00.000000Z",
- "id": "12ade33a-21c0-473b-b055-b3c836e1c292",
- "phone_number": "+19705555098",
- "record_type": "reserved_phone_number",
- "status": "pending",
- "updated_at": "2018-01-01T00:00:00.000000Z"
}
], - "record_type": "number_reservation",
- "status": "pending",
- "updated_at": "2018-01-01T00:00:00.000000Z"
}
}
Gets a single phone number reservation.
Successful response with details about a number reservation.
object (NumberReservation) | |||||||||||||||
|
import telnyx telnyx.api_key = "YOUR_API_KEY" telnyx.NumberReservation.retrieve("uuid")
{- "data": {
- "created_at": "2018-01-01T00:00:00.000000Z",
- "customer_reference": "MY REF 001",
- "id": "12ade33a-21c0-473b-b055-b3c836e1c292",
- "phone_numbers": [
- {
- "created_at": "2018-01-01T00:00:00.000000Z",
- "errors": "",
- "expired_at": "2018-01-01T00:00:00.000000Z",
- "id": "12ade33a-21c0-473b-b055-b3c836e1c292",
- "phone_number": "+19705555098",
- "record_type": "reserved_phone_number",
- "status": "pending",
- "updated_at": "2018-01-01T00:00:00.000000Z"
}
], - "record_type": "number_reservation",
- "status": "pending",
- "updated_at": "2018-01-01T00:00:00.000000Z"
}
}
Extends reservation expiry time on all phone numbers.
Successful response with details about a number reservation.
object (NumberReservation) | |||||||||||||||
|
import telnyx telnyx.api_key = "YOUR_API_KEY" number_reservation = telnyx.NumberReservation.retrieve("uuid") number_reservation.extend()
{- "data": {
- "created_at": "2018-01-01T00:00:00.000000Z",
- "customer_reference": "MY REF 001",
- "id": "12ade33a-21c0-473b-b055-b3c836e1c292",
- "phone_numbers": [
- {
- "created_at": "2018-01-01T00:00:00.000000Z",
- "errors": "",
- "expired_at": "2018-01-01T00:00:00.000000Z",
- "id": "12ade33a-21c0-473b-b055-b3c836e1c292",
- "phone_number": "+19705555098",
- "record_type": "reserved_phone_number",
- "status": "pending",
- "updated_at": "2018-01-01T00:00:00.000000Z"
}
], - "record_type": "number_reservation",
- "status": "pending",
- "updated_at": "2018-01-01T00:00:00.000000Z"
}
}