> ## 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.

# List documents

> Every document asked of a vendor (a document request), and where that request has got to. Returned oldest change first, 50 to a page unless you set `limit`.



## OpenAPI

````yaml /openapi.json get /documents
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:
  /documents:
    get:
      tags:
        - documents
      summary: List documents
      description: >-
        Every document asked of a vendor (a document request), and where that
        request has got to. Returned oldest change first, 50 to a page unless
        you set `limit`.
      operationId: listDocuments
      parameters:
        - name: limit
          in: query
          description: How many records to return, from 1 to 200.
          schema:
            type: integer
            minimum: 1
            maximum: 200
            default: 50
        - name: cursor
          in: query
          description: >-
            The `next_cursor` from the previous page. Opaque: do not build one
            yourself; its format is not part of this contract.
          schema:
            type: string
        - name: updated_since
          in: query
          description: >-
            Only records whose `updated_at` is at or after this instant
            (inclusive). Use it to pull only what changed since your last run.
          schema:
            type: string
            format: date-time
            example: '2026-09-01T00:00:00Z'
        - name: vendor_id
          in: query
          description: Only records belonging to this vendor.
          schema:
            type: string
            format: uuid
            example: 6f1c2a4e-8b1d-4c3a-9e57-2d4b8a1f0c93
        - name: status
          in: query
          description: >-
            Only records whose `status` is exactly this value. The values are
            explained on the response field of the same name.
          schema:
            type: string
            enum:
              - outstanding
              - in_review
              - archived
              - waived
              - rejected
        - name: cadence
          in: query
          description: >-
            Only records whose `cadence` is exactly this value. The values are
            explained on the response field of the same name.
          schema:
            type: string
            enum:
              - one_off
              - onboarding
              - monthly
              - quarterly
              - biannual
              - annual
        - name: requirement_id
          in: query
          description: >-
            Only records whose `requirement_id` is exactly this value. Free
            text, matched exactly, including capitals.
          schema:
            type: string
            format: uuid
        - name: cycle_id
          in: query
          description: >-
            Only records whose `cycle_id` is exactly this value. Free text,
            matched exactly, including capitals.
          schema:
            type: string
            format: uuid
      responses:
        '200':
          description: A page of records, oldest change first.
          content:
            application/json:
              schema:
                type: object
                required:
                  - object
                  - resource
                  - data
                  - has_more
                  - next_cursor
                properties:
                  object:
                    type: string
                    const: list
                    example: list
                  resource:
                    type: string
                    const: documents
                    example: documents
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/Documents'
                  has_more:
                    type: boolean
                    description: >-
                      Whether there is another page. Keep going until this is
                      `false`.
                    example: true
                  next_cursor:
                    type:
                      - string
                      - 'null'
                    description: >-
                      Send this as `cursor` to get the next page. `null` on the
                      last page.
                    example: MjAyNi0wOS0wOVQwMjoxNDowNy4yMjFafDZmMWM…
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '502':
          $ref: '#/components/responses/ReadFailed'
        '503':
          $ref: '#/components/responses/Unavailable'
