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.

  • QueueSid string Required

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

  • CallSid string Required

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

application/x-www-form-urlencoded

Body

  • 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 HEAD, GET, POST, PATCH, PUT, or DELETE.

  • Url string(uri) Required

    The absolute URL of the Queue resource.

Responses

  • 200

    OK

    Hide response attributes Show response attributes object
    • call_sid string | null

      The SID of the Call the 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 the member was enqueued

    • position integer | null

      This member's current position in the queue.

    • 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}$.

    • uri string(uri) | null

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

    • wait_time integer | null

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

POST /2010-04-01/Accounts/{AccountSid}/Queues/{QueueSid}/Members/{CallSid}.json
curl \
 -X POST https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/Queues/{QueueSid}/Members/{CallSid}.json \
 --user "username:password" \
 -H "Content-Type: application/x-www-form-urlencoded" \
 -d 'Method=HEAD&Url=https%3A%2F%2Fexample.com'
Request example
{
  "Method": "HEAD",
  "Url": "https://example.com"
}
Response examples (200)
{
  "call_sid": "string",
  "date_enqueued": "string",
  "position": 42,
  "queue_sid": "string",
  "uri": "https://example.com",
  "wait_time": 42
}