> ## 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 document submission

> Fetch one record from document submissions by its `id`.



## OpenAPI

````yaml /openapi.json get /document-submissions/{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:
  /document-submissions/{id}:
    get:
      tags:
        - document-submissions
      summary: Retrieve a document submission
      description: Fetch one record from document submissions by its `id`.
      operationId: getDocumentSubmissions
      parameters:
        - name: id
          in: path
          required: true
          description: The record's `id`.
          schema:
            type: string
            format: uuid
            example: 9c2a7d10-4e8b-4f3a-b6d2-1a7e5c9f0b84
      responses:
        '200':
          description: The record.
          content:
            application/json:
              schema:
                type: object
                required:
                  - object
                  - data
                properties:
                  object:
                    type: string
                    const: document-submissions
                    example: document-submissions
                  data:
                    $ref: '#/components/schemas/DocumentSubmissions'
        '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:
    DocumentSubmissions:
      type: object
      description: >-
        Each upload attempt against a document request, including superseded
        ones.
      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
        request_id:
          type: string
          format: uuid
          description: >-
            The document request this upload answers. Matches `id` on
            [documents](/api-reference/documents/list).
          example: e5a9c1d7-2b38-4e60-9f4a-8c7d3b1e6f02
        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
        attempt:
          type: integer
          description: Which attempt this is for its request, starting at 1.
          example: 1
        file_name:
          type:
            - string
            - 'null'
          description: Name of the uploaded file.
          example: Oakmere SOC 2 Type II 2026.pdf
        file_size_bytes:
          type:
            - integer
            - 'null'
          description: Size in bytes.
          example: 1843200
        content_type:
          type:
            - string
            - 'null'
          description: File type.
          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'
        outcome:
          type: string
          enum:
            - in_review
            - accepted
            - returned
            - waived
            - withdrawn
            - superseded
            - replaced
          description: |-
            What happened to this upload.

            - `in_review`: Waiting for the lender's review.
            - `accepted`: Accepted.
            - `returned`: Sent back to the vendor.
            - `waived`: The request was waived while this upload was open.
            - `withdrawn`: Withdrawn by the vendor.
            - `superseded`: Overtaken by a newer request.
            - `replaced`: Replaced by a newer upload against the same request.
          example: accepted
        outcome_reason:
          type:
            - string
            - 'null'
          description: Why, where a reason was given.
          example: null
        provenance:
          type: string
          enum:
            - recorded
            - reconstructed
          description: >-
            How this record came to exist.


            - `recorded`: Written at the time of the upload.

            - `reconstructed`: Rebuilt afterwards from the request's history,
            for uploads made before this record existed. Its times are the best
            available, not exact.
          example: recorded
        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 it 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 it was reviewed.
          example: '2026-09-09T02:14:07.221Z'
        reviewed_by:
          type:
            - string
            - 'null'
          description: Who reviewed it, by name.
          example: Amanda Meyers
        decided_at:
          type:
            - string
            - 'null'
          format: date-time
          description: When its outcome was decided.
          example: '2026-09-09T02:14:07.221Z'
        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
        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.
    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.