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

# List CRM objects

> Lists the company's CRM objects of one `type`, as Pulse shows them. Without `search`, `stage_id`, `pipeline_id` or `include_closed=false`, the list holds the objects linked to reviewed calls, newest activity first. Those filters search the CRM itself instead: results can include objects with no linked calls (`linked_call_count` is 0) and come in the CRM's own order (most recently modified first; HubSpot deals by last activity), not by `last_activity_at`. Most fields are read live from the CRM. CRM endpoints read the company's CRM live, so they also count against a lower CRM rate limit: 20 requests a minute and 600 an hour per API key, 40 a minute and 1,200 an hour for the whole company. Only API keys with access to all workspaces can read CRM records, and the company needs Pulse turned on. Requires `crm.read`.



## OpenAPI

````yaml /public-v2.json get /crm-objects
openapi: 3.0.3
info:
  title: Triple Session Public API
  version: 2.0.0
  license:
    name: Proprietary
    url: https://triplesession.com/terms-of-service
  description: |
    Public API v2 exposes Triple Session data through stable REST endpoints.
    Requests are authenticated with a public API key sent as a bearer token.
    The API key determines the maximum accessible resource scope.

    Every successful response wraps its result in `data`. Lists add a
    `pagination` object with `page`, `limit`, `total_count` and `total_pages`.
    Errors are `{ "error": { "message": "..." } }`.
    A value that does not exist is `null`, never an empty string.
    Calls marked private are never returned: they are left out of lists and
    answer 404 on detail endpoints.

    Rate limits: each API key may make 120 requests per minute and 3,600 per
    hour. All keys of a company together may make 300 per minute and 9,000 per
    hour. A request over either limit gets a 429 with `Retry-After`.

    Successful responses and 429 responses carry rate-limit headers. Other
    errors (401, 403, 400, 404, 500) may not. `X-RateLimit-Limit`,
    `X-RateLimit-Remaining`, `X-RateLimit-Reset` and
    `X-RateLimit-Active-Window` describe one window: on a successful response,
    the window with the fewest requests remaining; on a 429, the exhausted
    window with the longest wait. Each window also has its own set:
    `X-RateLimit-Minute-*`, `X-RateLimit-Hour-*`,
    `X-RateLimit-Company-Minute-*` and `X-RateLimit-Company-Hour-*`.
servers:
  - url: https://app.triplesession.com/api/public/v2
    description: Production
security:
  - bearerAuth: []
tags:
  - name: Calls
    description: Call report data and artifacts.
  - name: Scorecards
    description: Scorecards and their rubrics.
  - name: Workspaces
    description: The company's workspaces and their members.
  - name: Users
    description: The company's people, with their company role and status.
  - name: Roleplays
    description: Roleplay sessions and the personas members practise with.
  - name: CRM
    description: >-
      The company's CRM objects (deals, companies, contacts, leads), as Pulse
      shows them.
paths:
  /crm-objects:
    get:
      tags:
        - CRM
      summary: List CRM objects
      description: >-
        Lists the company's CRM objects of one `type`, as Pulse shows them.
        Without `search`, `stage_id`, `pipeline_id` or `include_closed=false`,
        the list holds the objects linked to reviewed calls, newest activity
        first. Those filters search the CRM itself instead: results can include
        objects with no linked calls (`linked_call_count` is 0) and come in the
        CRM's own order (most recently modified first; HubSpot deals by last
        activity), not by `last_activity_at`. Most fields are read live from the
        CRM. CRM endpoints read the company's CRM live, so they also count
        against a lower CRM rate limit: 20 requests a minute and 600 an hour per
        API key, 40 a minute and 1,200 an hour for the whole company. Only API
        keys with access to all workspaces can read CRM records, and the company
        needs Pulse turned on. Requires `crm.read`.
      operationId: listCrmObjects
      parameters:
        - $ref: '#/components/parameters/CrmObjectType'
        - $ref: '#/components/parameters/Page'
        - $ref: '#/components/parameters/Limit'
        - $ref: '#/components/parameters/CrmObjectSearch'
        - $ref: '#/components/parameters/CrmObjectUserId'
        - $ref: '#/components/parameters/CrmObjectStageId'
        - $ref: '#/components/parameters/CrmObjectPipelineId'
        - $ref: '#/components/parameters/CrmObjectIncludeClosed'
        - $ref: '#/components/parameters/CrmObjectMeterId'
        - $ref: '#/components/parameters/CrmObjectMeterState'
      responses:
        '200':
          description: CRM objects.
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/XRateLimitLimit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/XRateLimitRemaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/XRateLimitReset'
            X-RateLimit-Active-Window:
              $ref: '#/components/headers/XRateLimitActiveWindow'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CrmObjectsListResponse'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '429':
          $ref: '#/components/responses/RateLimited'
        '500':
          $ref: '#/components/responses/InternalServerError'
        '503':
          $ref: '#/components/responses/CrmUnavailable'
