Retrieve a list of HostedNumberOrders belonging to the account initiating the request.

GET /v2/HostedNumber/Orders

Retrieve a list of HostedNumberOrders belonging to the account initiating the request.

Query parameters

  • Status string

    The Status of this HostedNumberOrder. One of received, pending-verification, verified, pending-loa, carrier-processing, testing, completed, failed, or action-required.

    Values are twilio-processing, received, pending-verification, verified, pending-loa, carrier-processing, testing, completed, failed, or action-required.

  • SmsCapability boolean

    Whether the SMS capability will be hosted on our platform. Can be true of false.

  • PhoneNumber string(phone-number)

    An E164 formatted phone number hosted by this HostedNumberOrder.

  • IncomingPhoneNumberSid string

    A 34 character string that uniquely identifies the IncomingPhoneNumber resource created by this HostedNumberOrder.

    Minimum length is 34, maximum length is 34. Format should match the following pattern: ^PN[0-9a-fA-F]{32}$.

  • FriendlyName string

    A human readable description of this resource, up to 128 characters.

  • PageSize integer(int64)

    How many resources to return in each list page. The default is 50, and the maximum is 1000.

    Minimum value is 1, maximum value is 1000.

  • Page integer

    The page index. This value is simply for client state.

    Minimum value is 0.

  • PageToken string

    The page token. This is provided by the API.

Responses

  • 200 application/json

    OK

    Hide headers attributes Show headers attributes
    • Access-Control-Allow-Origin string

      Specify the origin(s) allowed to access the resource

    • Access-Control-Allow-Methods string

      Specify the HTTP methods allowed when accessing the resource

    • Access-Control-Allow-Headers string

      Specify the headers allowed when accessing the resource

    • Access-Control-Allow-Credentials boolean

      Indicates whether the browser should include credentials

    • Access-Control-Expose-Headers string

      Headers exposed to the client

    Hide response attributes Show response attributes object
    • items array[object]
      Hide items attributes Show items attributes object
      • sid string | null

        A 34 character string that uniquely identifies this HostedNumberOrder.

        Minimum length is 34, maximum length is 34. Format should match the following pattern: ^HR[0-9a-fA-F]{32}$.

      • account_sid string | null

        A 34 character string that uniquely identifies the account.

        Minimum length is 34, maximum length is 34. Format should match the following pattern: ^AC[0-9a-fA-F]{32}$.

      • incoming_phone_number_sid string | null

        A 34 character string that uniquely identifies the IncomingPhoneNumber resource that represents the phone number being hosted.

        Minimum length is 34, maximum length is 34. Format should match the following pattern: ^PN[0-9a-fA-F]{32}$.

      • address_sid string | null

        A 34 character string that uniquely identifies the Address resource that represents the address of the owner of this phone number.

        Minimum length is 34, maximum length is 34. Format should match the following pattern: ^AD[0-9a-fA-F]{32}$.

      • signing_document_sid string | null

        A 34 character string that uniquely identifies the Authorization Document the user needs to sign.

        Minimum length is 34, maximum length is 34. Format should match the following pattern: ^PX[0-9a-fA-F]{32}$.

      • phone_number string(phone-number) | null

        Phone number to be hosted. This must be in E.164 format, e.g., +16175551212

      • capabilities object(phone-number-capabilities) | null

        Set of booleans describing the capabilities hosted on Twilio's platform. SMS is currently only supported.

        Hide capabilities attributes Show capabilities attributes object(phone-number-capabilities) | null
        • mms boolean
        • sms boolean
        • voice boolean
        • fax boolean
      • friendly_name string | null

        A 128 character string that is a human-readable text that describes this resource.

      • status string

        Status of this resource. It can hold one of the values: 1. Twilio Processing 2. Received, 3. Pending LOA, 4. Carrier Processing, 5. Completed, 6. Action Required, 7. Failed. See the HostedNumberOrders Status Values section for more information on each of these statuses.

        Values are twilio-processing, received, pending-verification, verified, pending-loa, carrier-processing, testing, completed, failed, or action-required.

      • failure_reason string | null

        A message that explains why a hosted_number_order went to status "action-required"

      • date_created string(date-time) | null

        The date this resource was created, given as GMT RFC 2822 format.

      • date_updated string(date-time) | null

        The date that this resource was updated, given as GMT RFC 2822 format.

      • email string | null

        Email of the owner of this phone number that is being hosted.

      • cc_emails array[string] | null

        A list of emails that LOA document for this HostedNumberOrder will be carbon copied to.

      • url string(uri) | null

        The URL of this HostedNumberOrder.

      • contact_title string | null

        The title of the person authorized to sign the Authorization Document for this phone number.

      • contact_phone_number string(phone-number) | null

        The contact phone number of the person authorized to sign the Authorization Document.

      • bulk_hosting_request_sid string | null

        A 34 character string that uniquely identifies the bulk hosting request associated with this HostedNumberOrder.

        Minimum length is 34, maximum length is 34. Format should match the following pattern: ^BH[0-9a-fA-F]{32}$.

      • next_step string | null

        The next step you need to take to complete the hosted number order and request it successfully.

      • verification_attempts integer

        The number of attempts made to verify ownership via a call for the hosted phone number.

        Default value is 0.

      • verification_call_sids array[string] | null

        The Call SIDs that identify the calls placed to verify ownership.

      • verification_call_delay integer

        The number of seconds to wait before initiating the ownership verification call. Can be a value between 0 and 60, inclusive.

        Default value is 0.

      • verification_call_extension string | null

        The numerical extension to dial when making the ownership verification call.

      • verification_code string | null

        The digits the user must pass in the ownership verification call.

      • verification_type string

        The method used to verify ownership of the number to be hosted. Can be: phone-call or phone-bill and the default is phone-call.

        Value is phone-call.

    • meta object
      Hide meta attributes Show meta attributes object
      • first_page_url string(uri)
      • key string
      • next_page_url string(uri) | null
      • page integer
      • page_size integer
      • previous_page_url string(uri) | null
      • url string(uri)
