Dequeue a member from a queue and have the member's call begin executing the TwiML document at that URL

POST /2010-04-01/Accounts/{AccountSid}/Queues/{QueueSid}/Members/{CallSid}.json

Calls in a call queue

Dequeue a member from a queue and have the member's call begin executing the TwiML document at that URL

Path parameters

  • AccountSid string Required

    The SID of the Account that created the Member resource(s) to update.

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

  • QueueSid string Required

    The SID of the Queue in which to find the members to update.

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

  • CallSid string Required

    The Call SID of the resource(s) to update.

application/x-www-form-urlencoded

Body

  • Url string(uri) Required

    The absolute URL of the Queue resource.

  • Method string(http-method)

    How to pass the update request data. Can be GET or POST and the default is POST. POST sends the data as encoded form data and GET sends the data as query parameters.

    Values are GET or POST.

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

      The SID of the Call the Member resource is associated with.

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

    • date_enqueued string(date-time-rfc-2822) | null

      The date that the member was enqueued, given in RFC 2822 format.

    • position integer

      This member's current position in the queue.

      Default value is 0.

    • uri string | null

      The URI of the resource, relative to https://api.twilio.com.

    • wait_time integer

      The number of seconds the member has been in the queue.

      Default value is 0.

    • queue_sid string | null

      The SID of the Queue the member is in.

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

POST /2010-04-01/Accounts/{AccountSid}/Queues/{QueueSid}/Members/{CallSid}.json
curl \
 --request POST 'https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/Queues/{QueueSid}/Members/{CallSid}.json' \
 --user "username:password" \
 --header "Content-Type: application/x-www-form-urlencoded" \
 --data 'Url=https%3A%2F%2Fexample.com&Method=GET'
Request examples
{"Url"=>"https://example.com", "Method"=>"GET"}
{"Url"=>"https://example.com", "Method"=>"GET"}
Response examples (200)
{
  "uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Queues/QUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Members/CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json",
  "call_sid": "CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
  "position": 1,
  "queue_sid": "QUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
  "wait_time": 143,
  "date_enqueued": "Thu, 06 Dec 2018 18:42:47 +0000"
}
{
  "uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Queues/QUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Members/CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json",
  "call_sid": "CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
  "position": 1,
  "queue_sid": "QUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
  "wait_time": 143,
  "date_enqueued": "Tue, 07 Aug 2012 22:57:41 +0000"
}