> ## 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 a CRM object's insights

> Lists the AI insights stored for a CRM object: for a deal or company its summary, stakeholders, risks and next steps; for a contact its summary and projects. This never starts generation: `status` says whether an insight is `ready`, `pending` (being generated), `stale` (older than a day) or `missing` (never generated). Insights refresh when someone opens the object in Pulse. Leads have none. Counts against the lower CRM rate limit (20 requests a minute per API key, 40 per 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/{type}/{crmObjectId}/insights
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/{type}/{crmObjectId}/insights:
    get:
      tags:
        - CRM
      summary: List a CRM object's insights
      description: >-
        Lists the AI insights stored for a CRM object: for a deal or company its
        summary, stakeholders, risks and next steps; for a contact its summary
        and projects. This never starts generation: `status` says whether an
        insight is `ready`, `pending` (being generated), `stale` (older than a
        day) or `missing` (never generated). Insights refresh when someone opens
        the object in Pulse. Leads have none. Counts against the lower CRM rate
        limit (20 requests a minute per API key, 40 per company). Only API keys
        with access to all workspaces can read CRM records, and the company
        needs Pulse turned on. Requires `crm.read`.
      operationId: listCrmObjectInsights
      parameters:
        - $ref: '#/components/parameters/CrmObjectTypePath'
        - $ref: '#/components/parameters/CrmObjectId'
      responses:
        '200':
          description: The stored insights.
          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/CrmObjectInsightsResponse'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '429':
          $ref: '#/components/responses/RateLimited'
        '500':
          $ref: '#/components/responses/InternalServerError'
        '503':
          $ref: '#/components/responses/CrmUnavailable'
components:
  parameters:
    CrmObjectTypePath:
      name: type
      in: path
      required: true
      description: The object type.
      schema:
        type: string
        enum:
          - deal
          - company
          - contact
          - lead
    CrmObjectId:
      name: crmObjectId
      in: path
      required: true
      description: >-
        The object's id in the CRM, as `GET /crm-objects` and a call's
        `crm_objects[]` return it.
      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:
    CrmObjectInsightsResponse:
      type: object
      required:
        - data
      properties:
        data:
          type: array
          items:
            $ref: '#/components/schemas/CrmObjectInsight'
      additionalProperties: false
    CrmObjectInsight:
      type: object
      required:
        - key
        - title
        - status
        - updated_at
        - summary
        - items
        - people
        - source_counts
      properties:
        key:
          description: >-
            `summary`, `stakeholders`, `risks`, `next_steps` or, for contacts,
            `projects_involved`.
          type: string
        title:
          type: string
        status:
          description: >-
            `ready`; `pending` while it is generated; `stale` when older than a
            day; `missing` when never generated.
          type: string
          enum:
            - ready
            - pending
            - stale
            - missing
        updated_at:
          description: When the content was last generated.
          type: string
          format: date-time
          nullable: true
        summary:
          type: string
          nullable: true
        items:
          description: Risks, next steps or projects, one per item.
          type: array
          items:
            type: object
            required:
              - text
              - owner
              - due
            properties:
              text:
                type: string
              owner:
                type: string
                nullable: true
              due:
                type: string
                nullable: true
            additionalProperties: false
        people:
          description: Stakeholders and their roles.
          type: array
          items:
            type: object
            required:
              - name
              - email
              - title
              - role
            properties:
              name:
                type: string
              email:
                type: string
                nullable: true
              title:
                type: string
                nullable: true
              role:
                type: string
                enum:
                  - champion
                  - economic_buyer
                  - decision_maker
                  - influencer
                  - blocker
                  - user
                  - unknown
            additionalProperties: false
        source_counts:
          description: How many sources the insight was generated from.
          type: object
          required:
            - calls
            - emails
            - notes
            - crm_records
          properties:
            calls:
              type: integer
            emails:
              type: integer
            notes:
              type: integer
            crm_records:
              type: integer
          additionalProperties: false
      additionalProperties: false
    ErrorResponse:
      type: object
      required:
        - error
      properties:
        error:
          type: object
          required:
            - message
          properties:
            message:
              type: string
      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'
    NotFound:
      description: The resource does not exist or the API key cannot see it.
      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.