メニュー

Rate this page:

Thanks for rating this page!

We are always striving to improve our documentation quality, and your feedback is valuable to us. How could this documentation serve you better?

Queue Resource

The Queue resource describes a call queue that contains individual calls, which are described by the queue's Member resources. Your account can have more than one call queue. Each queue can be retreived by it's sid directly using fetch. Alternately, you can read the list of Queues and filter by friendly_name or any other property you prefer.

Call queues are created when you enqueue a call to a queue that doesn't exist and when you call the create action.

For information about enqueing calls to a call queue, see Queueing Calls.

Queue properties

Names in Java format
accountSid
sid<AC> Not PII

The SID of the Account that created this Queue resource.

averageWaitTime
integer Not PII

The average wait time in seconds of the members in this queue. This is calculated at the time of the request.

currentSize
integer Not PII

The number of calls currently in the queue.

dateCreated
date_time<rfc2822> Not PII

The date and time in GMT that this resource was created specified in RFC 2822 format.

dateUpdated
date_time<rfc2822> Not PII

The date and time in GMT that this resource was last updated, specified in RFC 2822 format.

friendlyName
文字列 Not PII

A string that you assigned to describe this resource.

maxSize
integer Not PII

The maximum number of calls that can be in the queue. The default is 100 and the maximum is 5000.

sid
sid<QU> Not PII

The unique string that that we created to identify this Queue resource.

uri
uri Not PII

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

Create a Queue resource

post
https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/Queues.json
パラメーター
Names in Java format
maxSize
オプション
post integer Not PII

The maximum number of calls allowed to be in the queue. The default is 100. The maximum is 5000.

friendlyName
必須
post 文字列 Not PII

A descriptive string that you created to describe this resource. It can be up to 64 characters long.

pathAccountSid
必須
post sid<AC> Not PII

The SID of the Account that will create the resource.

        
        
        
        

        Fetch a Queue resource

        GET
        https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/Queues/{Sid}.json
        パラメーター
        Names in Java format
        pathAccountSid
        必須
        GET sid<AC> Not PII

        The SID of the Account that created the Queue resource(s) to fetch.

        pathSid
        必須
        GET sid<QU> Not PII

        The Twilio-provided string that uniquely identifies the Queue resource to fetch

              
              
              
              

              Read multiple Queue resources

              GET
              https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/Queues.json
              パラメーター
              Names in Java format
              pathAccountSid
              必須
              GET sid<AC> Not PII

              The SID of the Account that created the Queue resource(s) to read.

                    
                    
                    
                    

                    Update a Queue resource

                    post
                    https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/Queues/{Sid}.json
                    パラメーター
                    Names in Java format
                    pathAccountSid
                    必須
                    post sid<AC> Not PII

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

                    pathSid
                    必須
                    post sid<QU> Not PII

                    The Twilio-provided string that uniquely identifies the Queue resource to update

                    friendlyName
                    オプション
                    post 文字列 Not PII

                    A descriptive string that you created to describe this resource. It can be up to 64 characters long.

                    maxSize
                    オプション
                    post integer Not PII

                    The maximum number of calls allowed to be in the queue. The default is 100. The maximum is 5000.

                          
                          
                          
                          

                          Delete a Queue resource

                          削除する
                          https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/Queues/{Sid}.json
                          パラメーター
                          Names in Java format
                          pathAccountSid
                          必須
                          削除する sid<AC> Not PII

                          The SID of the Account that created the Queue resource(s) to delete.

                          pathSid
                          必須
                          削除する sid<QU> Not PII

                          The Twilio-provided string that uniquely identifies the Queue resource to delete

                                
                                
                                
                                

                                ヘルプが必要ですか?

                                We all do sometimes; code is hard. Get help now from our support team, or lean on the wisdom of the crowd browsing the Twilio tag on Stack Overflow.