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

# Get Thread

> One thread with its summary and the events it holds, in occurrence order. A person who is no member of the organization gets its cast sealed (cast.sealed outsider), as they do its events.



## OpenAPI

````yaml https://sonar.turtle.xyz/v1/openapi.json get /organization/{organizationId}/threads/{threadId}
openapi: 3.1.0
info:
  description: >-
    Sonar's CRM, as a tenant sees it: the events its sensors read, the contacts,
    organizations,

    deals, tasks and documents built from them, and the record of every change.
    Each organization's Sonar is its

    own silo: nothing in it is shared with another. Its agent reads the events
    and proposes or makes the changes;

    the people of the organization read, correct and decide. The organization
    graph is the one exception: a public

    directory of organizations, the same for every organization, that holds
    nothing of any organization's own.


    Every path is under /organization/{organizationId}, the Turtle organization
    whose Sonar you address.

    Authenticate with a Turtle API key, as a bearer token or in X-API-Key. A
    personal key acts as you, in the

    organizations you are a member of; an organization's key reaches that
    organization only.


    ## Versioning and deprecation


    v1 is stable. Within v1, changes are additive only:


    - new operations, and new optional query parameters or request fields;

    - new response fields;

    - new values in a response enum.


    Clients must ignore response fields they do not know and tolerate enum
    values they do not know.


    Anything else is breaking and ships only in a new version (/v2): removing or
    renaming an operation, a

    parameter or a field; making an optional input required; changing a type, a
    format or what a field means;

    accepting fewer values than before; changing what a credential may reach.


    An operation is retired in steps. First it is marked deprecated here and
    every answer it gives carries a

    Deprecation header (RFC 9745, the date it was deprecated), a Sunset header
    (RFC 8594, the date it stops

    answering) and a Link to this policy with rel="deprecation". The sunset is
    at least 90 days after the

    deprecation. Watch for the Deprecation header: it is the notice.
  title: Turtle Sonar API
  version: 1.0.0
servers:
  - url: https://sonar.turtle.xyz/v1
security:
  - bearerAuth: []
  - apiKeyAuth: []
tags:
  - description: The companies you deal with, your own included.
    name: Organizations
  - description: >-
      The public directory of organizations, the same for every workspace, each
      beside your own organization on its domain.
    name: Organization graph
  - description: People, and the roles they hold at organizations.
    name: Contacts
  - description: >-
      Corrections to a role a contact held: a title misread, a date wrong.
      Starting and finishing one are Contacts operations.
    name: Contact roles
  - description: >-
      Deals on your boards, and the subjects from Turtle's catalog they are
      about.
    name: Engagements (deals)
  - description: 'Storylines: the events one topic is made of.'
    name: Threads (storylines)
  - description: Follow-ups with owners and due dates.
    name: Tasks
  - description: >-
      Paperwork held with a counterparty. Sonar records where a document lives,
      not the file.
    name: Documents
  - description: On-chain addresses an organization is known by.
    name: Wallets
  - description: A deal's changes between two reviews.
    name: Reports
  - description: >-
      What the sensors read. Events never change, and writes cite them as
      evidence.
    name: Events
  - description: Named slices of the event log, each read as a poll of its own.
    name: Feeds
  - description: >-
      Where each poller of the event log stands, and how far behind the log it
      is.
    name: Poll marks
  - description: The schedule, from the calendars Sonar reads.
    name: Meetings
  - description: 'The conversation with Sonar''s agent: questions, answers and notes.'
    name: Messages
  - description: 'The change log: every write, the drafts waiting for a person, and undo.'
    name: Change log and drafts
  - description: Boards, their stages, and the card each deal on them carries.
    name: Pipelines (boards)
  - description: The custom fields every other kind of record carries.
    name: Entity cards
  - description: Rules your workspace runs on incoming events.
    name: Rules
  - description: What the agent may do without a person.
    name: Permissions
  - description: >-
      The accounts Sonar reads through: what each may read, its history reads,
      its settings, and disconnecting it. Connecting one is the dashboard's.
    name: Sensing scope
  - description: What your inbound webhooks received.
    name: Webhook deliveries
  - description: What Sonar holds for you, its retention, and deletion.
    name: Data and retention
  - description: >-
      Keys minted for members' own agents, collected by Sonar's agent tier. Only
      the agent tier's own credential may call these.
    name: Agent keys
