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

# Create a note

> Creates a new note within the specified workspace (team_id).
The note object is provided in the request body, including the note title, content,
and any other relevant details (optional fields include transcript and user notes).
Upon successful creation, the new note is returned in the response.
Initial transcript entries with the same client_chunk_id and exact content/source are
collapsed in their original order; conflicting payloads for the same ID reject the
entire request with 409 before creating the note. Entries without an ID retain legacy
behavior. A client_chunk_id does not make note creation idempotent.




## OpenAPI

````yaml POST /{team_id}/notes
openapi: 3.0.0
info:
  description: Superthread Public API Specification
  version: '0.1'
  title: Public API
  contact:
    email: engineering@superthread.com
servers:
  - url: https://api.superthread.com/v1
security:
  - BearerAuth: []
tags:
  - name: AI
    description: >-
      [Service: AI]. Handles AI-powered functionalities, such as
      recommendations, predictions, and automation features.
  - name: Activity
    description: >-
      [Service: Activity] Manages all activities; creating notifications and
      digests
  - name: Auth
    description: >-
      [Service: Auth] Responsible for user authentication, authorization, and
      session management.
  - name: Boards
    description: >-
      [Service: Boards] Manages core collaboration features such as "boards",
      "cards", "lists", "sprints", "epics".
  - name: Comments
    description: >-
      [Service: Comments] Handles the creation, editing, and management of
      comments across various entities.
  - name: Customers
    description: >-
      [Service: Customers] Manages customers, customer tiers and statuses,
      customer settings, and customer requests on cards and projects. Requires
      the `customers` team feature; not available to workspace guests.
  - name: Favourites
    description: >-
      [Service: Favourites] Responsible for favouriting resources in the system
      for quick access.
  - name: Files
    description: >-
      [Service: Files] Manages file uploads, storage, and retrieval for user and
      project resources.
  - name: Importer
    description: >-
      [Service: Importer] Handles data import operations from external sources
      into the platform.
  - name: Integrations
    description: >-
      [Service: Integrations] Facilitates connectivity with external tools and
      services, enabling smooth integration with third-party platforms and APIs.
  - name: Pages
    description: >-
      [Service: Pages] Manages the creation and organization of both public and
      private pages, supporting structured content and navigation and
      collaboration.
  - name: Projects
    description: '[Service: Projects] Handles all project related tasks.'
  - name: Reports
    description: >-
      [Service: Reports] Generates and manages analytical reports and insights
      for users and projects.
  - name: Search
    description: >-
      [Service: Search] Provides search functionalities, including indexing and
      retrieval of platform data.
  - name: TimeTracking
    description: >
      [Service: TimeTracking] Manages time entries, active timers, time
      categories, job roles, billing rates, and audit/lock for time-tracking
      workflows.


      A member's billing rate is their own rate when one is set, otherwise their
      job role's rate, otherwise the workspace default rate. Each time entry
      keeps the rate and job role it was created with.
  - name: Resourcing
    description: >-
      [Service: TimeTracking] Plans people's capacity: working patterns, time
      off, closures, public holidays, allocations of hours to projects, and
      retainer budgets. Not available to workspace guests.
  - name: Views
    description: >-
      [Feature] Provides tools to create and customize views, enabling users to
      organize and visualize their data according to their preferences and
      workflows.
  - name: OAuth2
    description: >-
      [Feature] Supports OAuth2 integration for seamless user authentication and
      authorization, ensuring secure access to external APIs and services.
  - name: Sprints
    description: >-
      [Feature] Facilitates sprint management within agile workflows, including
      planning, progress tracking, and reporting.
  - name: Cards
    description: >-
      [Feature] A Card is the core concept used in the system to describe an
      individual task or work item. They are used across Boards, Sprints, and
      Roadmaps. Cards include features like descriptions, checklists, comments,
      priorities, tags and more.
  - name: Checklists
    description: >-
      [Feature] A Checklist is a list of items that need to be completed. It is
      used to track progress on a card.
  - name: Lists
    description: >-
      [Feature] Represents a collection of tasks or items grouped within
      different contexts in the system. Lists (externally referenced as
      "statuses") are utilized across various entities such as boards, sprints,
      and roadmaps.
  - name: Notes
    description: >-
      [Feature] Enables users to create, edit, and organize notes, supporting
      rich text, attachments, transcriptions and AI enhancements.
  - name: Tags
    description: >-
      [Feature] Groups endpoints related to the creation, retrieval, updating,
      deletion, and merging of tags within teams (workspaces).
  - name: Agents
    description: >-
      [Feature] Manages agents and runs. Provides CRUD operations for agents,
      launching cloud agents, monitoring agent status, retrieving conversations,
      and sending follow-ups.
  - name: PublishedAgents
    description: >-
      [Feature] [Service: AI] External API for agents published to websites,
      apps and custom clients. Authenticated with scoped chat sessions
      (PublishedAgentSession) or host app assertions (AgentAppAssertion), never
      with workspace member credentials. Management routes for publications and
      app registrations live under the Agents tag. Base URL: these paths are
      absolute from the API origin. The real URL is
      `https://api.superthread.com/public/agents/v1/...`, and the spec's
      `basePath` `/v1` does not apply, the same as `/public/forms` (Swagger 2.0
      has no per-path base). Generated clients default to `.../v1` and would
      call `/v1/public/agents/v1/...`, so construct them with the API origin as
      the base: in TypeScript `new Api({ baseURL: 'https://api.superthread.com'
      })`, and in Go a transport whose base path is `/`. The www forms portal
      does the same, using an axios client whose `baseURL` is the API origin.
