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

# Retrieve a change

> Fetch one record from changes by its `id`.



## OpenAPI

````yaml /openapi.json get /changes/{id}
openapi: 3.1.0
info:
  title: Vensight API
  version: 1.0.0
  summary: Read every vendor and vendor-relationship record in your workspace.
  description: >-
    The Vensight API is read-only. Every collection is cursor-paginated and can
    be

    filtered to what has changed since a timestamp, so a warehouse can stay
    current with

    incremental pulls; webhooks push the same changes as they happen.
servers:
  - url: https://app.vensight.ai/api/v1
    description: Production
security:
  - bearerAuth: []
tags:
  - name: vendors
    x-group: Vendors
    description: Every vendor in the portfolio, with its tier, status and pipeline stage.
  - name: relationships
    x-group: Relationships
    description: The vendor-side view of each lender relationship.
  - name: contracts
    x-group: Contracts
    description: Agreements on file, their dates, value and version chain.
  - name: invoices
    x-group: Invoices
    description: Invoices raised by vendors, through approval to payment confirmation.
  - name: incidents
    x-group: Incidents
    description: Incidents logged against a vendor, with severity and resolution.
  - name: documents
    x-group: Documents
    description: >-
      Every document asked of a vendor (a document request), and where that
      request has got to.
  - name: document-submissions
    x-group: Document submissions
    description: Each upload attempt against a document request, including superseded ones.
  - name: document-requirements
    x-group: Document requirements
    description: >-
      The document library: which documents the lender asks for, of whom, and
      how often.
  - name: questions
    x-group: Questions
    description: 'The question library: what is asked, of whom, and where.'
  - name: question-answers
    x-group: Question answers
    description: What each vendor answered, its review state and which cycle it belongs to.
  - name: review-cycles
    x-group: Review cycles
    description: Onboarding, renewal and scorecard periods, open and closed.
  - name: requests
    x-group: Requests
    description: Vendor Catalog and access requests raised inside the workspace.
  - name: watchlist-alerts
    x-group: Watchlist alerts
    description: Screening hits recorded against a vendor.
  - name: subprocessors
    x-group: Subprocessors
    description: Fourth parties a vendor has declared.
  - name: events
    x-group: Events
    description: >-
      The vendor timeline as a person reads it: the history log on each vendor's
      page.
  - name: settings-changes
    x-group: Settings changes
    description: Every configuration change, with its before-and-after diff.
  - name: screening-answers
    x-group: Screening answers
    description: >-
      Tier-screening answers, each carrying the wording it was asked under at
      the time.
  - name: changes
    x-group: Changes
    description: >-
      The change feed: one entry for every create or update, in order. Read it
      to catch up after a missed webhook.
  - name: webhooks
    x-group: Webhooks
    description: What Vensight sends to your endpoint.
paths:
  /changes/{id}:
    get:
      tags:
        - changes
      summary: Retrieve a change
      description: Fetch one record from changes by its `id`.
      operationId: getChanges
      parameters:
        - name: id
          in: path
          required: true
          description: The record's `id`.
          schema:
            type: integer
            example: 41207
      responses:
        '200':
          description: The record.
          content:
            application/json:
              schema:
                type: object
                required:
                  - object
                  - data
                properties:
                  object:
                    type: string
                    const: changes
                    example: changes
                  data:
                    $ref: '#/components/schemas/Changes'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '502':
          $ref: '#/components/responses/ReadFailed'
        '503':
          $ref: '#/components/responses/Unavailable'
components:
  schemas:
    Changes:
      type: object
      description: >-
        The change feed: one entry for every create or update, in order. Read it
        to catch up after a missed webhook.
      properties:
        id:
          type: integer
          description: >-
            Position of this change in the feed. Increases with every change. A
            webhook's event id is this number with `evt_` in front: webhook
            `evt_41207` is change `41207`.
          example: 41207
        event_name:
          type: string
          description: >-
            The event, as `<resource>.<action>`. A webhook carries the same
            value as `type`. The full list is on the event catalog page.
          example: invoices.status_changed
        resource:
          type: string
          description: >-
            Which kind of record changed, in event form: underscores, not
            hyphens (`document_submissions`, not `document-submissions`).
          example: invoices
        resource_id:
          type:
            - string
            - 'null'
          description: Id of the record that changed.
          example: 9c2a7d10-4e8b-4f3a-b6d2-1a7e5c9f0b84
        vendor_id:
          type:
            - string
            - 'null'
          format: uuid
          description: The vendor the record belongs to, where it belongs to one.
          example: 6f1c2a4e-8b1d-4c3a-9e57-2d4b8a1f0c93
        action:
          type: string
          enum:
            - created
            - updated
          description: >-
            Whether the record was created or changed. A status change is
            `updated`; `event_name` says which.


            - `created`: The record was created.

            - `updated`: The record was changed.
          example: updated
        occurred_at:
          type: string
          format: date-time
          description: When it changed. This is the field `updated_since` filters on.
          example: '2026-09-09T02:14:07.221Z'
        payload:
          type: object
          additionalProperties: true
          description: >-
            Extra detail. For a `status_changed` event, `field`, `from` and
            `to`. Otherwise empty.
          example:
            field: status
            from: approved
            to: paid
    Error:
      type: object
      required:
        - error
      properties:
        error:
          type: object
          required:
            - code
            - message
          properties:
            code:
              type: string
              enum:
                - invalid_query
                - invalid_id
                - missing_credential
                - invalid_credential
                - not_found
                - unknown_resource
                - read_failed
                - not_yet_provisioned
                - unavailable
              description: >-
                Stable. Branch on this, never on `message`. Every code is
                explained on the Errors page.
              example: invalid_query
            message:
              type: string
              description: Written for a person reading a log. May be reworded.
              example: >-
                vendor is not a filter on invoices. Accepted: limit, cursor,
                updated_since, vendor_id, status, business_unit.
  responses:
    BadRequest:
      description: >-
        The query could not be understood. An unknown filter is refused rather
        than ignored, so a mistyped parameter fails loudly instead of quietly
        returning everything.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error:
              code: invalid_query
              message: >-
                vendor is not a filter on invoices. Accepted: limit, cursor,
                updated_since, vendor_id, status, business_unit.
    Unauthorized:
      description: >-
        No key was sent, the `Authorization` header was not `Bearer <key>`, or
        the key is unknown or revoked.
      headers:
        WWW-Authenticate:
          schema:
            type: string
            example: Bearer realm="Vensight API"
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error:
              code: invalid_credential
              message: That API key is not valid.
    NotFound:
      description: No record with that id.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error:
              code: not_found
              message: No vendors record with that id.
    ReadFailed:
      description: Vensight could not read its own data. Retry with backoff.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error:
              code: read_failed
              message: That could not be read just now.
    Unavailable:
      description: >-
        Vensight is briefly unavailable, usually mid-deploy. Retry after the
        number of seconds in `Retry-After`.
      headers:
        Retry-After:
          schema:
            type: integer
            example: 30
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error:
              code: not_yet_provisioned
              message: >-
                The API is still being switched on for this workspace. Try again
                shortly.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        Send your key as `Authorization: Bearer vsk_live_…`. `X-Api-Key:
        vsk_live_…` is accepted as well, for loaders that cannot set an
        Authorization header. A key in the query string is never accepted —
        query strings end up in logs.

````

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