paths:
  /organization/{organizationId}/threads/{threadId}:
    get:
      tags:
        - Threads (storylines)
      summary: Get Thread
      description: >-
        One thread with its summary and the events it holds, in occurrence
        order. A person who is no member of the organization gets its cast
        sealed (cast.sealed outsider), as they do its events.
      operationId: sonarGetThread
      parameters:
        - description: 'Window: the most recent n events (occurrence order). Default 50.'
          in: query
          name: eventLimit
          schema:
            description: 'Window: the most recent n events (occurrence order). Default 50.'
            maximum: 200
            minimum: 1
            type: integer
        - description: >-
            Also attach the agent's open proposals on the storyline, as a sparse
            present / future beside it. Off by default.
          in: query
          name: drafts
          schema:
            description: >-
              Also attach the agent's open proposals on the storyline, as a
              sparse present / future beside it. Off by default.
            type: boolean
        - description: >-
            Also attach who the storyline's events name, over all of them rather
            than the window: the tenant's external contacts with their orgs, and
            everybody no contact holds. Off by default.
          in: query
          name: cast
          schema:
            description: >-
              Also attach who the storyline's events name, over all of them
              rather than the window: the tenant's external contacts with their
              orgs, and everybody no contact holds. Off by default.
            type: boolean
        - in: path
          name: organizationId
          required: true
          schema:
            $ref: '#/components/schemas/UuidUUID'
        - in: path
          name: threadId
          required: true
          schema:
            $ref: '#/components/schemas/UuidUUID'
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SonarGetThreadOutput'
          description: OK
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RestErrResponse'
          description: Not Found
        '500':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RestErrResponse'
          description: Internal Server Error
