> ## Documentation Index
> Fetch the complete documentation index at: https://docs.tracecat.com/llms.txt
> Use this file to discover all available pages before exploring further.

# List Workspace Routes

> Every channel the workspace's bots answer in, across bots, with its agent.



## OpenAPI

````yaml https://platform.tracecat.com/api/openapi.json get /workspaces/{workspace_id}/agent/channel-bots/routes
openapi: 3.1.0
info:
  title: Tracecat API
  summary: Tracecat API
  description: The open source AI automation platform for security teams and agents.
  termsOfService: >-
    https://docs.google.com/document/d/e/2PACX-1vQvDe3SoVAPoQc51MgfGCP71IqFYX_rMVEde8zC4qmBCec5f8PLKQRdxa6tsUABT8gWAR9J-EVs2CrQ/pub
  contact:
    name: Tracecat Founders
    email: founders@tracecat.com
  license:
    name: AGPL-3.0
    url: https://www.gnu.org/licenses/agpl-3.0.html
  version: '1'
servers:
  - url: /api
security: []
tags:
  - name: public
    description: Public facing endpoints
  - name: workflows
    description: Workflow management
  - name: actions
    description: Action management
  - name: triggers
    description: Workflow triggers
  - name: secrets
    description: Secret management
  - name: variables
    description: Workspace variable management
paths:
  /workspaces/{workspace_id}/agent/channel-bots/routes:
    get:
      tags:
        - agent-channel-bots
      summary: List Workspace Routes
      description: >-
        Every channel the workspace's bots answer in, across bots, with its
        agent.
      operationId: agent-channel-bots-list_workspace_routes
      parameters:
        - name: workspace_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            title: Workspace Id
        - name: q
          in: query
          required: false
          schema:
            anyOf:
              - type: string
                maxLength: 255
              - type: 'null'
            title: Q
        - name: limit
          in: query
          required: false
          schema:
            type: integer
            maximum: 200
            minimum: 1
            default: 20
            title: Limit
        - name: cursor
          in: query
          required: false
          schema:
            anyOf:
              - type: string
                maxLength: 8192
              - type: 'null'
            title: Cursor
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AgentChannelWorkspaceRoutesPage'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - APIKeyCookie: []
        - ServiceAccountApiKeyBearer: []
components:
  schemas:
    AgentChannelWorkspaceRoutesPage:
      properties:
        items:
          items:
            $ref: '#/components/schemas/AgentChannelWorkspaceRouteRead'
          type: array
          title: Items
        next_cursor:
          anyOf:
            - type: string
            - type: 'null'
          title: Next Cursor
          description: Cursor for next page
        prev_cursor:
          anyOf:
            - type: string
            - type: 'null'
          title: Prev Cursor
          description: Cursor for previous page
        has_more:
          type: boolean
          title: Has More
          description: Whether more items exist
          default: false
        has_previous:
          type: boolean
          title: Has Previous
          description: Whether previous items exist
          default: false
        total_estimate:
          anyOf:
            - type: integer
            - type: 'null'
          title: Total Estimate
          description: Estimated total count from table statistics
        listing_failures:
          items:
            $ref: '#/components/schemas/ChannelBotListingFailure'
          type: array
          title: Listing Failures
          description: >-
            Running bots whose channels could not be listed; the same on every
            page.
      type: object
      required:
        - items
      title: AgentChannelWorkspaceRoutesPage
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    AgentChannelWorkspaceRouteRead:
      properties:
        bot_id:
          type: string
          format: uuid
          title: Bot Id
        provider:
          $ref: '#/components/schemas/ChannelBotProvider'
        app_owner:
          $ref: '#/components/schemas/ChannelBotAppOwner'
        provider_channel_id:
          type: string
          title: Provider Channel Id
        routed:
          type: boolean
          title: Routed
          description: >-
            A platform install's route; False for a channel the bot is in
            without one, answered by its default agent.
        agent_preset_id:
          type: string
          format: uuid
          title: Agent Preset Id
        agent_name:
          type: string
          title: Agent Name
        channel_name:
          anyOf:
            - type: string
            - type: 'null'
          title: Channel Name
          description: >-
            The channel's name in the provider now; None when the lookup did not
            find it.
        is_private:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Is Private
        is_member:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Is Member
          description: >-
            Whether the bot is in the channel; None when the lookup could not
            tell.
        name_unavailable:
          type: boolean
          title: Name Unavailable
          description: >-
            The bot's channels were not looked up: it is not running, or the
            provider call failed.
      type: object
      required:
        - bot_id
        - provider
        - app_owner
        - provider_channel_id
        - routed
        - agent_preset_id
        - agent_name
        - channel_name
        - is_private
        - is_member
        - name_unavailable
      title: AgentChannelWorkspaceRouteRead
      description: A channel a workspace bot answers in, and the agent that answers there.
    ChannelBotListingFailure:
      properties:
        bot_id:
          type: string
          format: uuid
          title: Bot Id
        needs_reinstall:
          type: boolean
          title: Needs Reinstall
          description: >-
            The bot's app lacks the scopes to list channels until it is
            reinstalled.
      type: object
      required:
        - bot_id
        - needs_reinstall
      title: ChannelBotListingFailure
      description: >-
        A running bot whose channels the provider would not list, so it has no
        channel rows.
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
    ChannelBotProvider:
      type: string
      enum:
        - slack
      title: ChannelBotProvider
    ChannelBotAppOwner:
      type: string
      enum:
        - workspace
        - platform
      title: ChannelBotAppOwner
      description: Who owns a bot's provider app.
  securitySchemes:
    APIKeyCookie:
      type: apiKey
      in: cookie
      name: fastapiusersauth
    ServiceAccountApiKeyBearer:
      type: http
      description: Tracecat service account API key.
      scheme: bearer

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.