# Get Agents

`GET /agents`

> This is a subset of the full specification, limited to the `GET /agents` operation.
>
> You can find the full specification here: /_bundle/docs/guides/fin-custom-helpdesk/api.yaml

```yaml
openapi: 3.0.3
info:
  version: 0.0.1
  title: Fin Custom Helpdesk API
  description: This is a subset of the full specification, limited to the `GET /agents` operation.
  contact:
    name: Intercom Developer Support
    url: https://developers.intercom.com
  x-logo:
    url: https://www.intercom.com/favicon.ico
servers:
  - url: https://helpdesk.example.com/api/fin
    description: Your Custom Helpdesk API (replace with your actual domain)
security:
  - BearerAuth: []
tags:
  - name: Agents
    description: Manage agents in your helpdesk system
paths:
  /agents:
    get:
      tags:
        - Agents
      summary: Get Agents
      description: |
        The customer must choose an Agent from within their own system to act as Fin.

        When we tell the customer about responses from Fin, the author ID will be the agent chosen to act as Fin.
      operationId: getAgents
      responses:
        '200':
          description: Agents retrieved successfully
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/Agent'
              examples:
                example1:
                  summary: Multiple agents including Fin
                  value:
                    - id: agent_001
                      user_type: agent
                      name: Sarah Johnson
                      email: sarah.johnson@company.com
                      alias: Support Sarah
                      photo_url: https://example.com/avatars/sarah.jpg
                    - id: agent_fin
                      user_type: agent
                      name: Fin AI Assistant
                      email: fin@company.com
                      alias: Fin
                      photo_url: https://example.com/avatars/fin.png
components:
  securitySchemes:
    BearerAuth:
      type: oauth2
      flows:
        clientCredentials:
          tokenUrl: https://helpdesk.fin.com/api/auth/oauth/token
          scopes:
            read: Read access to the API (example)
            write: Write access to the API (example)
      description: OAuth2 access token configured in Fin Deployment UI
  schemas:
    Agent:
      type: object
      description: |
        Agent having a conversation with an end-user.
      properties:
        id:
          type: string
          description: Unique identifier for the user in your system
          example: agent_123456
        user_type:
          type: string
          description: Type of user
          enum:
            - agent
        name:
          type: string
          description: User's display name
          example: Jane Doe
          nullable: true
        email:
          type: string
          format: email
          description: User's email address
          example: jane.doe@example.com
          nullable: true
        photo_url:
          type: string
          format: uri
          description: URL to user's avatar/profile picture (displayed in Fin Messenger)
          example: https://example.com/avatars/jane.jpg
          nullable: true
        alias:
          type: string
          description: Agent's display alias (shown to end-users instead of real name)
          example: Support Jane
          nullable: true
```