GET /v2/HostedNumber/Orders
curl \
 --request GET 'https://numbers.twilio.com/v2/HostedNumber/Orders' \
 --user "username:password"
Response examples (200)
{
  "meta": {
    "key": "items",
    "url": "https://numbers.twilio.com/v2/HostedNumber/Orders?Status=completed&FriendlyName=example&PhoneNumber=%2B19193608000&IncomingPhoneNumberSid=PNaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa&PageSize=50&Page=0",
    "page": 0,
    "page_size": 50,
    "next_page_url": null,
    "first_page_url": "https://numbers.twilio.com/v2/HostedNumber/Orders?Status=completed&FriendlyName=example&PhoneNumber=%2B19193608000&IncomingPhoneNumberSid=PNaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa&PageSize=50&Page=0",
    "previous_page_url": null
  },
  "items": []
}
{
  "meta": {
    "key": "items",
    "url": "https://numbers.twilio.com/v2/HostedNumber/Orders?PageSize=50&Page=0",
    "page": 0,
    "page_size": 50,
    "next_page_url": null,
    "first_page_url": "https://numbers.twilio.com/v2/HostedNumber/Orders?PageSize=50&Page=0",
    "previous_page_url": null
  },
  "items": [
    {
      "sid": "HRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
      "url": "https://numbers.twilio.com/v2/HostedNumber/Orders/HRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
      "email": "test@twilio.com",
      "status": "received",
      "cc_emails": [
        "aaa@twilio.com",
        "bbb@twilio.com"
      ],
      "next_step": "next_step",
      "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
      "address_sid": "AD11111111111111111111111111111111",
      "capabilities": {
        "sms": true,
        "voice": false
      },
      "date_created": "2017-03-28T20:06:39Z",
      "date_updated": "2017-03-28T20:06:39Z",
      "phone_number": "+14153608311",
      "contact_title": "contact_title_test",
      "friendly_name": "friendly_name",
      "failure_reason": "",
      "verification_code": null,
      "verification_type": "phone-call",
      "contact_phone_number": "+12344444444",
      "signing_document_sid": "PX11111111111111111111111111111111",
      "verification_attempts": 0,
      "verification_call_sids": [],
      "verification_call_delay": 0,
      "bulk_hosting_request_sid": "BH11111111111111111111111111111111",
      "incoming_phone_number_sid": "PN11111111111111111111111111111111",
      "verification_call_extension": null
    }
  ]
}