components:
  parameters:
    CrmObjectType:
      name: type
      in: query
      required: true
      description: >-
        The object type to list. `GET /crm-object-types` lists the types the
        company can read.
      schema:
        type: string
        enum:
          - deal
          - company
          - contact
          - lead
    Page:
      name: page
      in: query
      required: false
      description: Page number.
      schema:
        type: integer
        minimum: 1
        default: 1
    Limit:
      name: limit
      in: query
      required: false
      description: Number of items to return.
      schema:
        type: integer
        minimum: 1
        maximum: 100
        default: 50
    CrmObjectSearch:
      name: search
      in: query
      required: false
      description: >-
        Text to search the CRM for. Searches the CRM itself, so results can
        include objects with no linked calls.
      schema:
        type: string
        minLength: 1
        maxLength: 200
    CrmObjectUserId:
      name: user_id
      in: query
      required: false
      description: Only objects linked to calls of this member.
      schema:
        type: string
        format: uuid
    CrmObjectStageId:
      name: stage_id
      in: query
      required: false
      description: >-
        Only objects in this stage (a deal stage, or a HubSpot company lifecycle
        stage). Searches the CRM itself.
      schema:
        type: string
    CrmObjectPipelineId:
      name: pipeline_id
      in: query
      required: false
      description: Only deals in this pipeline. Searches the CRM itself.
      schema:
        type: string
    CrmObjectIncludeClosed:
      name: include_closed
      in: query
      required: false
      description: Set to false to leave out won and lost deals. Searches the CRM itself.
      schema:
        type: boolean
        default: true
    CrmObjectMeterId:
      name: meter_id
      in: query
      required: false
      description: With `meter_state`, only objects whose meter has that state.
      schema:
        type: string
        format: uuid
    CrmObjectMeterState:
      name: meter_state
      in: query
      required: false
      description: >-
        A meter state id, or `none` for objects with no state on that meter.
        Requires `meter_id`.
      schema:
        type: string
  headers:
    XRateLimitLimit:
      description: Limit for the active rate limit window.
      schema:
        type: integer
    XRateLimitRemaining:
      description: Requests remaining in the active rate limit window.
      schema:
        type: integer
    XRateLimitReset:
      description: Unix timestamp when the active rate limit window resets.
      schema:
        type: integer
    XRateLimitActiveWindow:
      description: >-
        The window the main headers describe. On a successful response, the one
        with the fewest requests remaining; on a 429, the exhausted one with the
        longest wait. The `company-` windows count every key of the company.
      schema:
        type: string
        enum:
          - minute
          - hour
          - company-minute
          - company-hour
    RetryAfter:
      description: Seconds until the request may be retried.
      schema:
        type: integer
  schemas:
    CrmObjectsListResponse:
      type: object
      required:
        - data
        - pagination
      properties:
        data:
          type: array
          items:
            $ref: '#/components/schemas/CrmObjectRecord'
        pagination:
          $ref: '#/components/schemas/Pagination'
      additionalProperties: false
    CrmObjectRecord:
      type: object
      required:
        - id
        - type
        - name
        - url
        - owner_user_id
        - linked_call_count
        - last_activity_at
        - next_meeting_at
        - summary
        - summary_updated_at
        - risks
        - meters
        - stage_id
        - stage
        - pipeline_id
        - pipeline
        - amount
        - currency
        - close_date
        - is_closed
        - domain
        - email
        - phone
      properties:
        id:
          description: The object's id in the CRM.
          type: string
        type:
          type: string
          enum:
            - deal
            - company
            - contact
            - lead
        name:
          type: string
        url:
          description: The object in the CRM.
          type: string
          nullable: true
        owner_user_id:
          description: >-
            The CRM owner, when they are a member of the company. The same id as
            `GET /users/{userId}`.
          type: string
          format: uuid
          nullable: true
        linked_call_count:
          description: >-
            Company-visible calls linked to the object. 0 for an object found by
            a CRM search with no reviewed calls.
          type: integer
        last_activity_at:
          description: The latest activity Triple Session knows of.
          type: string
          format: date-time
          nullable: true
        next_meeting_at:
          description: The next meeting on the object in the CRM. Deals and companies only.
          type: string
          format: date-time
          nullable: true
        summary:
          description: The stored AI summary, one paragraph. Null until one is generated.
          type: string
          nullable: true
        summary_updated_at:
          description: When the summary was last generated.
          type: string
          format: date-time
          nullable: true
        risks:
          description: The stored AI risks, one line each.
          type: array
          items:
            type: string
        meters:
          description: The object's meter states.
          type: array
          items:
            $ref: '#/components/schemas/CrmObjectMeter'
        stage_id:
          description: Deal stage, or HubSpot company lifecycle stage.
          type: string
          nullable: true
        stage:
          description: The stage's label.
          type: string
          nullable: true
        pipeline_id:
          description: Deals only.
          type: string
          nullable: true
        pipeline:
          description: The pipeline's label. Deals only.
          type: string
          nullable: true
        amount:
          description: Deals only.
          type: number
          nullable: true
        currency:
          description: ISO 4217 code. Deals only.
          type: string
          nullable: true
        close_date:
          description: The deal's close date in the CRM.
          type: string
          nullable: true
        is_closed:
          description: Whether the deal is won or lost. Null for other types.
          type: boolean
          nullable: true
        domain:
          description: Companies only.
          type: string
          nullable: true
        email:
          description: Contacts and leads only.
          type: string
          nullable: true
        phone:
          description: Contacts and leads only.
          type: string
          nullable: true
      additionalProperties: false
    Pagination:
      type: object
      required:
        - page
        - limit
        - total_count
        - total_pages
      properties:
        page:
          type: integer
          minimum: 1
        limit:
          description: The page size that was applied.
          type: integer
          minimum: 1
        total_count:
          type: integer
          minimum: 0
        total_pages:
          type: integer
          minimum: 0
      additionalProperties: false
    ErrorResponse:
      type: object
      required:
        - error
      properties:
        error:
          type: object
          required:
            - message
          properties:
            message:
              type: string
      additionalProperties: false
    CrmObjectMeter:
      type: object
      required:
        - meter_id
        - state_id
        - state
        - source
      properties:
        meter_id:
          type: string
        state_id:
          type: string
          nullable: true
        state:
          description: The state's label.
          type: string
          nullable: true
        source:
          description: >-
            `ai` when set by AI, `manual` when a person set it, `none` when
            there is no state.
          type: string
          enum:
            - ai
            - manual
            - none
      additionalProperties: false
  responses:
    BadRequest:
      description: >-
        Invalid or unknown path or query parameter. Unknown query parameters are
        rejected, so a misspelt filter never returns unfiltered data.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    Unauthorized:
      description: Missing, unknown, expired or revoked API key.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    Forbidden:
      description: >-
        The API key is valid but lacks the required scope, or the workspace is
        outside the key's access.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    RateLimited:
      description: >-
        Rate limit exceeded, for this API key or for the company as a whole. The
        message says which.
      headers:
        Retry-After:
          $ref: '#/components/headers/RetryAfter'
        X-RateLimit-Limit:
          $ref: '#/components/headers/XRateLimitLimit'
        X-RateLimit-Remaining:
          $ref: '#/components/headers/XRateLimitRemaining'
        X-RateLimit-Reset:
          $ref: '#/components/headers/XRateLimitReset'
        X-RateLimit-Active-Window:
          $ref: '#/components/headers/XRateLimitActiveWindow'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    InternalServerError:
      description: Unexpected server error.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    CrmUnavailable:
      description: >-
        The company's CRM is not connected, or it could not be reached. The
        message names the CRM and says whether to reconnect it or retry.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API key
      description: Use a public API key with the endpoint's required scope.

````

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