# Discover Fin's capabilities

`POST /fin/capabilities`

> This is a subset of the full specification, limited to the `POST /fin/capabilities` operation.
>
> You can find the full specification here: /_bundle/docs/references/@2.15/rest-api/api.intercom.io.yaml

```yaml
openapi: 3.0.1
info:
  title: Intercom API
  version: '2.15'
  description: This is a subset of the full specification, limited to the `POST /fin/capabilities` operation.
  contact:
    name: Intercom Developer Hub
    url: https://developers.intercom.com
  license:
    name: MIT
    url: https://spdx.org/licenses/MIT
servers:
  - url: https://api.intercom.io
    description: The production API server
  - url: https://api.eu.intercom.io
    description: The european API server
  - url: https://api.au.intercom.io
    description: The australian API server
security:
  - bearerAuth: []
tags:
  - name: Fin Agent
    description: |-
      Access Fin programmatically via the Fin Agent API endpoints.

      To request access to the Fin Agent API, go to **Settings > Integrations > Fin Agent API** in your workspace and tell us about your use case. Once access is granted, **Fin Agent API** appears under **Fin AI Agent > Deploy**.

      Integration centres on the Fin Agent API endpoints — start a conversation with `/fin/start` and continue it with `/fin/reply`, or drive Fin from your own agent with `/fin/capabilities`, `/fin/ask`, `/fin/procedures/{procedure_id}/run`, and `/fin/escalate` — plus a set of events that notify your application of Fin's status and responses. Events are delivered via webhooks. You can also record a customer satisfaction rating with `/fin/csat`.

      **Pricing**

      Conversations you start with `/fin/start` are billed on **outcomes**: you're charged at most once per conversation, and only when Fin reaches a billable outcome such as a resolution. See [Understanding Fin outcomes](https://www.intercom.com/help/en/articles/13513868-understanding-fin-outcomes).

      **Events**

      Configure a webhook endpoint in the Fin Agent API settings to receive events. See the [setup guide](/docs/guides/fin-agent-api/setup) for configuration details.

      - `fin_status_updated` - Fired when Fin's status changes (escalated, resolved, complete)
      - `fin_replied` - Fired when Fin sends a reply to the user
      - `csat_requested` - Fired when Fin asks the user to rate the conversation (submit the choice with `POST /fin/csat`)

      All webhook requests include an `X-Fin-Agent-API-Webhook-Signature` header for request validation.
paths:
  /fin/capabilities:
    post:
      summary: Discover Fin's capabilities
      parameters:
        - name: Intercom-Version
          in: header
          schema:
            $ref: '#/components/schemas/intercom_version'
      tags:
        - Fin Agent
      operationId: listFinCapabilities
      description: |-
        Return a machine-readable, per-user list of what Fin can do for a given end user, so an
        orchestrating agent can decide which endpoint to call.

        The response is audience-matched to the supplied user: each live, API-triggerable
        procedure is checked against that user before being included, alongside the static
        `reply` and `ask` actions.

        To request access to the Fin Agent API, go to **Settings > Integrations > Fin Agent API** in your workspace and tell us about your use case. Once access is granted, **Fin Agent API** appears under **Fin AI Agent > Deploy**.
      responses:
        '200':
          description: Capabilities returned successfully
          content:
            application/json:
              examples:
                Successful response:
                  value:
                    version: '2.15'
                    capabilities:
                      - type: procedure
                        id: '12345'
                        name: Reset password
                        description: Walk the user through resetting their password.
                        endpoint: /fin/procedures/12345/run
                        method: POST
                      - type: reply
                        description: Reply to an in-progress Fin conversation.
                        endpoint: /fin/reply
                        method: POST
                      - type: ask
                        description: Ask Fin a single, self-contained question.
                        endpoint: /fin/ask
                        method: POST
              schema:
                type: object
                properties:
                  version:
                    type: string
                    description: The API version the capabilities document was generated for.
                    example: '2.15'
                  capabilities:
                    type: array
                    description: The list of capabilities available to this user.
                    items:
                      type: object
                      properties:
                        type:
                          type: string
                          description: The kind of capability — `procedure` for a runnable procedure, or a static action such as `reply`, `ask`, or `escalate`.
                          example: procedure
                        id:
                          type: string
                          description: The procedure ID. Present only when `type` is `procedure`.
                          example: '12345'
                        name:
                          type: string
                          description: The procedure name. Present only when `type` is `procedure`.
                          example: Reset password
                        description:
                          type: string
                          description: A human-readable description of the capability.
                          example: Walk the user through resetting their password.
                        endpoint:
                          type: string
                          description: The endpoint path to call to use this capability.
                          example: /fin/procedures/12345/run
                        method:
                          type: string
                          description: The HTTP method to use.
                          example: POST
        '400':
          description: Bad Request
          content:
            application/json:
              examples:
                Too many attributes:
                  value:
                    type: error.list
                    request_id: b68959ea-6328-4f70-83cb-e7913dba1542
                    errors:
                      - code: parameter_invalid
                        message: Cannot update more than 10 attributes at once.
              schema:
                $ref: '#/components/schemas/error'
        '401':
          description: Unauthorized
          content:
            application/json:
              examples:
                Unauthorized:
                  value:
                    type: error.list
                    request_id: b68959ea-6328-4f70-83cb-e7913dba1542
                    errors:
                      - code: unauthorized
                        message: Access Token Invalid
              schema:
                $ref: '#/components/schemas/error'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                user:
                  allOf:
                    - $ref: '#/components/schemas/fin_agent_user'
                    - description: The user to list capabilities for. If no user exists for the id, one is created from the supplied details; if the user already exists, the supplied email and attributes update it.
              required:
                - user
            examples:
              Capabilities for a user:
                value:
                  user:
                    id: '123456'
components:
  schemas:
    error:
      type: object
      title: Error
      description: The API will return an Error List for a failed request, which will contain one or more Error objects.
      properties:
        type:
          type: string
          description: The type is error.list
          example: error.list
        request_id:
          type: string
          nullable: true
          format: uuid
          description: ''
          example: f93ecfa8-d08a-4325-8694-89aeb89c8f85
        errors:
          type: array
          description: An array of one or more error objects
          items:
            properties:
              code:
                type: string
                description: A string indicating the kind of error, used to further qualify the HTTP response code
                example: unauthorized
              message:
                type: string
                nullable: true
                description: Optional. Human readable description of the error.
                example: Access Token Invalid
              field:
                type: string
                nullable: true
                description: Optional. Used to identify a particular field or query parameter that was in error.
                example: email
            required:
              - code
      required:
        - type
        - errors
    fin_agent_user:
      title: Fin Agent User
      type: object
      description: A user object representing the user in a Fin Agent conversation.
      x-tags:
        - Fin Agent
      properties:
        id:
          type: string
          description: |
            The ID of the user. This value will be used to uniquely identify the user
            during a conversation with Fin. Maps to the user_id field on the Intercom User object.
          example: '123456'
        name:
          type: string
          description: The name of the user.
          example: John Doe
        email:
          type: string
          format: email
          description: The email of the user.
          example: john.doe@example.com
        attributes:
          type: object
          description: |
            A hash of attributes associated with the user.
            Attributes can be used by Fin to target content and responses.
            Limit to 10 attributes.
          additionalProperties: true
          example:
            plan_type: Pro
            subscription_status: active
      required:
        - id
    intercom_version:
      description: Intercom API version.</br>By default, it's equal to the version set in the app package.
      type: string
      example: '2.15'
      default: '2.15'
      enum:
        - '1.0'
        - '1.1'
        - '1.2'
        - '1.3'
        - '1.4'
        - '2.0'
        - '2.1'
        - '2.2'
        - '2.3'
        - '2.4'
        - '2.5'
        - '2.6'
        - '2.7'
        - '2.8'
        - '2.9'
        - '2.10'
        - '2.11'
        - '2.12'
        - '2.13'
        - '2.14'
        - '2.15'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
```
