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

# Get all notes for a contact with pagination

> List notes attached to a contact, newest first. Authors are populated and attachment `key`s are replaced with signed URLs that expire in ~1 hour.



## OpenAPI

````yaml /api-reference/openapi.yaml get /api/contact-notes
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/contact-notes:
    get:
      tags:
        - Contact Notes
      summary: Get all notes for a contact with pagination
      description: >-
        List notes attached to a contact, newest first. Authors are populated
        and attachment `key`s are replaced with signed URLs that expire in ~1
        hour.
      operationId: get_contact_notes
      parameters:
        - in: query
          name: contactId
          required: true
          schema:
            type: string
        - in: query
          name: limit
          required: false
          schema:
            type: string
        - in: query
          name: offset
          required: false
          schema:
            type: string
      responses:
        '200':
          description: Contact notes returned
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ContactNotesListResponse'
        '400':
          description: contactId query parameter is required
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ContactNotesErrorResponse'
        '500':
          description: Failed to fetch contact notes
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ContactNotesErrorResponse'
      security:
        - bearerAuth: []
components:
  schemas:
    ContactNotesListResponse:
      type: object
      properties:
        success:
          type: boolean
          enum:
            - true
        data:
          type: array
          items:
            $ref: '#/components/schemas/ContactNoteItem'
        pagination:
          type: object
          properties:
            total:
              type: integer
            limit:
              type: integer
            offset:
              type: integer
            hasMore:
              type: boolean
          required:
            - total
            - limit
            - offset
            - hasMore
          additionalProperties: true
      required:
        - success
        - data
        - pagination
      additionalProperties: true
      example:
        success: true
        data:
          - _id: 67f0a0b0c0d0e0f0a0b0c0d0
            userId:
              _id: 65b1f0a2c3d4e5f6a7b8c9d3
              fullName: Cory Tan
              email: cory@example.com
            note: Spoke briefly; will follow up tomorrow.
            attachments: []
            reactions: []
            isEdited: false
            createdAt: '2026-05-18T14:00:00.000Z'
        pagination:
          total: 1
          limit: 25
          offset: 0
          hasMore: false
    ContactNotesErrorResponse:
      type: object
      description: >-
        Error envelope returned by contact-notes endpoints. May include `error`
        (raw exception message) on 500 paths.
      properties:
        success:
          type: boolean
          enum:
            - false
        message:
          type: string
        error:
          type: string
      additionalProperties: true
      example:
        success: false
        message: Contact note not found
        error: NOT_FOUND
    ContactNoteItem:
      type: object
      description: >-
        Populated note row. `userId` is populated to the user document (see
        ContactNoteAuthor).
      properties:
        _id:
          type: string
        userId:
          $ref: '#/components/schemas/ContactNoteAuthor'
        note:
          type: string
        attachments:
          type: array
          items:
            $ref: '#/components/schemas/ContactNoteAttachment'
        reactions:
          type: array
          items:
            $ref: '#/components/schemas/ContactNoteReaction'
        isEdited:
          type: boolean
        createdAt:
          type: string
          format: date-time
      additionalProperties: true
      example:
        _id: 67f0a0b0c0d0e0f0a0b0c0d0
        userId:
          _id: 65b1f0a2c3d4e5f6a7b8c9d3
          fullName: Cory Tan
          email: cory@example.com
        note: '@alice please review the W2 attached.'
        attachments:
          - name: w2.pdf
            size: 121200
            type: application/pdf
            signedUrl: https://r2.example.com/orgs/65a0.../notes/w2.pdf?token=...
        reactions:
          - emoji: 👍
            users:
              - 65b1f0a2c3d4e5f6a7b8c9d0
            count: 1
        isEdited: false
        createdAt: '2026-05-18T14:00:00.000Z'
    ContactNoteAuthor:
      type: object
      nullable: true
      properties:
        _id:
          type: string
        fullName:
          type: string
        email:
          type: string
        avatarUrl:
          type: string
          nullable: true
      additionalProperties: true
      example:
        _id: 65b1f0a2c3d4e5f6a7b8c9d3
        fullName: Cory Tan
        email: cory@example.com
        avatarUrl: https://cdn.example.com/avatars/cory.png
    ContactNoteAttachment:
      type: object
      description: >-
        Attachment row. Stored items carry `key`; list responses replace `key`
        with a short-lived `signedUrl`.
      properties:
        key:
          type: string
        name:
          type: string
        size:
          type: number
        type:
          type: string
        signedUrl:
          type: string
          format: uri
          description: Present only on GET list responses.
      additionalProperties: true
      example:
        name: w2.pdf
        size: 121200
        type: application/pdf
        signedUrl: https://r2.example.com/orgs/65a0.../notes/w2.pdf?token=...
    ContactNoteReaction:
      type: object
      properties:
        emoji:
          type: string
        users:
          type: array
          items:
            type: string
        count:
          type: integer
      required:
        - emoji
        - users
        - count
      additionalProperties: true
      example:
        emoji: 👍
        users:
          - 65b1f0a2c3d4e5f6a7b8c9d0
          - 65b1f0a2c3d4e5f6a7b8c9d1
        count: 2
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````