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

# List CRM deal stages

> The deal stages of your connected CRM, with their ids, labels, pipeline and whether each counts as won or closed. Read this before [Create a deal stage lookalike signal](/api-reference/signals/create-deal-stage-lookalike-signal): on HubSpot a stage is an opaque numeric id that cannot be guessed from its label, and the signal is defined against ids. A 422 means that CRM is not connected, and such a signal cannot be created.



## OpenAPI

````yaml /reference/openapi.yaml get /v2/crm-deal-stages
openapi: 3.1.0
info:
  title: Tamtam Public API
  version: 2.0.0
servers:
  - url: https://api.tamtam.ai/api
security: []
paths:
  /v2/crm-deal-stages:
    get:
      tags:
        - Signals
      summary: List CRM deal stages
      description: >-
        The deal stages of your connected CRM, with their ids, labels, pipeline
        and whether each counts as won or closed. Read this before [Create a
        deal stage lookalike
        signal](/api-reference/signals/create-deal-stage-lookalike-signal): on
        HubSpot a stage is an opaque numeric id that cannot be guessed from its
        label, and the signal is defined against ids. A 422 means that CRM is
        not connected, and such a signal cannot be created.
      operationId: list-crm-deal-stages
      parameters:
        - description: >-
            Target account UUID. Required for staff callers; ignored for
            customer API keys.
          explode: false
          in: query
          name: account_id
          schema:
            description: >-
              Target account UUID. Required for staff callers; ignored for
              customer API keys.
            type: string
        - description: Your connected CRM.
          explode: false
          in: query
          name: crm
          required: true
          schema:
            description: Your connected CRM.
            enum:
              - hubspot
              - salesforce
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListCRMDealStagesOutputBody'
          description: OK
        default:
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ErrorModel'
          description: Error
      security:
        - apikeyAuth: []
        - bearerAuth: []
components:
  schemas:
    ListCRMDealStagesOutputBody:
      additionalProperties: false
      properties:
        crm:
          type: string
        stages:
          items:
            $ref: '#/components/schemas/CRMDealStageDto'
          type:
            - array
            - 'null'
      required:
        - crm
        - stages
      type: object
    ErrorModel:
      additionalProperties: false
      properties:
        detail:
          description: >-
            A human-readable explanation specific to this occurrence of the
            problem.
          examples:
            - Property foo is required but is missing.
          type: string
        errors:
          description: Optional list of individual error details
          items:
            $ref: '#/components/schemas/ErrorDetail'
          type:
            - array
            - 'null'
        instance:
          description: >-
            A URI reference that identifies the specific occurrence of the
            problem.
          examples:
            - https://example.com/error-log/abc123
          format: uri
          type: string
        status:
          description: HTTP status code
          examples:
            - 400
          format: int64
          type: integer
        title:
          description: >-
            A short, human-readable summary of the problem type. This value
            should not change between occurrences of the error.
          examples:
            - Bad Request
          type: string
        type:
          default: about:blank
          description: A URI reference to human-readable documentation for the error.
          examples:
            - https://example.com/errors/example
          format: uri
          type: string
      type: object
    CRMDealStageDto:
      additionalProperties: false
      properties:
        id:
          description: >-
            What a deal stage lookalike signal watches. Opaque on HubSpot; a
            label like 'Closed Won' is not a valid value there.
          type: string
        is_closed:
          type: boolean
        is_won:
          type: boolean
        label:
          type: string
        pipeline_id:
          type: string
        pipeline_label:
          type: string
      required:
        - id
        - label
        - pipeline_id
        - pipeline_label
        - is_won
        - is_closed
      type: object
    ErrorDetail:
      additionalProperties: false
      properties:
        location:
          description: >-
            Where the error occurred, e.g. 'body.items[3].tags' or
            'path.thing-id'
          type: string
        message:
          description: Error message text
          type: string
        value:
          description: The value at the given location
      type: object
  securitySchemes:
    apikeyAuth:
      description: Account API key passed in the Authorization header
      in: header
      name: Authorization
      type: apiKey
    bearerAuth:
      description: Bearer JWT obtained via the OAuth 2.1 authorization flow
      scheme: bearer
      type: http

````