Fetch a specific BulkHostedNumberOrder.

GET /v2/HostedNumber/Orders/Bulk/{BulkHostingSid}

Fetch a specific BulkHostedNumberOrder.

Path parameters

  • BulkHostingSid string Required

    A 34 character string that uniquely identifies this BulkHostedNumberOrder.

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

Query parameters

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
    • bulk_hosting_sid string | null

      A 34 character string that uniquely identifies this BulkHostedNumberOrder.

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

    • request_status string

      A string that shows the status of the current Bulk Hosting request, it can vary between these values: 'QUEUED','IN_PROGRESS','PROCESSED'

      Values are QUEUED, IN_PROGRESS, or PROCESSED.

    • friendly_name string | null

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

    • notification_email string | null

      Email address used for send notifications about this Bulk hosted number request.

    • date_created string(date-time) | null

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

    • date_completed string(date-time) | null

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

    • url string(uri) | null

      The URL of this BulkHostedNumberOrder resource.

    • total_count integer

      The total count of phone numbers in this Bulk hosting request.

      Default value is 0.

    • results array | null

      Contains a list of all the individual hosting orders and their information, for this Bulk request. Each result object is grouped by its order status. To see a complete list of order status, please check 'https://www.twilio.com/docs/phone-numbers/hosted-numbers/hosted-numbers-api/hosted-number-order-resource#status-values'.

GET /v2/HostedNumber/Orders/Bulk/{BulkHostingSid}
curl \
 --request GET 'https://numbers.twilio.com/v2/HostedNumber/Orders/Bulk/{BulkHostingSid}' \
 --user "username:password"
Response examples (200)
{
  "url": "https://numbers.twilio.com/v2/HostedNumber/Orders/Bulk/BHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
  "results": [
    {
      "count": "2",
      "orders": [
        {
          "url": "https://numbers.twilio.com/v2/HostedNumber/Orders/HRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
          "email": "test@twilio.com",
          "next_step": null,
          "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
          "phone_number": "+12222222222",
          "failure_reason": null,
          "hosting_order_sid": "HRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
          "signing_document_sid": "PXaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
        },
        {
          "url": "https://numbers.twilio.com/v2/HostedNumber/Orders/HRbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb",
          "email": "test@twilio.com",
          "next_step": null,
          "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
          "phone_number": "+13333333333",
          "failure_reason": null,
          "hosting_order_sid": "HRbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb",
          "signing_document_sid": "PXbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb"
        }
      ],
      "order_status": "pending_loa",
      "get_more_info": null
    },
    {
      "count": "2",
      "orders": [
        {
          "url": "https://numbers.twilio.com/v2/HostedNumber/Orders/HRcccccccccccccccccccccccccccccccc",
          "email": "test@twilio.com",
          "next_step": "test next-step",
          "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
          "phone_number": "+14444444444",
          "failure_reason": "test failure-reason",
          "hosting_order_sid": "HRcccccccccccccccccccccccccccccccc",
          "signing_document_sid": null
        },
        {
          "url": "https://numbers.twilio.com/v2/HostedNumber/Orders/HRdddddddddddddddddddddddddddddddd",
          "email": "test@twilio.com",
          "next_step": "test next-step",
          "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
          "phone_number": "+15555555555",
          "failure_reason": "test failure-reason",
          "hosting_order_sid": "HRdddddddddddddddddddddddddddddddd",
          "signing_document_sid": null
        }
      ],
      "order_status": "failed",
      "get_more_info": "For more information, call the Hosted Number Eligibility API: https://www.twilio.com/docs/phone-numbers/hosted-numbers-api/eligibility-api-overview"
    }
  ],
  "total_count": 4,
  "date_created": "2023-06-29T15:19:37Z",
  "friendly_name": "test",
  "date_completed": "2023-06-30T15:19:37Z",
  "request_status": "PROCESSED",
  "bulk_hosting_sid": "BHaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
  "notification_email": "test@twilio.com"
}