Worker Reservations represent the current and past reservations for a Worker. Current Reservations can be accepted using the Reservation instance resource.
account_sid
type: SID<AC>The SID of the Account that created the WorkerReservation resource.
^AC[0-9a-fA-F]{32}$
34
34
date_created
type: string<date-time>The date and time in GMT when the resource was created specified in ISO 8601 format.
date_updated
type: string<date-time>The date and time in GMT when the resource was last updated specified in ISO 8601 format.
reservation_status
type: enum<string>The current status of the reservation. Can be: pending
, accepted
, rejected
, timeout
, canceled
, or rescinded
.
pending
accepted
rejected
timeout
canceled
rescinded
wrapping
completed
sid
type: SID<WR>The unique string that we created to identify the WorkerReservation resource.
^WR[0-9a-fA-F]{32}$
34
34
task_sid
type: SID<WT>The SID of the reserved Task resource.
^WT[0-9a-fA-F]{32}$
34
34
worker_sid
type: SID<WK>The SID of the reserved Worker resource.
^WK[0-9a-fA-F]{32}$
34
34
workspace_sid
type: SID<WS>The SID of the Workspace that this worker is contained within.
^WS[0-9a-fA-F]{32}$
34
34
GET https://taskrouter.twilio.com/v1/Workspaces/{WorkspaceSid}/Workers/{WorkerSid}/Reservations/{Sid}
WorkspaceSid
type: SID<WS>The SID of the Workspace with the WorkerReservation resource to fetch.
^WS[0-9a-fA-F]{32}$
34
34
WorkerSid
type: SID<WK>The SID of the reserved Worker resource with the WorkerReservation resource to fetch.
^WK[0-9a-fA-F]{32}$
34
34
Sid
type: SID<WR>The SID of the WorkerReservation resource to fetch.
^WR[0-9a-fA-F]{32}$
34
34
GET https://taskrouter.twilio.com/v1/Workspaces/{WorkspaceSid}/Workers/{WorkerSid}/Reservations
WorkspaceSid
type: SID<WS>The SID of the Workspace with the WorkerReservation resources to read.
^WS[0-9a-fA-F]{32}$
34
34
WorkerSid
type: SID<WK>The SID of the reserved Worker resource with the WorkerReservation resources to read.
^WK[0-9a-fA-F]{32}$
34
34
ReservationStatus
type: enum<string>Returns the list of reservations for a worker with a specified ReservationStatus. Can be: pending
, accepted
, rejected
, timeout
, canceled
, or rescinded
.
pending
accepted
rejected
timeout
canceled
rescinded
wrapping
completed
PageSize
type: integerHow many resources to return in each list page. The default is 50, and the maximum is 1000.
1
Page
type: integerThe page index. This value is simply for client state.
0
POST https://taskrouter.twilio.com/v1/Workspaces/{WorkspaceSid}/Workers/{WorkerSid}/Reservations/{Sid}
To indicate that a Worker has accepted or rejected a Reservation, you make an HTTP POST
request to a Reservation instance resource URI.
You can issue a simple Accept or Reject request. You can also issue an Instruction, like Dequeueing or Calling, similar to Responding to an Assignment Callback.
Tasks are automatically canceled after 10 rejections.
See Manually accepting or rejecting a reservation for more information.
WorkspaceSid
type: SID<WS>The SID of the Workspace with the WorkerReservation resources to update.
^WS[0-9a-fA-F]{32}$
34
34
WorkerSid
type: SID<WK>The SID of the reserved Worker resource with the WorkerReservation resources to update.
^WK[0-9a-fA-F]{32}$
34
34
Sid
type: SID<WR>The SID of the WorkerReservation resource to update.
^WR[0-9a-fA-F]{32}$
34
34
ReservationStatus
type: enum<string>The new status of the reservation. Can be: pending
, accepted
, rejected
, timeout
, canceled
, or rescinded
.
pending
accepted
rejected
timeout
canceled
rescinded
wrapping
completed
WorkerActivitySid
type: SID<WA>The new worker activity SID if rejecting a reservation.
^WA[0-9a-fA-F]{32}$
34
34
DequeuePostWorkActivitySid
type: SID<WA>The SID of the Activity resource to start after executing a Dequeue instruction.
^WA[0-9a-fA-F]{32}$
34
34
DequeueFrom
type: stringThe caller ID of the call to the worker when executing a Dequeue instruction.
DequeueRecord
type: stringWhether to record both legs of a call when executing a Dequeue instruction or which leg to record.
DequeueTo
type: stringThe contact URI of the worker when executing a Dequeue instruction. Can be the URI of the Twilio Client, the SIP URI for Programmable SIP, or the E.164 formatted phone number, depending on the destination.
DequeueStatusCallbackUrl
type: string<uri>The callback URL for completed call event when executing a Dequeue instruction.
CallRecord
type: stringWhether to record both legs of a call when executing a Call instruction.
CallTo
type: stringThe contact URI of the worker when executing a Call instruction. Can be the URI of the Twilio Client, the SIP URI for Programmable SIP, or the E.164 formatted phone number, depending on the destination.
CallUrl
type: string<uri>TwiML URI executed on answering the worker's leg as a result of the Call instruction.
CallStatusCallbackUrl
type: string<uri>The URL to call for the completed call event when executing a Call instruction.
RedirectCallSid
type: SID<CA>The Call SID of the call parked in the queue when executing a Redirect instruction.
^CA[0-9a-fA-F]{32}$
34
34
RedirectAccept
type: booleanWhether the reservation should be accepted when executing a Redirect instruction.
RedirectUrl
type: string<uri>TwiML URI to redirect the call to when executing the Redirect instruction.
To
type: stringThe Contact URI of the worker when executing a Conference instruction. Can be the URI of the Twilio Client, the SIP URI for Programmable SIP, or the E.164 formatted phone number, depending on the destination.
From
type: stringThe caller ID of the call to the worker when executing a Conference instruction.
StatusCallback
type: string<uri>The URL we should call using the status_callback_method
to send status information to your application.
StatusCallbackMethod
type: enum<http-method>The HTTP method we should use to call status_callback
. Can be: POST
or GET
and the default is POST
.
GET
POST
StatusCallbackEvent
type: array[string]The call progress events that we will send to status_callback
. Can be: initiated
, ringing
, answered
, or completed
.
initiated
ringing
answered
completed
Record
type: booleanWhether to record the participant and their conferences, including the time between conferences. Can be true
or false
and the default is false
.
Beep
type: stringWhether to play a notification beep when the participant joins or when to play a beep. Can be: true
, false
, onEnter
, or onExit
. The default value is true
.
StartConferenceOnEnter
type: booleanWhether to start the conference when the participant joins, if it has not already started. Can be: true
or false
and the default is true
. If false
and the conference has not started, the participant is muted and hears background music until another participant starts the conference.
WaitUrl
type: string<uri>The URL we should call using the wait_method
for the music to play while participants are waiting for the conference to start. The default value is the URL of our standard hold music. Learn more about hold music.
WaitMethod
type: enum<http-method>The HTTP method we should use to call wait_url
. Can be GET
or POST
and the default is POST
. When using a static audio file, this should be GET
so that we can cache the file.
GET
POST
EarlyMedia
type: booleanWhether to allow an agent to hear the state of the outbound call, including ringing or disconnect messages. The default is true
.
MaxParticipants
type: integerThe maximum number of participants allowed in the conference. Can be a positive integer from 2
to 250
. The default value is 250
.
ConferenceStatusCallback
type: string<uri>The URL we should call using the conference_status_callback_method
when the conference events in conference_status_callback_event
occur. Only the value set by the first participant to join the conference is used. Subsequent conference_status_callback
values are ignored.
ConferenceStatusCallbackMethod
type: enum<http-method>The HTTP method we should use to call conference_status_callback
. Can be: GET
or POST
and defaults to POST
.
GET
POST
ConferenceStatusCallbackEvent
type: array[string]The conference status events that we will send to conference_status_callback
. Can be: start
, end
, join
, leave
, mute
, hold
, speaker
.
start
end
join
leave
mute
hold
speaker
ConferenceRecord
type: stringWhether to record the conference the participant is joining or when to record the conference. Can be: true
, false
, record-from-start
, and do-not-record
. The default value is false
.
ConferenceTrim
type: stringWhether to trim leading and trailing silence from your recorded conference audio files. Can be: trim-silence
or do-not-trim
and defaults to trim-silence
.
RecordingChannels
type: stringThe recording channels for the final recording. Can be: mono
or dual
and the default is mono
.
RecordingStatusCallback
type: string<uri>The URL that we should call using the recording_status_callback_method
when the recording status changes.
RecordingStatusCallbackMethod
type: enum<http-method>The HTTP method we should use when we call recording_status_callback
. Can be: GET
or POST
and defaults to POST
.
GET
POST
ConferenceRecordingStatusCallback
type: string<uri>The URL we should call using the conference_recording_status_callback_method
when the conference recording is available.
ConferenceRecordingStatusCallbackMethod
type: enum<http-method>The HTTP method we should use to call conference_recording_status_callback
. Can be: GET
or POST
and defaults to POST
.
GET
POST
Region
type: stringThe region where we should mix the recorded audio. Can be:us1
, ie1
, de1
, sg1
, br1
, au1
, or jp1
.
DequeueStatusCallbackEvent
type: array[string]The call progress events sent via webhooks as a result of a Dequeue instruction.
PostWorkActivitySid
type: SID<WA>The new worker activity SID after executing a Conference instruction.
^WA[0-9a-fA-F]{32}$
34
34
EndConferenceOnCustomerExit
type: booleanWhether to end the conference when the customer leaves.
BeepOnCustomerEntrance
type: booleanWhether to play a notification beep when the customer joins.
JitterBufferSize
type: stringThe jitter buffer size for conference. Can be: small
, medium
, large
, off
.