> ## Documentation Index
> Fetch the complete documentation index at: https://arizeai-433a7140.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Create a trace note

> Add a note annotation to a trace. By default each call appends a new note with an auto-generated UUIDv4 identifier, so multiple notes accumulate on the same trace. Callers may supply a non-empty `identifier` to upsert on (trace_id, name='note', identifier) — repeated calls with the same identifier overwrite the existing note, matching the semantics of structured annotations.



## OpenAPI

````yaml post /v1/trace_notes
openapi: 3.1.0
info:
  title: Arize-Phoenix REST API
  description: Schema for Arize-Phoenix REST API
  version: '1.0'
servers: []
security: []
paths:
  /v1/trace_notes:
    post:
      tags:
        - traces
      summary: Create a trace note
      description: >-
        Add a note annotation to a trace. By default each call appends a new
        note with an auto-generated UUIDv4 identifier, so multiple notes
        accumulate on the same trace. Callers may supply a non-empty
        `identifier` to upsert on (trace_id, name='note', identifier) — repeated
        calls with the same identifier overwrite the existing note, matching the
        semantics of structured annotations.
      operationId: createTraceNote
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateTraceNoteRequestBody'
        required: true
      responses:
        '200':
          description: Trace note created successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreateTraceNoteResponseBody'
        '403':
          description: Forbidden
          content:
            text/plain:
              schema:
                type: string
        '404':
          description: Trace not found
          content:
            text/plain:
              schema:
                type: string
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    CreateTraceNoteRequestBody:
      properties:
        data:
          $ref: '#/components/schemas/TraceNoteData'
      type: object
      required:
        - data
      title: CreateTraceNoteRequestBody
    CreateTraceNoteResponseBody:
      properties:
        data:
          $ref: '#/components/schemas/InsertedTraceAnnotation'
      type: object
      required:
        - data
      title: CreateTraceNoteResponseBody
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    TraceNoteData:
      properties:
        trace_id:
          type: string
          minLength: 1
          title: Trace Id
          description: OpenTelemetry Trace ID (hex format w/o 0x prefix)
        note:
          type: string
          minLength: 1
          title: Note
          description: The note text to add to the trace
        identifier:
          type: string
          title: Identifier
          description: >-
            Optional caller-supplied identifier. When non-empty, the note is
            upserted on (trace_id, name='note', identifier) — repeated calls
            with the same identifier overwrite the existing note. When omitted
            or empty, the server stamps a unique 'px-trace-note:<uuid>'
            identifier so each call appends a new note.
          default: ''
      type: object
      required:
        - trace_id
        - note
      title: TraceNoteData
    InsertedTraceAnnotation:
      properties:
        id:
          type: string
          title: Id
          description: The ID of the inserted trace annotation
      type: object
      required:
        - id
      title: InsertedTraceAnnotation
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError

````