Twilio Workspaces API

The Workspaces API from Twilio — 36 operation(s) for workspaces.

Documentation

Specifications

Other Resources

OpenAPI Specification

twilio-workspaces-api-openapi.yml Raw ↑
openapi: 3.0.1
info:
  title: Twilio - Accounts A2p Workspaces API
  description: This is the public Twilio REST API.
  termsOfService: https://www.twilio.com/legal/tos
  contact:
    name: Twilio Support
    url: https://support.twilio.com
    email: support@twilio.com
  license:
    name: Apache 2.0
    url: https://www.apache.org/licenses/LICENSE-2.0.html
  version: 1.52.0
servers:
- url: https://accounts.twilio.com
tags:
- name: Workspaces
paths:
  /v1/Workspaces/{WorkspaceSid}/Activities/{Sid}:
    servers:
    - url: https://taskrouter.twilio.com
    description: 'TODO: Resource-level docs'
    x-twilio:
      defaultOutputProperties:
      - sid
      - friendly_name
      - date_created
      pathType: instance
      parent: /Workspaces/{Sid}
    get:
      description: ''
      tags:
      - Workspaces
      parameters:
      - name: WorkspaceSid
        in: path
        description: The SID of the Workspace with the Activity resources to fetch.
        schema:
          type: string
          minLength: 34
          maxLength: 34
          pattern: ^WS[0-9a-fA-F]{32}$
        required: true
      - name: Sid
        in: path
        description: The SID of the Activity resource to fetch.
        schema:
          type: string
          minLength: 34
          maxLength: 34
          pattern: ^WA[0-9a-fA-F]{32}$
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/taskrouter.v1.workspace.activity'
          description: OK
      security:
      - accountSid_authToken: []
      operationId: FetchActivity
      x-maturity:
      - GA
    post:
      description: ''
      tags:
      - Workspaces
      parameters:
      - name: WorkspaceSid
        in: path
        description: The SID of the Workspace with the Activity resources to update.
        schema:
          type: string
          minLength: 34
          maxLength: 34
          pattern: ^WS[0-9a-fA-F]{32}$
        required: true
      - name: Sid
        in: path
        description: The SID of the Activity resource to update.
        schema:
          type: string
          minLength: 34
          maxLength: 34
          pattern: ^WA[0-9a-fA-F]{32}$
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/taskrouter.v1.workspace.activity'
          description: OK
      security:
      - accountSid_authToken: []
      operationId: UpdateActivity
      x-maturity:
      - GA
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/UpdateActivityRequest'
    delete:
      description: ''
      tags:
      - Workspaces
      parameters:
      - name: WorkspaceSid
        in: path
        description: The SID of the Workspace with the Activity resources to delete.
        schema:
          type: string
          minLength: 34
          maxLength: 34
          pattern: ^WS[0-9a-fA-F]{32}$
        required: true
      - name: Sid
        in: path
        description: The SID of the Activity resource to delete.
        schema:
          type: string
          minLength: 34
          maxLength: 34
          pattern: ^WA[0-9a-fA-F]{32}$
        required: true
      responses:
        '204':
          description: The resource was deleted successfully.
      security:
      - accountSid_authToken: []
      operationId: DeleteActivity
      x-maturity:
      - GA
  /v1/Workspaces/{WorkspaceSid}/Activities:
    servers:
    - url: https://taskrouter.twilio.com
    description: 'TODO: Resource-level docs'
    x-twilio:
      defaultOutputProperties:
      - sid
      - friendly_name
      - date_created
      pathType: list
      parent: /Workspaces/{Sid}
    get:
      description: ''
      tags:
      - Workspaces
      parameters:
      - name: WorkspaceSid
        in: path
        description: The SID of the Workspace with the Activity resources to read.
        schema:
          type: string
          minLength: 34
          maxLength: 34
          pattern: ^WS[0-9a-fA-F]{32}$
        required: true
      - name: FriendlyName
        in: query
        description: The `friendly_name` of the Activity resources to read.
        schema:
          type: string
      - name: Available
        in: query
        description: Whether return only Activity resources that are available or unavailable. A value of `true` returns only available activities. Values of '1' or `yes` also indicate `true`. All other values represent `false` and return activities that are unavailable.
        schema:
          type: string
      - name: PageSize
        in: query
        description: How many resources to return in each list page. The default is 50, and the maximum is 1000.
        schema:
          type: integer
          minimum: 1
          maximum: 1000
      - name: Page
        in: query
        description: The page index. This value is simply for client state.
        schema:
          type: integer
          minimum: 0
      - name: PageToken
        in: query
        description: The page token. This is provided by the API.
        schema:
          type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListActivityResponse'
          description: OK
      security:
      - accountSid_authToken: []
      operationId: ListActivity
      x-maturity:
      - GA
    post:
      description: ''
      tags:
      - Workspaces
      parameters:
      - name: WorkspaceSid
        in: path
        description: The SID of the Workspace that the new Activity belongs to.
        schema:
          type: string
          minLength: 34
          maxLength: 34
          pattern: ^WS[0-9a-fA-F]{32}$
        required: true
      responses:
        '201':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/taskrouter.v1.workspace.activity'
          description: Created
      security:
      - accountSid_authToken: []
      operationId: CreateActivity
      x-maturity:
      - GA
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/CreateActivityRequest'
  /v1/Workspaces/{WorkspaceSid}/Events/{Sid}:
    servers:
    - url: https://taskrouter.twilio.com
    description: 'TODO: Resource-level docs'
    x-twilio:
      defaultOutputProperties:
      - sid
      - description
      - event_date
      pathType: instance
      parent: /Workspaces/{Sid}
    get:
      description: ''
      tags:
      - Workspaces
      parameters:
      - name: WorkspaceSid
        in: path
        description: The SID of the Workspace with the Event to fetch.
        schema:
          type: string
          minLength: 34
          maxLength: 34
          pattern: ^WS[0-9a-fA-F]{32}$
        required: true
      - name: Sid
        in: path
        description: The SID of the Event resource to fetch.
        schema:
          type: string
          minLength: 34
          maxLength: 34
          pattern: ^EV[0-9a-fA-F]{32}$
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/taskrouter.v1.workspace.event'
          description: OK
      security:
      - accountSid_authToken: []
      operationId: FetchEvent
      x-maturity:
      - GA
  /v1/Workspaces/{WorkspaceSid}/Events:
    servers:
    - url: https://taskrouter.twilio.com
    description: 'TODO: Resource-level docs'
    x-twilio:
      defaultOutputProperties:
      - sid
      - description
      - event_date
      pathType: list
      parent: /Workspaces/{Sid}
    get:
      description: ''
      tags:
      - Workspaces
      parameters:
      - name: WorkspaceSid
        in: path
        description: The SID of the Workspace with the Events to read. Returns only the Events that pertain to the specified Workspace.
        schema:
          type: string
          minLength: 34
          maxLength: 34
          pattern: ^WS[0-9a-fA-F]{32}$
        required: true
      - name: EndDate
        in: query
        description: Only include Events that occurred on or before this date, specified in GMT as an [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date-time.
        schema:
          type: string
          format: date-time
      - name: EventType
        in: query
        description: The type of Events to read. Returns only Events of the type specified.
        schema:
          type: string
      - name: Minutes
        in: query
        description: The period of events to read in minutes. Returns only Events that occurred since this many minutes in the past. The default is `15` minutes. Task Attributes for Events occuring more 43,200 minutes ago will be redacted.
        schema:
          type: integer
      - name: ReservationSid
        in: query
        description: The SID of the Reservation with the Events to read. Returns only Events that pertain to the specified Reservation.
        schema:
          type: string
          minLength: 34
          maxLength: 34
          pattern: ^WR[0-9a-fA-F]{32}$
      - name: StartDate
        in: query
        description: Only include Events from on or after this date and time, specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. Task Attributes for Events older than 30 days will be redacted.
        schema:
          type: string
          format: date-time
      - name: TaskQueueSid
        in: query
        description: The SID of the TaskQueue with the Events to read. Returns only the Events that pertain to the specified TaskQueue.
        schema:
          type: string
          minLength: 34
          maxLength: 34
          pattern: ^WQ[0-9a-fA-F]{32}$
      - name: TaskSid
        in: query
        description: The SID of the Task with the Events to read. Returns only the Events that pertain to the specified Task.
        schema:
          type: string
          minLength: 34
          maxLength: 34
          pattern: ^WT[0-9a-fA-F]{32}$
      - name: WorkerSid
        in: query
        description: The SID of the Worker with the Events to read. Returns only the Events that pertain to the specified Worker.
        schema:
          type: string
          minLength: 34
          maxLength: 34
          pattern: ^WK[0-9a-fA-F]{32}$
      - name: WorkflowSid
        in: query
        description: The SID of the Workflow with the Events to read. Returns only the Events that pertain to the specified Workflow.
        schema:
          type: string
          minLength: 34
          maxLength: 34
          pattern: ^WW[0-9a-fA-F]{32}$
      - name: TaskChannel
        in: query
        description: The TaskChannel with the Events to read. Returns only the Events that pertain to the specified TaskChannel.
        schema:
          type: string
      - name: Sid
        in: query
        description: The SID of the Event resource to read.
        schema:
          type: string
          minLength: 34
          maxLength: 34
          pattern: ^EV[0-9a-fA-F]{32}$
      - name: PageSize
        in: query
        description: How many resources to return in each list page. The default is 50, and the maximum is 1000.
        schema:
          type: integer
          minimum: 1
          maximum: 1000
      - name: Page
        in: query
        description: The page index. This value is simply for client state.
        schema:
          type: integer
          minimum: 0
      - name: PageToken
        in: query
        description: The page token. This is provided by the API.
        schema:
          type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListEventResponse'
          description: OK
      security:
      - accountSid_authToken: []
      operationId: ListEvent
      x-maturity:
      - GA
  /v1/Workspaces/{WorkspaceSid}/Tasks/{Sid}:
    servers:
    - url: https://taskrouter.twilio.com
    description: 'TODO: Resource-level docs'
    x-twilio:
      defaultOutputProperties:
      - sid
      - age
      - assignment_status
      - priority
      - reason
      pathType: instance
      dependentProperties:
        reservations:
          mapping:
            workspace_sid: workspace_sid
            task_sid: sid
          resource_url: /v1/Workspaces/{workspace_sid}/Tasks/{task_sid}/Reservations
      parent: /Workspaces/{Sid}
    get:
      description: ''
      tags:
      - Workspaces
      parameters:
      - name: WorkspaceSid
        in: path
        description: The SID of the Workspace with the Task to fetch.
        schema:
          type: string
          minLength: 34
          maxLength: 34
          pattern: ^WS[0-9a-fA-F]{32}$
        required: true
      - name: Sid
        in: path
        description: The SID of the Task resource to fetch.
        schema:
          type: string
          minLength: 34
          maxLength: 34
          pattern: ^WT[0-9a-fA-F]{32}$
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/taskrouter.v1.workspace.task'
          description: OK
      security:
      - accountSid_authToken: []
      operationId: FetchTask
      x-maturity:
      - GA
    post:
      description: ''
      tags:
      - Workspaces
      parameters:
      - name: WorkspaceSid
        in: path
        description: The SID of the Workspace with the Task to update.
        schema:
          type: string
          minLength: 34
          maxLength: 34
          pattern: ^WS[0-9a-fA-F]{32}$
        required: true
      - name: Sid
        in: path
        description: The SID of the Task resource to update.
        schema:
          type: string
          minLength: 34
          maxLength: 34
          pattern: ^WT[0-9a-fA-F]{32}$
        required: true
      - name: If-Match
        in: header
        description: If provided, applies this mutation if (and only if) the [ETag](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/ETag) header of the Task matches the provided value. This matches the semantics of (and is implemented with) the HTTP [If-Match header](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/If-Match).
        schema:
          type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/taskrouter.v1.workspace.task'
          description: OK
      security:
      - accountSid_authToken: []
      operationId: UpdateTask
      x-maturity:
      - GA
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/UpdateTaskRequest'
    delete:
      description: ''
      tags:
      - Workspaces
      parameters:
      - name: WorkspaceSid
        in: path
        description: The SID of the Workspace with the Task to delete.
        schema:
          type: string
          minLength: 34
          maxLength: 34
          pattern: ^WS[0-9a-fA-F]{32}$
        required: true
      - name: Sid
        in: path
        description: The SID of the Task resource to delete.
        schema:
          type: string
          minLength: 34
          maxLength: 34
          pattern: ^WT[0-9a-fA-F]{32}$
        required: true
      - name: If-Match
        in: header
        description: If provided, deletes this Task if (and only if) the [ETag](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/ETag) header of the Task matches the provided value. This matches the semantics of (and is implemented with) the HTTP [If-Match header](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/If-Match).
        schema:
          type: string
      responses:
        '204':
          description: The resource was deleted successfully.
      security:
      - accountSid_authToken: []
      operationId: DeleteTask
      x-maturity:
      - GA
  /v1/Workspaces/{WorkspaceSid}/Tasks:
    servers:
    - url: https://taskrouter.twilio.com
    description: 'TODO: Resource-level docs'
    x-twilio:
      defaultOutputProperties:
      - sid
      - age
      - assignment_status
      - priority
      - reason
      pathType: list
      dependentProperties:
        reservations:
          mapping:
            workspace_sid: workspace_sid
            task_sid: sid
          resource_url: /v1/Workspaces/{workspace_sid}/Tasks/{task_sid}/Reservations
      parent: /Workspaces/{Sid}
    get:
      description: ''
      tags:
      - Workspaces
      parameters:
      - name: WorkspaceSid
        in: path
        description: The SID of the Workspace with the Tasks to read.
        schema:
          type: string
          minLength: 34
          maxLength: 34
          pattern: ^WS[0-9a-fA-F]{32}$
        required: true
      - name: Priority
        in: query
        description: The priority value of the Tasks to read. Returns the list of all Tasks in the Workspace with the specified priority.
        schema:
          type: integer
      - name: AssignmentStatus
        in: query
        description: 'The `assignment_status` of the Tasks you want to read. Can be: `pending`, `reserved`, `assigned`, `canceled`, `wrapping`, or `completed`. Returns all Tasks in the Workspace with the specified `assignment_status`.'
        schema:
          type: array
          items:
            type: string
      - name: WorkflowSid
        in: query
        description: The SID of the Workflow with the Tasks to read. Returns the Tasks controlled by the Workflow identified by this SID.
        schema:
          type: string
          minLength: 34
          maxLength: 34
          pattern: ^WW[0-9a-fA-F]{32}$
      - name: WorkflowName
        in: query
        description: The friendly name of the Workflow with the Tasks to read. Returns the Tasks controlled by the Workflow identified by this friendly name.
        schema:
          type: string
      - name: TaskQueueSid
        in: query
        description: The SID of the TaskQueue with the Tasks to read. Returns the Tasks waiting in the TaskQueue identified by this SID.
        schema:
          type: string
          minLength: 34
          maxLength: 34
          pattern: ^WQ[0-9a-fA-F]{32}$
      - name: TaskQueueName
        in: query
        description: The `friendly_name` of the TaskQueue with the Tasks to read. Returns the Tasks waiting in the TaskQueue identified by this friendly name.
        schema:
          type: string
      - name: EvaluateTaskAttributes
        in: query
        description: The attributes of the Tasks to read. Returns the Tasks that match the attributes specified in this parameter.
        schema:
          type: string
      - name: Ordering
        in: query
        description: 'How to order the returned Task resources. By default, Tasks are sorted by ascending DateCreated. This value is specified as: `Attribute:Order`, where `Attribute` can be either `DateCreated`, `Priority`, or `VirtualStartTime` and `Order` can be either `asc` or `desc`. For example, `Priority:desc` returns Tasks ordered in descending order of their Priority. Pairings of sort orders can be specified in a comma-separated list such as `Priority:desc,DateCreated:asc`, which returns the Tasks in descending Priority order and ascending DateCreated Order. The only ordering pairing not allowed is DateCreated and VirtualStartTime.'
        schema:
          type: string
      - name: HasAddons
        in: query
        description: Whether to read Tasks with Add-ons. If `true`, returns only Tasks with Add-ons. If `false`, returns only Tasks without Add-ons.
        schema:
          type: boolean
      - name: PageSize
        in: query
        description: How many resources to return in each list page. The default is 50, and the maximum is 1000.
        schema:
          type: integer
          minimum: 1
          maximum: 1000
      - name: Page
        in: query
        description: The page index. This value is simply for client state.
        schema:
          type: integer
          minimum: 0
      - name: PageToken
        in: query
        description: The page token. This is provided by the API.
        schema:
          type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListTaskResponse'
          description: OK
      security:
      - accountSid_authToken: []
      operationId: ListTask
      x-maturity:
      - GA
    post:
      description: ''
      tags:
      - Workspaces
      parameters:
      - name: WorkspaceSid
        in: path
        description: The SID of the Workspace that the new Task belongs to.
        schema:
          type: string
          minLength: 34
          maxLength: 34
          pattern: ^WS[0-9a-fA-F]{32}$
        required: true
      responses:
        '201':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/taskrouter.v1.workspace.task'
          description: Created
      security:
      - accountSid_authToken: []
      operationId: CreateTask
      x-maturity:
      - GA
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/CreateTaskRequest'
  /v1/Workspaces/{WorkspaceSid}/TaskChannels/{Sid}:
    servers:
    - url: https://taskrouter.twilio.com
    description: Types of tasks
    x-twilio:
      defaultOutputProperties:
      - sid
      - friendly_name
      - date_created
      pathType: instance
      parent: /Workspaces/{Sid}
    get:
      description: ''
      tags:
      - Workspaces
      parameters:
      - name: WorkspaceSid
        in: path
        description: The SID of the Workspace with the Task Channel to fetch.
        schema:
          type: string
          minLength: 34
          maxLength: 34
          pattern: ^WS[0-9a-fA-F]{32}$
        required: true
      - name: Sid
        in: path
        description: The SID of the Task Channel resource to fetch.
        schema:
          type: string
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/taskrouter.v1.workspace.task_channel'
          description: OK
      security:
      - accountSid_authToken: []
      operationId: FetchTaskChannel
      x-maturity:
      - GA
    post:
      description: ''
      tags:
      - Workspaces
      parameters:
      - name: WorkspaceSid
        in: path
        description: The SID of the Workspace with the Task Channel to update.
        schema:
          type: string
          minLength: 34
          maxLength: 34
          pattern: ^WS[0-9a-fA-F]{32}$
        required: true
      - name: Sid
        in: path
        description: The SID of the Task Channel resource to update.
        schema:
          type: string
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/taskrouter.v1.workspace.task_channel'
          description: OK
      security:
      - accountSid_authToken: []
      operationId: UpdateTaskChannel
      x-maturity:
      - GA
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/UpdateTaskChannelRequest'
    delete:
      description: ''
      tags:
      - Workspaces
      parameters:
      - name: WorkspaceSid
        in: path
        description: The SID of the Workspace with the Task Channel to delete.
        schema:
          type: string
          minLength: 34
          maxLength: 34
          pattern: ^WS[0-9a-fA-F]{32}$
        required: true
      - name: Sid
        in: path
        description: The SID of the Task Channel resource to delete.
        schema:
          type: string
        required: true
      responses:
        '204':
          description: The resource was deleted successfully.
      security:
      - accountSid_authToken: []
      operationId: DeleteTaskChannel
      x-maturity:
      - GA
  /v1/Workspaces/{WorkspaceSid}/TaskChannels:
    servers:
    - url: https://taskrouter.twilio.com
    description: Types of tasks
    x-twilio:
      defaultOutputProperties:
      - sid
      - friendly_name
      - date_created
      pathType: list
      parent: /Workspaces/{Sid}
    get:
      description: ''
      tags:
      - Workspaces
      parameters:
      - name: WorkspaceSid
        in: path
        description: The SID of the Workspace with the Task Channel to read.
        schema:
          type: string
          minLength: 34
          maxLength: 34
          pattern: ^WS[0-9a-fA-F]{32}$
        required: true
      - name: PageSize
        in: query
        description: How many resources to return in each list page. The default is 50, and the maximum is 1000.
        schema:
          type: integer
          minimum: 1
          maximum: 1000
      - name: Page
        in: query
        description: The page index. This value is simply for client state.
        schema:
          type: integer
          minimum: 0
      - name: PageToken
        in: query
        description: The page token. This is provided by the API.
        schema:
          type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListTaskChannelResponse'
          description: OK
      security:
      - accountSid_authToken: []
      operationId: ListTaskChannel
      x-maturity:
      - GA
    post:
      description: ''
      tags:
      - Workspaces
      parameters:
      - name: WorkspaceSid
        in: path
        description: The SID of the Workspace that the new Task Channel belongs to.
        schema:
          type: string
          minLength: 34
          maxLength: 34
          pattern: ^WS[0-9a-fA-F]{32}$
        required: true
      responses:
        '201':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/taskrouter.v1.workspace.task_channel'
          description: Created
      security:
      - accountSid_authToken: []
      operationId: CreateTaskChannel
      x-maturity:
      - GA
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/CreateTaskChannelRequest'
  /v1/Workspaces/{WorkspaceSid}/TaskQueues/{Sid}:
    servers:
    - url: https://taskrouter.twilio.com
    description: 'TODO: Resource-level docs'
    x-twilio:
      defaultOutputProperties:
      - sid
      - friendly_name
      - task_order
      pathType: instance
      dependentProperties:
        statistics:
          mapping:
            workspace_sid: workspace_sid
            task_queue_sid: sid
          resource_url: /v1None
        real_time_statistics:
          mapping:
            workspace_sid: workspace_sid
            task_queue_sid: sid
          resource_url: /v1None
        cumulative_statistics:
          mapping:
            workspace_sid: workspace_sid
            task_queue_sid: sid
          resource_url: /v1None
      parent: /Workspaces/{Sid}
    get:
      description: ''
      tags:
      - Workspaces
      parameters:
      - name: WorkspaceSid
        in: path
        description: The SID of the Workspace with the TaskQueue to fetch.
        schema:
          type: string
          minLength: 34
          maxLength: 34
          pattern: ^WS[0-9a-fA-F]{32}$
        required: true
      - name: Sid
        in: path
        description: The SID of the TaskQueue resource to fetch.
        schema:
          type: string
          minLength: 34
          maxLength: 34
          pattern: ^WQ[0-9a-fA-F]{32}$
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/taskrouter.v1.workspace.task_queue'
          description: OK
      security:
      - accountSid_authToken: []
      operationId: FetchTaskQueue
      x-maturity:
      - GA
    post:
      description: ''
      tags:
      - Workspaces
      parameters:
      - name: WorkspaceSid
        in: path
        description: The SID of the Workspace with the TaskQueue to update.
        schema:
          type: string
          minLength: 34
          maxLength: 34
          pattern: ^WS[0-9a-fA-F]{32}$
        required: true
      - name: Sid
        in: path
        description: The SID of the TaskQueue resource to update.
        schema:
          type: string
          minLength: 34
          maxLength: 34
          pattern: ^WQ[0-9a-fA-F]{32}$
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/taskrouter.v1.workspace.task_queue'
          description: OK
      security:
      - accountSid_authToken: []
      operationId: UpdateTaskQueue
      x-maturity:
      - GA
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/UpdateTaskQueueRequest'
    delete:
      description: ''
      tags:
      - Workspaces
      parameters:
      - name: WorkspaceSid
        in: path
        description: The SID of the Workspace with the TaskQueue to delete.
        schema:
          type: string
          minLength: 34
          maxLength: 34
          pattern: ^WS[0-9a-fA-F]{32}$
        required: true
      - name: Sid
        in: path
        description: The SID of the TaskQueue resource to delete.
        schema:
          type: string
          minLength: 34
          maxLength: 34
          pattern: ^WQ[0-9a-fA-F]{32}$
        required: true
      responses:
        '204':
          description: The resource was deleted successfully.
      security:
      - accountSid_authToken: []
      operationId: DeleteTaskQueue
      x-maturity:
      - GA
  /v1/Workspaces/{WorkspaceSid}/TaskQueues:
    servers:
    - url: https://taskrouter.twilio.com
    description: 'TODO: Resource-level docs'
    x-twilio:
      defaultOutputProperties:
      - sid
      - friendly_name
      - task_order
      pathType: list
      dependentProperties:
        statistics:
          mapping:
            workspace_sid: workspace_sid
            task_queue_sid: sid
          resource_url: /v1None
        real_time_statistics:
          mapping:
            workspace_sid: workspace_sid
            task_queue_sid: sid
          resource_url: /v1None
        cumulative_statistics:
          mapping:
            workspace_sid: workspace_sid
            task_queue_sid: sid
          resource_url: /v1None
      parent: /Workspaces/{Sid}
    get:
      description: ''
      tags:
      - Workspaces
      parameters:
      - name: WorkspaceSid
        in: path
        description: The SID of the Workspace with the TaskQueue to read.
        schema:
          type: string
          minLength: 34
          maxLength: 34
          pattern: ^WS[0-9a-fA-F]{32}$
        required: true
      - name: FriendlyName
        in: query
        description: The `friendly_name` of the TaskQueue resources to read.
        schema:
          type: string
        x-twilio:
          pii:
            handling: standard
            deleteSla: 30
      - name: EvaluateWorkerAttributes
        in: query
        description: The attributes of the Workers to read. Returns the TaskQueues with Workers that match the attributes specified in this parameter.
        schema:
          type: string
      - name: WorkerSid
        in: query
        description: The SID of the Worker with the TaskQueue resources to read.
        schema:
          type: string
          minLength: 34
          maxLength: 34
          pattern: ^WK[0-9a-fA-F]{32}$
      - name: Ordering
        in: query
        description: Sorting parameter for TaskQueues
        schema:
          type: string
      - name: PageSize
        in: query
        description: How many resour

# --- truncated at 32 KB (222 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/twilio/refs/heads/main/openapi/twilio-workspaces-api-openapi.yml