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

# Read an AI field's history on an opportunity

> One AI field's writes on an opportunity, newest first, as the field's history in the app shows them: each AI assessment (its value, reasoning, confidence and evidence, and quiet ones that agreed), each person's override with their reason and the hold it took, and releases. `total` counts them all.



## OpenAPI

````yaml /api/statisfy-api.openapi.json get /v1/objects/opportunity/records/{opportunity_id}/ai-fields/{field_key}/history
openapi: 3.1.0
info:
  description: >-
    The agent-first Statisfy API. Authenticate with an API key (`Authorization:
    Bearer stfy_live_…`), then call `GET /v1/meta/capabilities` to discover
    every operation and its schemas.
  title: Statisfy API
  version: 1.0.0
servers:
  - url: https://api.statisfy.com
    description: Production
security: []
paths:
  /v1/objects/opportunity/records/{opportunity_id}/ai-fields/{field_key}/history:
    get:
      tags:
        - opportunities
      summary: Read an AI field's history on an opportunity
      description: >-
        One AI field's writes on an opportunity, newest first, as the field's
        history in the app shows them: each AI assessment (its value, reasoning,
        confidence and evidence, and quiet ones that agreed), each person's
        override with their reason and the hold it took, and releases. `total`
        counts them all.
      operationId: opportunities_get_ai_field_history
      parameters:
        - description: >-
            The AI field's key, as `GET /v1/fields` lists it. An account's
            `type` the AI manages is one too
          in: path
          name: field_key
          required: true
          schema:
            examples:
              - renewal_forecast
            maxLength: 255
            minLength: 1
            type: string
        - description: The opportunity's Statisfy id
          in: path
          name: opportunity_id
          required: true
          schema:
            maxLength: 255
            minLength: 1
            type: string
        - in: query
          name: limit
          required: false
          schema:
            default: 20
            maximum: 100
            minimum: 1
            type: integer
        - description: '`next_cursor` from the previous page'
          in: query
          name: cursor
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            default: null
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AiFieldHistoryPage'
          description: Successful Response
      security:
        - HTTPBearer: []
components:
  schemas:
    AiFieldHistoryPage:
      properties:
        data:
          items:
            $ref: '#/components/schemas/AiFieldHistoryEntry'
          title: Data
          type: array
        has_more:
          default: false
          title: Has More
          type: boolean
        next_cursor:
          anyOf:
            - type: string
            - type: 'null'
          title: Next Cursor
        total:
          title: Total
          type: integer
      required:
        - data
        - total
      title: AiFieldHistoryPage
      type: object
    AiFieldHistoryEntry:
      properties:
        actor_name:
          anyOf:
            - type: string
            - type: 'null'
          description: The person behind a human write
          title: Actor Name
        changed:
          description: >-
            False when the write left the value as it was: an assessment that
            agreed, a release
          title: Changed
          type: boolean
        confidence:
          anyOf:
            - type: number
            - type: 'null'
          title: Confidence
        evidence:
          anyOf:
            - items:
                additionalProperties: true
                type: object
              type: array
            - type: 'null'
          description: >-
            What the AI cited: {kind, entity_id, note}, with label and date when
            the record resolves
          title: Evidence
        locked_until:
          anyOf:
            - format: date-time
              type: string
            - type: 'null'
          description: On a person's write, the hold it took
          title: Locked Until
        reason:
          anyOf:
            - type: string
            - type: 'null'
          description: The AI's reasoning, or the person's reason
          title: Reason
        source:
          description: >-
            Who wrote it: ai (the AI; ai_shadow, an assessment it recorded
            without writing), human (a person, in the app or with this API),
            sync, import, bulk, flow, or outcome
          title: Source
          type: string
        status:
          anyOf:
            - type: string
            - type: 'null'
          description: >-
            The AI's verdict on its run (such as invalid or
            insufficient_evidence), or released
          title: Status
        triggers:
          anyOf:
            - items:
                additionalProperties: true
                type: object
              type: array
            - type: 'null'
          description: What set the AI's run off
          title: Triggers
        value:
          description: The value this write left
          title: Value
        written_at:
          format: date-time
          title: Written At
          type: string
      required:
        - written_at
        - value
        - source
        - changed
      title: AiFieldHistoryEntry
      type: object
  securitySchemes:
    HTTPBearer:
      scheme: bearer
      type: http
      description: >-
        An API key, sent as `Authorization: Bearer stfy_live_…`. See
        [Authentication](/rest-api/authentication) for how to get one and which
        scopes it needs.

````

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