Skip to main content

List number reservations

GET 

/number_reservations

Gets a paginated list of phone number reservations.

Request

Query Parameters

    filter[status] string

    Filter number reservations by status.

    filter[created_at][gt] string

    Filter number reservations later than this value.

    filter[created_at][lt] string

    Filter number reservations earlier than this value.

    filter[phone_numbers.phone_number] string

    Filter number reservations having these phone numbers.

    filter[customer_reference] string

    Filter number reservations via the customer reference set.

    page[number] integer

    Possible values: >= 1

    Default value: 1

    The page number to load

    page[size] integer

    Possible values: >= 1 and <= 250

    Default value: 20

    The size of the page

Responses

200: Successful response with a list of number reservations.

Schema

    data

    NumberReservation[]

  • Array [

  • id uuid
    record_type string

    phone_numbers

    ReservedPhoneNumber[]

  • Array [

  • id uuid
    record_type string
    phone_number e164_phone_number
    status string

    Possible values: [pending, success, failure]

    The status of the phone number's reservation.

    created_at datetime

    An ISO 8901 datetime string denoting when the individual number reservation was created.

    updated_at datetime

    An ISO 8901 datetime string for when the the individual number reservation was updated.

    expired_at datetime

    An ISO 8901 datetime string for when the individual number reservation is going to expire

  • ]

  • status string

    Possible values: [pending, success, failure]

    The status of the entire reservation.

    customer_reference string

    A customer reference string for customer look ups.

    created_at datetime

    An ISO 8901 datetime string denoting when the numbers reservation was created.

    updated_at datetime

    An ISO 8901 datetime string for when the number reservation was updated.

  • ]

  • meta

    object

    total_pages integer
    total_results integer
    page_number integer
    page_size integer

default: Unexpected error

Schema

    errors

    Error[]

  • Array [

  • code integerrequired
    title stringrequired
    detail string

    source

    object

    pointer json-pointer

    JSON pointer (RFC6901) to the offending entity.

    parameter string

    Indicates which query parameter caused the error.

    meta

    object

    url string

    URL with additional information on the error.

  • ]

Loading...