paths:
  /{team_id}/notes:
    parameters:
      - $ref: '#/components/parameters/path_team_id'
    post:
      tags:
        - Pages
      summary: Create a new note
      description: >
        Creates a new note within the specified workspace (team_id).

        The note object is provided in the request body, including the note
        title, content,

        and any other relevant details (optional fields include transcript and
        user notes).

        Upon successful creation, the new note is returned in the response.

        Initial transcript entries with the same client_chunk_id and exact
        content/source are

        collapsed in their original order; conflicting payloads for the same ID
        reject the

        entire request with 409 before creating the note. Entries without an ID
        retain legacy

        behavior. A client_chunk_id does not make note creation idempotent.
      operationId: createNote
      parameters:
        - in: header
          name: Idempotency-Key
          required: false
          description: |
            Optional id for the new note, so your app can open the note before
            the request finishes. Retrying with the same key returns the note
            already created instead of making another. The server generates an
            id when omitted. Must be a lowercase version 7 UUID; any other
            value, or the id of an existing or deleted note, is rejected with a
            400.
          schema:
            type: string
            format: uuid
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateNoteRequest'
        description: Note object that needs to be created
        required: true
      responses:
        '200':
          description: >-
            The note was already created with this Idempotency-Key and is
            returned.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreateNoteResponse'
        '201':
          description: note created
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreateNoteResponse'
        '409':
          description: >-
            A client_chunk_id was repeated with different content or source; no
            note was created.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    $ref: '#/components/schemas/Error'
        default:
          description: client error
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    $ref: '#/components/schemas/Error'
components:
  parameters:
    path_team_id:
      in: path
      name: team_id
      description: >-
        Team ID is an alphanumerical string that identifies a Team. This is
        externally referred to as a "Workspace".
      required: true
      schema:
        type: string
  schemas:
    CreateNoteRequest:
      type: object
      properties:
        auto_redact_pii:
          type: boolean
          description: >-
            Per-note PII redaction selection. Omission or null preserves
            unredacted behavior for older clients and defaults to false;
            supported clients explicitly initialize this from the personal
            transcription_auto_redact_pii setting.
          nullable: true
        title:
          type: string
          example: Team Note
          nullable: false
        transcript:
          type: string
          nullable: true
        transcripts:
          type: array
          items:
            $ref: '#/components/schemas/NoteTranscriptBrief'
        user_notes:
          type: string
          maxLength: 102400
          nullable: true
        is_public:
          type: boolean
          nullable: true
        attendees:
          type: array
          description: >
            List of initial attendees to add.

            Assumes all fields of MeetingParticipant are set (Meaning all
            participants are Superthread members).
          maxItems: 100
          items:
            $ref: '#/components/schemas/MeetingParticipant'
        metadata_date:
          $ref: '#/components/schemas/STimePtr'
        metadata_time:
          $ref: '#/components/schemas/STimePtr'
        google_calendar_event:
          $ref: '#/components/schemas/GoogleCalendarEvent'
        microsoft_calendar_event:
          $ref: '#/components/schemas/MicrosoftCalendarUserNotesEvent'
    CreateNoteResponse:
      type: object
      properties:
        note:
          $ref: '#/components/schemas/Note'
    Error:
      type: object
      properties:
        id:
          type: string
          example: err5f744ab
        code:
          type: integer
          format: int32
          example: 403
        sec:
          $ref: '#/components/schemas/SuperthreadErrorCode'
        message:
          type: string
          example: You do not have access to this resource
          description: A user-friendly error message
        date:
          $ref: '#/components/schemas/STime'
    NoteTranscriptBrief:
      type: object
      properties:
        client_chunk_id:
          type: string
          format: uuid
          description: >
            Optional client-generated chunk identity, retained in the persisted
            and response transcript.

            Persist the ID, content and source before the first send and reuse
            that envelope on retries.

            Fully keyed transcript-only updates deduplicate exact content/source
            per note and reject

            mismatched reuse with 409. Omission retains legacy append behavior.
        content:
          type: string
          example: This is a transcript
        source:
          $ref: '#/components/schemas/NoteTranscriptSource'
    MeetingParticipant:
      type: object
      x-omitempty: false
      properties:
        user_id:
          type: string
          description: >-
            Internal User ID if the email of the meeting attendee belongs to a
            Superthread user in the workspace.
          example: uDsu0j19
          x-omitempty: false
          nullable: true
        email:
          type: string
          example: username@example.com
          description: Email address of the participant
        name:
          type: string
          example: John Doe
          description: The display name of the participant
      nullable: true
    STimePtr:
      type: integer
      format: int64
      example: 1608742037016
      description: unix timestamp in seconds
      x-go-type:
        type: STime
        import:
          package: github.com/superthread-com/common/pkg/types
        hints:
          noValidation: true
          kind: primitive
      nullable: true
    GoogleCalendarEvent:
      type: object
      properties:
        id:
          type: string
          description: Unique identifier for the event.
        recurring_event_id:
          type: string
          description: Identifier for the recurring event series.
        title:
          type: string
          description: The event's title or name (Summary in Google Calendar).
        description:
          type: string
          description: Detailed description of the event.
        meeting_links:
          type: array
          description: A list of meeting links with their respective providers.
          items:
            $ref: '#/components/schemas/MeetingLink'
        attendees:
          type: array
          description: List of event attendees.
          items:
            $ref: '#/components/schemas/GoogleCalendarEventAttendee'
        start:
          $ref: '#/components/schemas/STimePtr'
        end:
          $ref: '#/components/schemas/STimePtr'
        updated:
          $ref: '#/components/schemas/STimePtr'
        location:
          type: string
          description: Free-form text for the event location.
          x-omitempty: true
    MicrosoftCalendarUserNotesEvent:
      type: object
      description: >
        Normalized meeting data for Notes. IDs must be stable across Microsoft

        sync and updates; consumers qualify them by provider, account and
        calendar.

        Note create/update must re-fetch the selected event through this user's

        installation and persist only the server-verified event, not
        caller-supplied

        meeting contents.
      properties:
        installation_id:
          type: string
          description: >-
            User-scoped Notes installation used to verify this event on note
            create/update.
        id:
          type: string
          description: Immutable provider event ID for this occurrence.
        recurring_event_id:
          type: string
          description: Series master ID when this event is an occurrence.
        provider_account_id:
          type: string
        provider_tenant_id:
          type: string
          description: Customer tenant identity for an organizational account.
        calendar_id:
          type: string
        title:
          type: string
        description:
          type: string
        meeting_links:
          type: array
          items:
            $ref: '#/components/schemas/MeetingLink'
        attendees:
          type: array
          items:
            $ref: '#/components/schemas/MicrosoftCalendarUserNotesEventAttendee'
        start:
          $ref: '#/components/schemas/STimePtr'
        end:
          $ref: '#/components/schemas/STimePtr'
        updated:
          $ref: '#/components/schemas/STimePtr'
        location:
          type: string
    Note:
      type: object
      properties:
        auto_redact_pii:
          type: boolean
          x-omitempty: false
          description: >-
            Whether personally identifiable information is redacted during
            transcription for this note. Existing notes without a stored
            selection report false.
        id:
          type: string
          example: ''
        revision:
          type: integer
          format: int64
          minimum: 0
          x-omitempty: false
          description: >-
            Whole-note datastore revision. Supply as expected_revision to
            protect raw and enhanced edits against concurrent changes.
            Successful mutations return the new revision; pure keyed transcript
            replay leaves it unchanged. Existing legacy notes without a stored
            revision report zero.
        title:
          type: string
          example: Team Note
        transcript:
          type: string
        transcripts:
          type: array
          items:
            $ref: '#/components/schemas/NoteTranscript'
        user_notes:
          type: string
          maxLength: 102400
        ai_notes:
          type: array
          items:
            $ref: '#/components/schemas/AIEnhancedNote'
        user:
          $ref: '#/components/schemas/Actor'
        user_updated:
          $ref: '#/components/schemas/Actor'
        team_id:
          type: string
          example: tdsu0j19
        last_note_template_id:
          type: string
          description: ID of the last note template used for this note
        is_public:
          type: boolean
          example: false
          x-omitempty: false
        public_settings:
          $ref: '#/components/schemas/PublicNoteSettings'
        time_created:
          $ref: '#/components/schemas/STime'
        time_updated:
          $ref: '#/components/schemas/STime'
        meeting_metadata:
          $ref: '#/components/schemas/MeetingMetadata'
        meeting_date:
          $ref: '#/components/schemas/STimePtr'
        meeting_time:
          $ref: '#/components/schemas/STimePtr'
        meeting_organizer:
          $ref: '#/components/schemas/MeetingParticipant'
        meeting_attendees:
          type: array
          x-omitempty: false
          items:
            $ref: '#/components/schemas/MeetingParticipant'
          nullable: true
    SuperthreadErrorCode:
      type: string
      description: |
        Superthread Error Code (`SEC`): A structured error code.
        Format: `SEC:{ServiceID}-{InternalErrorCode}`.


          - `SEC`: Prefix for all structured error codes.
          - `ServiceID`: First 3 characters identify the service, '000' is reserved for generic errors.
          - `InternalErrorCode`: the next (last) 5 characters define the specific error.
      pattern: ^SEC:\d{3}-\d{5}$
      example: SEC:000-00014
    STime:
      type: integer
      format: int64
      example: 1608742037016
      description: unix timestamp in seconds
      x-go-type:
        type: STime
        import:
          package: github.com/superthread-com/common/pkg/types
        hints:
          noValidation: true
          kind: primitive
    NoteTranscriptSource:
      type: string
      enum:
        - author
        - other
    MeetingLink:
      type: object
      properties:
        provider:
          type: string
          description: >-
            The provider for the meeting link (e.g., google, zoom, teams,
            other).
          enum:
            - google
            - zoom
            - teams
            - other
        link:
          type: string
          description: The meeting link.
    GoogleCalendarEventAttendee:
      type: object
      properties:
        email:
          type: string
          description: The email of the attendee.
          x-omitempty: false
          nullable: true
        name:
          type: string
          description: The name of the attendee.
          x-omitempty: false
          nullable: true
        organizer:
          type: boolean
          description: Set to true when the attendee is the event organizer.
          x-omitempty: false
          nullable: true
    MicrosoftCalendarUserNotesEventAttendee:
      type: object
      properties:
        email:
          type: string
          x-omitempty: false
          nullable: true
        name:
          type: string
          x-omitempty: false
          nullable: true
        organizer:
          type: boolean
          x-omitempty: false
          nullable: true
    NoteTranscript:
      allOf:
        - $ref: '#/components/schemas/NoteTranscriptBrief'
      type: object
      properties:
        id:
          type: string
          example: '43'
        time_created:
          $ref: '#/components/schemas/STime'
        time_updated:
          $ref: '#/components/schemas/STime'
    AIEnhancedNote:
      type: object
      properties:
        id:
          type: string
          example: 866a3b86-4651-482c-bb69-61921ea4548c
        note_template_id:
          type: string
          example: 1da3b68c-3a82-495c-a6c9-e7a494281a36
        title:
          type: string
          example: Team Note
        content:
          type: string
          maxLength: 102400
        time_updated:
          $ref: '#/components/schemas/STime'
        related_resources:
          type: array
          items:
            $ref: '#/components/schemas/AINoteRelatedResource'
    Actor:
      title: Actor
      type: object
      description: describes a user or robot that created or updated a resource
      properties:
        user_id:
          type: string
          example: uDsu0j19
          x-go-custom-tag: dynamodbav:",omitempty"
        type:
          type: string
          x-go-custom-tag: dynamodbav:",omitempty"
          example: user
          default: user
          enum:
            - user
            - robot
            - system
          nullable: false
        source:
          $ref: '#/components/schemas/ActorSource'
    PublicNoteSettings:
      type: object
      properties:
        url:
          type: string
          example: https://notes.superthread.com/n/1
    MeetingMetadata:
      type: object
      properties:
        id:
          type: string
          description: External ID for the event
        provider:
          type: string
          enum:
            - google
            - microsoft
          description: Calendar provider; absent on existing Google-linked notes.
        provider_account_id:
          type: string
          description: Stable account identity; absent on existing Google-linked notes.
        provider_tenant_id:
          type: string
          description: >-
            Customer tenant identity when available; absent on existing
            Google-linked notes.
        installation_id:
          type: string
          description: >-
            User-scoped Notes installation that supplied the verified event;
            absent on existing Google-linked notes.
        calendar_id:
          type: string
          description: Provider calendar identity; absent on existing Google-linked notes.
        name:
          type: string
          description: Meeting name or event title
        description:
          type: string
          description: Meeting description, or event summary
        links:
          type: array
          description: >-
            List of meeting links (with a provider) where users can join the
            event
          items:
            $ref: '#/components/schemas/MeetingLink'
        location:
          type: string
          description: Location of the event
        start_time:
          $ref: '#/components/schemas/STimePtr'
        end_time:
          $ref: '#/components/schemas/STimePtr'
    AINoteRelatedResource:
      type: object
      properties:
        id:
          type: string
          example: '123'
        type:
          type: string
          enum:
            - card
          example: card
        cosine_similarity:
          type: number
          format: float64
          description: cosine similarity score
          example: 0.8
    ActorSource:
      title: ActorSource
      type: object
      description: describes the source of an actor
      properties:
        type:
          type: string
          example: oauth
          enum:
            - oauth
            - import
            - email
            - agent
        client_id:
          type: string
          x-go-custom-tag: dynamodbav:",omitempty"
          description: client ID if the resource was created via oauth2 app
          example: oczapier
        import_id:
          type: string
          x-go-custom-tag: dynamodbav:",omitempty"
          description: import ID if the resource was created by an import
          example: bf1b9f76-3f95-42fc-bd7f-050b2f5f4197
        agent_id:
          type: string
          x-go-custom-tag: dynamodbav:",omitempty"
          description: agent ID if the resource was created by an agent
          example: bf1b9f76-3f95-42fc-bd7f-050b2f5f4197
        email_addr:
          type: string
          x-go-custom-tag: dynamodbav:",omitempty"
          description: email address if the resource was created via an email
          example: somebody@example.com
        email_verified:
          type: boolean
          x-go-custom-tag: dynamodbav:",omitempty"
          description: whether the email sender was verified
          example: false
        on_behalf_of:
          type: string
          x-go-custom-tag: dynamodbav:",omitempty"
          description: >-
            User ID of the human responsible for this action. For
            trigger-initiated agent actions, this is the trigger creator. For
            mention/chat-initiated actions, this is the user who invoked the
            agent.
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer

````

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