components:
  schemas:
    Documents:
      type: object
      description: >-
        Every document asked of a vendor (a document request), and where that
        request has got to.
      properties:
        id:
          type: string
          format: uuid
          description: >-
            Unique id of this record. Stable for the life of the record; use it
            as your primary key.
          example: 9c2a7d10-4e8b-4f3a-b6d2-1a7e5c9f0b84
        vendor_id:
          type: string
          format: uuid
          description: >-
            The vendor this record belongs to. Matches `id` on
            [vendors](/api-reference/vendors/list).
          example: 6f1c2a4e-8b1d-4c3a-9e57-2d4b8a1f0c93
        requirement_id:
          type:
            - string
            - 'null'
          format: uuid
          description: >-
            The library entry this request comes from. Matches `id` on [document
            requirements](/api-reference/document-requirements/list). `null` for
            a one-off request.
          example: a41d7c3e-5f20-4b8a-9c16-2e8f0b7d4a59
        question_id:
          type:
            - string
            - 'null'
          format: uuid
          description: >-
            If a questionnaire answer asked for this document, that question.
            Matches `id` on [questions](/api-reference/questions/list).
          example: null
        internal_label:
          type:
            - string
            - 'null'
          description: A note for the lender's team. The vendor does not see it.
          example: null
        cadence:
          type: string
          enum:
            - one_off
            - onboarding
            - monthly
            - quarterly
            - biannual
            - annual
          description: |-
            How often this document is asked for.

            - `one_off`: Asked once, with no repeat.
            - `onboarding`: Asked during onboarding only.
            - `monthly`: Asked every month.
            - `quarterly`: Asked every quarter.
            - `biannual`: Asked every six months.
            - `annual`: Asked every year.
          example: annual
        due_date:
          type:
            - string
            - 'null'
          format: date
          description: When the vendor must provide it.
          example: '2026-10-31'
        status:
          type: string
          enum:
            - outstanding
            - in_review
            - archived
            - waived
            - rejected
          description: >-
            Where the request stands.


            - `outstanding`: Waiting for the vendor to upload it.

            - `in_review`: Uploaded, and waiting for the lender's review.

            - `archived`: Decided and filed. `archive_state` says whether it was
            approved or superseded.

            - `waived`: No longer required. See `waive_reason` and
            `waive_scope`.

            - `rejected`: Sent back to the vendor. See `rejection_note`.
          example: in_review
        verification_state:
          type: string
          enum:
            - requested
            - received
          description: |-
            Whether a file has arrived.

            - `requested`: Asked for; nothing received yet.
            - `received`: A file has been received.
          example: received
        archive_state:
          type:
            - string
            - 'null'
          enum:
            - approved
            - superseded
          description: |-
            For a filed request, how it was decided. `null` until it is filed.

            - `approved`: Approved by the lender.
            - `superseded`: Replaced by a newer request for the same document.
          example: null
        visible_to_vendor:
          type: boolean
          description: Whether the vendor can see this request.
          example: true
        file_name:
          type:
            - string
            - 'null'
          description: Name of the latest uploaded file.
          example: Oakmere SOC 2 Type II 2026.pdf
        file_size_bytes:
          type:
            - integer
            - 'null'
          description: Size of the latest uploaded file in bytes.
          example: 1843200
        content_type:
          type:
            - string
            - 'null'
          description: File type of the latest upload.
          example: application/pdf
        storage_path:
          type:
            - string
            - 'null'
          description: >-
            Internal storage key of the uploaded file, or `null` if only the
            file name was recorded. **Not a URL.** The file itself cannot be
            downloaded through this API.
          example: documents/6f1c2a4e-8b1d-4c3a-9e57-2d4b8a1f0c93/soc2-type-ii-2026.pdf
        version_label:
          type:
            - string
            - 'null'
          description: Which version this is, as labelled.
          example: '2026'
        expires_on:
          type:
            - string
            - 'null'
          format: date
          description: When the document expires, if it does.
          example: '2027-06-30'
        uploaded_at:
          type:
            - string
            - 'null'
          format: date-time
          description: When the latest file was uploaded.
          example: '2026-09-09T02:14:07.221Z'
        uploaded_by:
          type:
            - string
            - 'null'
          description: Who uploaded it, by name.
          example: Dana Whitfield
        reviewed_at:
          type:
            - string
            - 'null'
          format: date-time
          description: When the lender reviewed it.
          example: '2026-09-09T02:14:07.221Z'
        reviewed_by:
          type:
            - string
            - 'null'
          description: Who reviewed it, by name.
          example: Amanda Meyers
        rejection_note:
          type:
            - string
            - 'null'
          description: Why it was sent back.
          example: null
        waived_at:
          type:
            - string
            - 'null'
          format: date-time
          description: When it was waived.
          example: null
        waived_by:
          type:
            - string
            - 'null'
          description: Who waived it, by name.
          example: null
        waive_reason:
          type:
            - string
            - 'null'
          description: Why it was waived.
          example: null
        waive_scope:
          type:
            - string
            - 'null'
          enum:
            - this_cycle
            - permanent
          description: >-
            If waived, how far the waiver reaches.


            - `this_cycle`: Waived for the current review cycle only; it is
            asked again next cycle.

            - `permanent`: Waived for good; it is not asked again.
          example: this_cycle
        requested_at:
          type:
            - string
            - 'null'
          format: date-time
          description: When it was asked for.
          example: '2026-09-09T02:14:07.221Z'
        requested_by:
          type:
            - string
            - 'null'
          description: Who asked for it, by name.
          example: Amanda Meyers
        assigned_user_id:
          type:
            - string
            - 'null'
          format: uuid
          description: >-
            The member of the lender's team this is assigned to, or `null` if
            unassigned. A person's id, not their name.
          example: 3b8e1f52-0c6a-4d71-a2f9-7e4c5d9b1a08
        cycle_id:
          type:
            - string
            - 'null'
          format: uuid
          description: >-
            The review cycle this belongs to. Matches `id` on [review
            cycles](/api-reference/review-cycles/list). `null` when it is not
            tied to a cycle.
          example: d2f8a6c4-7e19-4b53-a0d8-5c1b9e3f7a26
        business_unit:
          type:
            - string
            - 'null'
          description: The lender's business unit the request belongs to.
          example: Capital Markets
        created_at:
          type: string
          format: date-time
          description: When the record was created.
          example: '2026-09-09T02:14:07.221Z'
        updated_at:
          type: string
          format: date-time
          description: >-
            When the record last changed. This is the field `updated_since`
            filters on, and the order records are returned in.
          example: '2026-09-09T02:14:07.221Z'
    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.
    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.