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

# List documents on a contact

> Returns the documents array stored on the contact, each augmented with a short-lived signed URL for client download.



## OpenAPI

````yaml /api-reference/openapi.yaml get /api/contacts/{contactId}/documents
openapi: 3.0.3
info:
  title: Tether Relay and Tether API
  version: 1.0.0
  description: >-
    Route-derived OpenAPI contract generated from tether-relay backend sources.
    Regenerate with scripts/sync-openapi-from-backend.mjs.
servers:
  - url: https://your-instance.example.com
    description: Production
  - url: http://localhost:2212
    description: Local API service
security: []
tags:
  - name: AI
  - name: Applications
  - name: Approval
  - name: Auth
  - name: Automations
  - name: Calls
  - name: Campaigns
  - name: Contact Analytics
  - name: Contact Metrics
  - name: Contact Notes
  - name: Contacts
  - name: Conversation Monitor
  - name: Conversations
  - name: Departments
  - name: Email
  - name: Escalation Dashboard
  - name: Event Logs
  - name: Google Sheets
  - name: Marketplace
  - name: Messages
  - name: Notification Sounds
  - name: Notifications
  - name: Org Snapshots
  - name: Organizations
  - name: Outreach
  - name: Outreach Metrics
  - name: Outreach Sources
  - name: Pipelines
  - name: Processes
  - name: Prompts
  - name: Reminders
  - name: Sms
  - name: Templates
  - name: Traces
  - name: Training
  - name: Upload
  - name: User Snapshots
  - name: Users
  - name: Vertical
  - name: Webchats
  - name: Webhook
paths:
  /api/contacts/{contactId}/documents:
    get:
      tags:
        - Contacts
      summary: List documents on a contact
      description: >-
        Returns the documents array stored on the contact, each augmented with a
        short-lived signed URL for client download.
      operationId: get_contact_documents
      parameters:
        - in: path
          name: contactId
          required: true
          schema:
            type: string
      responses:
        '200':
          description: Documents returned
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ContactDocumentsListResponse'
        '400':
          description: Invalid contact id
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LegacyErrorResponse'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LegacyErrorResponse'
        '404':
          description: Contact not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LegacyErrorResponse'
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LegacyErrorResponse'
      security:
        - bearerAuth: []
components:
  schemas:
    ContactDocumentsListResponse:
      type: object
      properties:
        documents:
          type: array
          items:
            $ref: '#/components/schemas/ContactDocumentDto'
      required:
        - documents
      additionalProperties: true
      example:
        documents: []
    LegacyErrorResponse:
      type: object
      properties:
        error:
          type: string
        message:
          type: string
        data: {}
      additionalProperties: true
      example:
        error: Attachment not found
        message: Attachment not found
    ContactDocumentDto:
      type: object
      properties:
        _id:
          type: string
        storageKey:
          type: string
        filename:
          type: string
        contentType:
          type: string
        size:
          type: integer
        documentType:
          type: string
        sourceMessageId:
          type: string
          nullable: true
        uploadedAt:
          type: string
          format: date-time
          nullable: true
        uploadedBy:
          type: string
          nullable: true
        notes:
          type: string
          nullable: true
        signedUrl:
          type: string
          nullable: true
          description: Short-lived signed GET URL for the underlying R2 object.
      required:
        - storageKey
        - filename
        - contentType
        - documentType
      additionalProperties: true
      example:
        _id: 64f0a1b2c3d4e5f6a7b8ca40
        storageKey: >-
          org/64f0a1b2c3d4e5f6a7b8c9d3/contact/64f0a1b2c3d4e5f6a7b8c9d0/2026/id-proof.pdf
        filename: id-proof.pdf
        contentType: application/pdf
        size: 184320
        documentType: ID Proof
        uploadedAt: '2026-05-12T10:00:00.000Z'
        uploadedBy: 64f0a1b2c3d4e5f6a7b8c9d4
        notes: Driver license, front + back
        signedUrl: https://example-r2.signed/.../id-proof.pdf?X-Amz-Expires=600
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````