components:
  schemas:
    UuidUUID:
      examples:
        - 248df4b7-aa70-47b8-a036-33ac447e668d
      format: uuid
      type: string
    SonarGetThreadOutput:
      properties:
        budgets:
          description: >-
            How full the summary is, in characters. A size to keep it to, never
            enforced.
          items:
            $ref: '#/components/schemas/SonarFieldBudget'
          type: array
        cast:
          $ref: '#/components/schemas/SonarThreadCastView'
        drafts:
          $ref: '#/components/schemas/SonarEntityDraftsView'
        events:
          items:
            $ref: '#/components/schemas/SonarEventLinkView'
          type:
            - array
            - 'null'
        thread:
          $ref: '#/components/schemas/SonarThreadView'
      type: object
    RestErrResponse:
      properties:
        code:
          description: Application-specific error code.
          type: integer
        context:
          additionalProperties: {}
          description: Application context.
          type: object
        error:
          description: Error message.
          type: string
        status:
          description: Status text.
          type: string
      type: object
    SonarFieldBudget:
      properties:
        budget:
          type: integer
        chars:
          type: integer
        field:
          type: string
      type: object
    SonarThreadCastView:
      properties:
        contacts:
          items:
            $ref: '#/components/schemas/SonarThreadContactView'
          type:
            - array
            - 'null'
        members:
          description: >-
            The tenant's own people the events name, the key member first: the
            one who sent the most of them.
          items:
            $ref: '#/components/schemas/SonarThreadContactView'
          type:
            - array
            - 'null'
        sealed:
          description: >-
            Why the reader may not see who the storyline's events name, the
            lists left empty: outsider, for a person who is no member of the
            organization and so reads none of its events. Absent when the reader
            may.
          type: string
        unknown:
          items:
            $ref: '#/components/schemas/SonarCastPersonView'
          type:
            - array
            - 'null'
      type: object
    SonarEntityDraftsView:
      properties:
        disposition:
          type: string
        future:
          $ref: '#/components/schemas/UtilsJSONB'
        present:
          $ref: '#/components/schemas/UtilsJSONB'
        proposals:
          items:
            $ref: '#/components/schemas/SonarMutationView'
          type:
            - array
            - 'null'
        refs:
          additionalProperties:
            $ref: '#/components/schemas/SonarEntityRefView'
          type: object
      type: object
    SonarEventLinkView:
      properties:
        event:
          $ref: '#/components/schemas/SonarEventView'
        linkedAt:
          format: date-time
          type: string
      type: object
    SonarThreadView:
      properties:
        channels:
          items:
            type: string
          type: array
        createdAt:
          format: date-time
          type: string
        id:
          $ref: '#/components/schemas/UuidUUID'
        summary:
          type: string
        title:
          type: string
        updatedAt:
          format: date-time
          type: string
      type: object
    SonarThreadContactView:
      properties:
        id:
          $ref: '#/components/schemas/UuidUUID'
        name:
          type: string
        orgs:
          items:
            $ref: '#/components/schemas/SonarRefView'
          type:
            - array
            - 'null'
        principalOf:
          description: >-
            The orgs among orgs where the contact is the storyline's principal:
            who sent the most of its events of the people there, the more often
            named breaking a tie.
          items:
            $ref: '#/components/schemas/UuidUUID'
          type:
            - array
            - 'null'
      type: object
    SonarCastPersonView:
      properties:
        addresses:
          $ref: '#/components/schemas/SonarContactAddresses'
        name:
          type: string
      type: object
    UtilsJSONB:
      additionalProperties: {}
      type: object
    SonarMutationView:
      properties:
        allowance:
          type: string
        allowedBy:
          $ref: '#/components/schemas/UuidUUID'
        allower:
          $ref: '#/components/schemas/SonarNameRef'
        amended:
          items:
            type: string
          type: array
        causedBy:
          $ref: '#/components/schemas/UuidUUID'
        changedAt:
          format: date-time
          type: string
        changes:
          $ref: '#/components/schemas/UtilsJSONB'
        createdAt:
          format: date-time
          type: string
        decidedAt:
          format: date-time
          type:
            - 'null'
            - string
        decidedBy:
          $ref: '#/components/schemas/UuidUUID'
        decider:
          $ref: '#/components/schemas/SonarNameRef'
        entity:
          $ref: '#/components/schemas/SonarNameRef'
        entityId:
          $ref: '#/components/schemas/UuidUUID'
        entityType:
          type: string
        evidence:
          $ref: '#/components/schemas/SonarEvidence'
        heldByAgent:
          type: boolean
        id:
          $ref: '#/components/schemas/UuidUUID'
        mine:
          description: >-
            Derived, beside owner: the signed-in person's contact is the owner.
            Absent when there is no owner, or the reader has no contact in this
            silo.
          type:
            - 'null'
            - boolean
        op:
          type: string
        owner:
          $ref: '#/components/schemas/SonarRefView'
          description: >-
            Derived, on GET /mutations/drafts: the one of ours this draft waits
            on, from the senders of the events it cites, else the member behind
            a message it cites, else the key member of the threads holding those
            events. A person's own draft (source human) waits on its author. For
            a person who is no member of the organization only that: they read
            none of what the rest is worked out from. Absent when none of these
            names one of ours. It routes, and limits nobody: anyone may decide
            the draft.
        proposal:
          $ref: '#/components/schemas/UtilsJSONB'
        rationale:
          type: string
        reason:
          type: string
        refs:
          additionalProperties:
            $ref: '#/components/schemas/SonarEntityRefView'
          type: object
        related:
          $ref: '#/components/schemas/SonarNameRef'
        relatedId:
          $ref: '#/components/schemas/UuidUUID'
        revertedBy:
          $ref: '#/components/schemas/UuidUUID'
        reverts:
          $ref: '#/components/schemas/UuidUUID'
        rule:
          $ref: '#/components/schemas/SonarNameRef'
        ruleId:
          $ref: '#/components/schemas/UuidUUID'
        source:
          type: string
        status:
          type: string
        supersededBy:
          $ref: '#/components/schemas/UuidUUID'
        user:
          $ref: '#/components/schemas/SonarNameRef'
        userId:
          $ref: '#/components/schemas/UuidUUID'
      type: object
    SonarEntityRefView:
      properties:
        kind:
          type: string
        name:
          type: string
      type: object
    SonarEventView:
      properties:
        action:
          type: string
        backfill:
          type: boolean
        channel:
          type: string
        conversation:
          $ref: '#/components/schemas/SonarEventConversationView'
        externalId:
          type: string
        id:
          $ref: '#/components/schemas/UuidUUID'
        ingestedAt:
          format: date-time
          type: string
        integrationId:
          $ref: '#/components/schemas/UuidUUID'
        mutationCounts:
          additionalProperties:
            type: integer
          type: object
        occurredAt:
          format: date-time
          type: string
        payload:
          $ref: '#/components/schemas/SonarEventPayloadView'
        redacted:
          additionalProperties:
            type: integer
          type: object
        refExternalId:
          type: string
        sealed:
          $ref: '#/components/schemas/SonarEventSealView'
        sender:
          $ref: '#/components/schemas/SonarEventPartyView'
        status:
          $ref: '#/components/schemas/SonarOutgoingStatus'
          description: >-
            How far an event a member sent got: pending, sending, sent or
            failed, each with when it was reached. Absent on an event Sonar
            sensed.
        threads:
          items:
            $ref: '#/components/schemas/SonarThreadLinkView'
          type:
            - array
            - 'null'
        wire:
          $ref: '#/components/schemas/SonarEventPartyView'
        wires:
          items:
            $ref: '#/components/schemas/SonarEventWireView'
          type:
            - array
            - 'null'
      type: object
    SonarRefView:
      properties:
        id:
          $ref: '#/components/schemas/UuidUUID'
        name:
          type: string
      type: object
    SonarContactAddresses:
      items:
        $ref: '#/components/schemas/SonarContactAddress'
      type:
        - array
        - 'null'
    SonarNameRef:
      properties:
        name:
          type: string
      type: object
    SonarEvidence:
      items:
        $ref: '#/components/schemas/SonarEventRef'
      type:
        - array
        - 'null'
    SonarEventConversationView:
      properties:
        address:
          type: string
        crowded:
          type: boolean
        kind:
          type: string
        name:
          type: string
        orgs:
          items:
            $ref: '#/components/schemas/SonarRefView'
          type: array
        threads:
          items:
            $ref: '#/components/schemas/SonarConversationThreadView'
          type: array
      type: object
    SonarEventPayloadView:
      anyOf:
        - $ref: '#/components/schemas/SonarTelegramPayloadView'
        - $ref: '#/components/schemas/SonarSlackPayloadView'
        - $ref: '#/components/schemas/SonarGmailPayloadView'
        - $ref: '#/components/schemas/SonarCalendarPayloadView'
        - $ref: '#/components/schemas/SonarDrivePayloadView'
        - $ref: '#/components/schemas/SonarMeetingPayloadView'
        - $ref: '#/components/schemas/SonarDocumensoPayloadView'
        - $ref: '#/components/schemas/SonarWalletsPayloadView'
        - $ref: '#/components/schemas/SonarWebhookPayloadView'
      description: >-
        The event's own facts, in its provider's terms. The event's channel
        names the shape: telegram, slack, gmail, calendar, drive, documenso,
        wallets and webhook have one each, and fireflies, granola and
        geminiNotes share the meeting's. Every field is optional. A listing
        leaves out a field longer than 1000 characters and names it in the
        event's redacted, with its length; a list of objects may lose only its
        items' strings longer than 500 characters, named like media.0.text. GET
        /events/{eventId} returns the payload whole. A sealed event's payload is
        empty.
      type: object
    SonarEventSealView:
      properties:
        conversationKind:
          type: string
        reason:
          type: string
      type: object
    SonarEventPartyView:
      properties:
        address:
          type: string
        contact:
          $ref: '#/components/schemas/SonarEventContactView'
        description:
          type: string
        email:
          type: string
        name:
          type: string
        profile:
          $ref: '#/components/schemas/SonarSenderProfileView'
        username:
          type: string
      type: object
    SonarOutgoingStatus:
      properties:
        errors:
          description: Each attempt that failed, oldest first.
          items:
            $ref: '#/components/schemas/SonarSendError'
          type: array
        failed:
          description: When Sonar gave up sending the event; errors say why.
          format: date-time
          type:
            - 'null'
            - string
        pending:
          description: When the event was written to go out.
          format: date-time
          type: string
        providerId:
          description: >-
            The provider's id for what was sent, which the copy Sonar senses
            back carries.
          type: string
        sending:
          description: When Sonar took the event to send it.
          format: date-time
          type:
            - 'null'
            - string
        sent:
          description: When the provider took the event.
          format: date-time
          type:
            - 'null'
            - string
      type: object
    SonarThreadLinkView:
      properties:
        linkedAt:
          format: date-time
          type: string
        thread:
          $ref: '#/components/schemas/SonarThreadRefView'
      type: object
    SonarEventWireView:
      properties:
        address:
          type: string
        contact:
          $ref: '#/components/schemas/SonarEventContactView'
        description:
          type: string
        integrationId:
          $ref: '#/components/schemas/UuidUUID'
        name:
          type: string
      type: object
    SonarContactAddress:
      properties:
        kind:
          type: string
        value:
          type: string
      type: object
    SonarEventRef:
      properties:
        eventId:
          $ref: '#/components/schemas/UuidUUID'
        messageId:
          $ref: '#/components/schemas/UuidUUID'
        quotes:
          items:
            type: string
          type: array
        sealed:
          type: string
        stance:
          type: string
      type: object
    SonarConversationThreadView:
      properties:
        id:
          $ref: '#/components/schemas/UuidUUID'
        title:
          type: string
        updatedAt:
          format: date-time
          type: string
      type: object
    SonarTelegramPayloadView:
      description: >-
        Channel telegram: one message, a reaction, or members joining or
        leaving. The chat is the event's conversation and the author its sender,
        whose @username is the sender's username.
      properties:
        forwardedFrom:
          $ref: '#/components/schemas/SonarTelegramPersonView'
          description: >-
            The original sender of a message forwarded from a person: a name
            alone when they hide their account from forwards.
        media:
          description: >-
            The file it carried, as read: the file's name, its mime type, and
            the text or transcription and the one-sentence description read out
            of it. The bytes are not kept.
          items:
            $ref: '#/components/schemas/SonarMedia'
          type: array
        members:
          description: >-
            On an add or a remove that refers to no message: the people who
            joined or left the chat. The sender is whoever acted.
          items:
            $ref: '#/components/schemas/SonarTelegramPersonView'
          type: array
        mentions:
          description: >-
            The people the text names, members of the chat or not. A typed
            @username carries the username alone.
          items:
            $ref: '#/components/schemas/SonarTelegramPersonView'
          type: array
        reaction:
          description: >-
            On an add or a remove that refers to a message (refExternalId): the
            emoji put on it or taken off. custom:{id} names a custom emoji.
          type: string
        text:
          description: What the message says.
          type: string
        topic:
          $ref: '#/components/schemas/SonarTelegramTopic'
          description: >-
            The forum topic it was posted in, in a chat split into topics: its
            id in the chat (1 is General) and its title. Posting in a topic is
            no reply.
      title: Telegram message
      type: object
    SonarSlackPayloadView:
      description: >-
        Channel slack: one message, a reaction, or members joining or leaving.
        The Slack channel is the event's conversation and the author its sender,
        whose profile email is the sender's email.
      properties:
        media:
          description: >-
            The files it carried, as read: the file's name, its mime type, and
            the text or transcription and the one-sentence description read out
            of it. The bytes are not kept.
          items:
            $ref: '#/components/schemas/SonarMedia'
          type: array
        members:
          description: >-
            On an add or a remove that refers to no message: the people who
            joined or left the channel. The sender is whoever acted.
          items:
            $ref: '#/components/schemas/SonarSlackPersonView'
          type: array
        mentions:
          description: The people the message names.
          items:
            $ref: '#/components/schemas/SonarSlackPersonView'
          type: array
        reaction:
          description: >-
            On an add or a remove that refers to a message (refExternalId): the
            name of the emoji put on it or taken off.
          type: string
        text:
          description: What the message says.
          type: string
        threadTs:
          description: The parent message's ts, on a reply in a Slack thread.
          type: string
      title: Slack message
      type: object
    SonarGmailPayloadView:
      description: >-
        Channel gmail: one mail. The thread is the event's conversation, the
        subject its name, and From its sender.
      properties:
        body:
          description: The plain-text body.
          type: string
        cc:
          items:
            $ref: '#/components/schemas/SonarPayloadPersonView'
          type: array
        inReplyTo:
          description: 'A reply''s: the Message-ID of the mail it answers.'
          type: string
        labels:
          description: >-
            Gmail's label ids: INBOX, SENT, IMPORTANT, the mailbox's own. SENT
            says the mail left this mailbox.
          items:
            type: string
          type: array
        media:
          description: >-
            The files it carried, as read: the file's name, its mime type, and
            the text or transcription and the one-sentence description read out
            of it. The bytes are not kept.
          items:
            $ref: '#/components/schemas/SonarMedia'
          type: array
        messageId:
          description: >-
            Its Message-ID header, left@right without the angle brackets: its id
            in every mailbox it reaches, and its externalId. A reply names the
            mail it answers by it.
          type: string
        references:
          description: >-
            A reply's: the Message-IDs of the mails before it in its thread,
            oldest first.
          items:
            type: string
          type: array
        to:
          items:
            $ref: '#/components/schemas/SonarPayloadPersonView'
          type: array
      title: Gmail message
      type: object
    SonarCalendarPayloadView:
      description: >-
        Channel calendar: one revision of a calendar event, as Google states it,
        or an attendee's changed answer to it (action reply, referring to the
        revision answered). The calendar is the event's conversation, and the
        organizer its sender; a reply's sender is the attendee who answered, and
        it carries the meeting's eventId, summary and start, that attendee, and
        the answer's move in diff.
      properties:
        attendees:
          description: >-
            The invitees, with their answers. Rooms and other resources are left
            out. On a reply, only the attendee who answered.
          items:
            $ref: '#/components/schemas/SonarCalendarAttendeeView'
          type: array
        description:
          type: string
        diff:
          $ref: '#/components/schemas/SonarCalendarDiff'
          description: >-
            On an edit: what changed since the revision it refers to, in the
            payload's own shape. A field is its move, {old, new}; a list holds
            one entry per entry that moved. An attendee is added under new,
            removed under old, or still invited, with their address and the name
            that moved. A description that moved keeps only its old text. The
            payload beside it is still the whole event. An answer is never an
            edit's: on a reply, attendees holds the one answer that moved, as
            the attendee's address and status {old, new}.
        end:
          description: >-
            As Google states it: an RFC 3339 time, or a date alone for an
            all-day event.
          type: string
        eventId:
          description: >-
            Google's id of the calendar event. Every revision of one event
            shares it.
          type: string
        eventType:
          description: >-
            Google's eventType, when the entry is no ordinary meeting:
            outOfOffice, focusTime, fromGmail.
          type: string
        location:
          type: string
        meetingLink:
          description: The Google Meet link.
          type: string
        originalStart:
          description: The start the series gave the instance before it moved.
          type: string
        recurrence:
          description: >-
            The series' rules, on the series itself: RRULE, EXRULE, RDATE and
            EXDATE lines.
          items:
            type: string
          type: array
        recurringEventId:
          description: The series an instance belongs to, by eventId.
          type: string
        start:
          description: >-
            As Google states it: an RFC 3339 time, or a date alone for an
            all-day event.
          type: string
        status:
          description: >-
            Google's event status, as Google spells it: confirmed, tentative,
            cancelled.
          type: string
        summary:
          type: string
      title: Calendar event
      type: object
    SonarDrivePayloadView:
      description: >-
        Channel drive: one version of a file in Drive, a comment on it (action
        reply), or its removal (action delete). The file is the event's
        conversation, named by its title, and whoever last changed it the
        sender.
      properties:
        description:
          description: A PDF's one-sentence description, as read.
          type: string
        diff:
          description: >-
            On an edit: what the file's text changed since the version it edits,
            as a cut-down unified diff of at most 800 characters, so a listing
            that leaves text out still shows what moved. A hunk opens with @@
            and the doc heading or sheet tab it sits under; a line is - removed,
            + added, or, on a sheet, ~ a row whose cells moved, each as Column:
            old → new. A changed line keeps only the text around its change, and
            a last line counts the changes left out.
          type: string
        driveId:
          description: >-
            The shared drive the file is in. Absent for a file in somebody's own
            Drive.
          type: string
        folders:
          description: >-
            The folders the file sat under when it was read, nearest first, by
            id. Only looked up while the account's scope names a folder.
          items:
            type: string
          type: array
        mentioned:
          description: >-
            The people a comment @-mentions. Drive gives their emails alone;
            their contact names them.
          items:
            $ref: '#/components/schemas/SonarPayloadPersonView'
          type: array
        mime:
          description: The file's mime type.
          type: string
        owners:
          description: The file's owners. A file in a shared drive has none.
          items:
            $ref: '#/components/schemas/SonarPayloadPersonView'
          type: array
        quote:
          description: 'On a comment on a passage: the passage.'
          type: string
        reason:
          description: >-
            On a removal (action delete): trashed (in the trash, where it can be
            restored), unshared (the account can no longer read it), deleted
            (gone for good from the trash).
          type: string
        shareMessage:
          description: 'On a file a member sent: what Google''s share email says.'
          type: string
        shares:
          description: >-
            On a file a member sent: whom it is shared with, each with the role
            they get (reader, commenter or writer).
          items:
            $ref: '#/components/schemas/SonarDriveShare'
          type: array
        text:
          description: >-
            What the file says: a doc's Markdown export, a deck's plain text,
            every tab of a sheet as CSV under a ## heading naming it, a Word
            file's body, a PDF as read. On a comment, what the comment says.
            Absent for a file that could not be read.
          type: string
        uri:
          description: Drive's own link to the file.
          type: string
      title: Drive file
      type: object
    SonarMeetingPayloadView:
      description: >-
        Channels fireflies, granola and geminiNotes: a meeting's notes, which
        read the same whichever notetaker took them. Who was there and what was
        said are what happened; the summary and the notes are a model's reading
        of it.
      properties:
        attendees:
          description: >-
            Who was there, as the notetaker names them. Gemini names who was
            invited.
          items:
            $ref: '#/components/schemas/SonarMeetingAttendeeView'
          type: array
        calId:
          description: >-
            The calendar event the meeting was held as, when the notetaker names
            it: that event's eventId.
          type: string
        notes:
          description: >-
            The notes, in Markdown: Fireflies' notes, Granola's summary, or
            Gemini's details with its decisions after them under ## Decisions.
          type: string
        reason:
          description: >-
            On the removal of Gemini's notes (action delete): why they went
            away, as for a file in Drive.
          type: string
        summary:
          description: A paragraph of what happened, where the notetaker writes one.
          type: string
        transcript:
          description: >-
            What was said, turn by turn, where the notetaker kept it: who spoke,
            what they said, and when, in seconds from the start of the
            recording.
          items:
            $ref: '#/components/schemas/SonarTranscriptLine'
          type: array
      title: Meeting notes
      type: object
    SonarDocumensoPayloadView:
      description: >-
        Channel documenso: one step of a document's signing, as Documenso
        reported it. The document is the event's conversation, named by its
        title; the sender is the recipient who acted, on the steps that happen
        once per person.
      properties:
        completedAt:
          description: When Documenso says the document was completed, as it spelled it.
          type: string
        event:
          description: >-
            Documenso's event name, verbatim: DOCUMENT_SENT, DOCUMENT_OPENED,
            DOCUMENT_COMPLETED, and the rest.
          type: string
        recipients:
          description: Every party on the document, with where they stand.
          items:
            $ref: '#/components/schemas/SonarDocumensoRecipientView'
          type: array
        status:
          description: >-
            Where the document stands after this step, in Documenso's words:
            DRAFT, PENDING, COMPLETED, REJECTED.
          type: string
        uri:
          description: Where the document lives.
          type: string
      title: Signing step
      type: object
    SonarWalletsPayloadView:
      description: >-
        Channel wallets: one on-chain transaction touching a watched wallet. The
        leg that came to the watched wallet is the event: its recipient the
        conversation (evm:{chainId}:{address}) and its payer the sender. Amounts
        are decimal strings, since a uint256 does not survive a JSON number.
      properties:
        blockHash:
          description: >-
            The block it was included in. When a reorg displaces that block, a
            delete retracts the event.
          type: string
        blockNumber:
          minimum: 0
          type: integer
        contract:
          description: >-
            The recipient again, when the transaction called it
            (functionSelector is set): the one case where the recipient is code
            rather than a counterparty.
          type: string
        functionSelector:
          description: The function the transaction called, by its 4-byte selector.
          type: string
        internalTransfers:
          description: >-
            The native amounts its contract calls moved, in trace order: a block
            explorer's internal transactions. Each valueWei is in wei, as a
            decimal string. Absent on a chain that is not traced.
          items:
            $ref: '#/components/schemas/SonarValueTransfer'
          type: array
        status:
          description: >-
            True when the transaction succeeded; false when it reverted and
            changed nothing on chain.
          type: boolean
        transfers:
          description: >-
            The token transfers it emitted, in log order, every leg (ERC-20,
            ERC-721, and ERC-1155 with a batch as one transfer per token id).
            amount is a decimal string: an ERC-20's raw amount in the token's
            own units, an ERC-1155's copies, 1 for an ERC-721. tokenId, also a
            decimal string, is on every ERC-721 and ERC-1155 leg and on no
            ERC-20 one.
          items:
            $ref: '#/components/schemas/SonarTokenTransfer'
          type: array
        txHash:
          description: The transaction's hash.
          type: string
        valueWei:
          description: >-
            The native amount the transaction itself moved, in wei, as a decimal
            string.
          type: string
      title: Transaction
      type: object
    SonarWebhookPayloadView:
      description: >-
        Channel webhook: one delivery to the organization's webhook, as it was
        sent. The webhook is the event's conversation, named for what it
        receives. A delivery names nobody Sonar can vouch for, so it has no
        sender: who it is about is the body's to say.
      properties:
        body:
          additionalProperties: {}
          description: >-
            What was posted, as sent: a JSON object as it was, a form as an
            object of its fields, anything else as {body: ...}. Its fields are
            whatever the sender put in them; the webhook's name and description
            say what it receives. The order of an object's keys is not kept.
          type: object
        diff:
          additionalProperties: {}
          description: >-
            On a new version of a record (action edit): what its body changed
            since the version before, in the body's own shape. A field that
            moved is {old, new}; an object holds the fields of it that moved.
            The body beside it is still whole.
          type: object
        record:
          description: >-
            The value of the webhook's record id field, when the body states it:
            the record this delivery is a version of.
          type: string
        request:
          $ref: '#/components/schemas/SonarWebhookRequest'
          description: >-
            How the delivery came, never who sent it: no IP address is kept. via
            is signed (it carried a valid signature made with the webhook's
            secret) or unsigned (admitted on the allowed site its Origin or
            Referer names, which any script can set); an older delivery may say
            browser, which is unsigned. page is the Referer, query string and
            all, which is where a campaign's utm_ tags are.
      title: Webhook delivery
      type: object
    SonarEventContactView:
      properties:
        id:
          $ref: '#/components/schemas/UuidUUID'
        matchedBy:
          type: string
        name:
          type: string
        orgs:
          items:
            $ref: '#/components/schemas/SonarRefView'
          type: array
        status:
          type: string
        userId:
          $ref: '#/components/schemas/UuidUUID'
      type: object
    SonarSenderProfileView:
      properties:
        bio:
          type: string
        title:
          type: string
      type: object
    SonarSendError:
      properties:
        at:
          description: When the attempt failed.
          format: date-time
          type: string
        error:
          description: Why it failed.
          type: string
      type: object
    SonarThreadRefView:
      properties:
        id:
          $ref: '#/components/schemas/UuidUUID'
        title:
          type: string
      type: object
    SonarTelegramPersonView:
      properties:
        address:
          description: Their Telegram user id, as a sender's address is.
          type: string
        contact:
          $ref: '#/components/schemas/SonarEventContactView'
          description: >-
            Them as the address book knows them as the event is read: a contact,
            or status unknown when no contact holds them. Absent for somebody
            the payload names by no address.
        name:
          type: string
        username:
          description: Their @username, with the @.
          type: string
      type: object
    SonarMedia:
      properties:
        description:
          type: string
        mime:
          type: string
        name:
          type: string
        text:
          type: string
      type: object
    SonarTelegramTopic:
      properties:
        id:
          type: integer
        title:
          type: string
      type: object
    SonarSlackPersonView:
      properties:
        address:
          description: Their Slack user id, as a sender's address is.
          type: string
        contact:
          $ref: '#/components/schemas/SonarEventContactView'
          description: >-
            Them as the address book knows them as the event is read: a contact,
            or status unknown when no contact holds them. Absent for somebody
            the payload names by no address.
        email:
          description: Their profile email, when the app may read it.
          type: string
        name:
          type: string
      type: object
    SonarPayloadPersonView:
      properties:
        address:
          description: Their email.
          type: string
        contact:
          $ref: '#/components/schemas/SonarEventContactView'
          description: >-
            Them as the address book knows them as the event is read: a contact,
            or status unknown when no contact holds them. Absent for somebody
            the payload names by no address.
        name:
          description: The name the provider showed, when it showed one.
          type: string
      type: object
    SonarCalendarAttendeeView:
      properties:
        address:
          description: Their email.
          type: string
        contact:
          $ref: '#/components/schemas/SonarEventContactView'
          description: >-
            Them as the address book knows them as the event is read: a contact,
            or status unknown when no contact holds them. Absent for somebody
            the payload names by no address.
        name:
          type: string
        status:
          description: >-
            Their answer, as Google spells it: accepted, declined, tentative,
            needsAction.
          type: string
      type: object
    SonarCalendarDiff:
      properties:
        attendees:
          items:
            $ref: '#/components/schemas/SonarAttendeeMove'
          type: array
        description:
          $ref: '#/components/schemas/SonarMoved'
        end:
          $ref: '#/components/schemas/SonarMoved'
        location:
          $ref: '#/components/schemas/SonarMoved'
        meetingLink:
          $ref: '#/components/schemas/SonarMoved'
        originalStart:
          $ref: '#/components/schemas/SonarMoved'
        recurrence:
          items:
            $ref: '#/components/schemas/SonarMoved'
          type: array
        recurringEventId:
          $ref: '#/components/schemas/SonarMoved'
        start:
          $ref: '#/components/schemas/SonarMoved'
        status:
          $ref: '#/components/schemas/SonarMoved'
        summary:
          $ref: '#/components/schemas/SonarMoved'
      type: object
    SonarDriveShare:
      properties:
        address:
          type: string
        role:
          $ref: '#/components/schemas/SonarDriveShareRole'
      type: object
    SonarMeetingAttendeeView:
      properties:
        address:
          description: Their email.
          type: string
        attended:
          description: >-
            Fireflies only: whether they were in the room. Left out where
            Fireflies did not report it, which does not mean they missed it.
          type: boolean
        contact:
          $ref: '#/components/schemas/SonarEventContactView'
          description: >-
            Them as the address book knows them as the event is read: a contact,
            or status unknown when no contact holds them. Absent for somebody
            the payload names by no address.
        name:
          type: string
      type: object
    SonarTranscriptLine:
      properties:
        name:
          type: string
        start:
          type: number
        text:
          type: string
      type: object
    SonarDocumensoRecipientView:
      properties:
        address:
          description: Their email.
          type: string
        contact:
          $ref: '#/components/schemas/SonarEventContactView'
          description: >-
            Them as the address book knows them as the event is read: a contact,
            or status unknown when no contact holds them. Absent for somebody
            the payload names by no address.
        name:
          type: string
        role:
          description: 'Documenso''s: SIGNER, APPROVER, CC, VIEWER.'
          type: string
        status:
          description: 'Documenso''s signing status: NOT_OPENED, OPENED, SIGNED, REJECTED.'
          type: string
      type: object
    SonarValueTransfer:
      properties:
        from:
          type: string
        to:
          type: string
        valueWei:
          type: string
      type: object
    SonarTokenTransfer:
      properties:
        amount:
          type: string
        from:
          type: string
        to:
          type: string
        token:
          type: string
        tokenId:
          type: string
      type: object
    SonarWebhookRequest:
      properties:
        contentType:
          type: string
        language:
          type: string
        origin:
          type: string
        page:
          type: string
        userAgent:
          type: string
        via:
          type: string
      type: object
    SonarAttendeeMove:
      properties:
        address:
          type: string
        name:
          $ref: '#/components/schemas/SonarMoved'
        new:
          $ref: '#/components/schemas/SonarCalendarAttendee'
        old:
          $ref: '#/components/schemas/SonarCalendarAttendee'
        status:
          $ref: '#/components/schemas/SonarMoved'
      type: object
    SonarMoved:
      properties:
        new:
          type: string
        old:
          type: string
      type: object
    SonarDriveShareRole:
      enum:
        - reader
        - commenter
        - writer
      type: string
    SonarCalendarAttendee:
      properties:
        address:
          type: string
        name:
          type: string
        status:
          type: string
      type: object
  securitySchemes:
    bearerAuth:
      description: A Turtle API key (sk_...) as a bearer token.
      scheme: bearer
      type: http
    apiKeyAuth:
      description: A Turtle API key (sk_...).
      in: header
      name: X-API-Key
      type: apiKey

````

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