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

# Receive OTLP traces

> OpenTelemetry traces with gen_ai.* attributes, turned into events.



## OpenAPI

````yaml openapi/en/cell.json POST /v1/otel/v1/traces
openapi: 3.1.0
info:
  title: Niadra data API
  version: '1'
  description: >-
    Writing, context, history, objects, identity, privacy and governance of one
    space. Every space has a stable address, with the space and the region in
    its name.
servers:
  - url: https://{space}.{region}.api.niadra.com
    variables:
      space:
        default: acme-prod
        description: The space, which comes in the source key.
      region:
        default: us-east-1
        description: The region of the space, which also comes in the key.
security: []
paths:
  /v1/otel/v1/traces:
    post:
      tags:
        - ingest
      summary: Receive OTLP traces
      description: >-
        OTLP/HTTP traces endpoint. Spans with `gen_ai.*` attributes become
        messages and actions through a versioned mapper with fallbacks, because
        the `gen_ai` semantic conventions still change. There is no standard
        OpenTelemetry attribute for channel, so set `niadra.channel` and the
        customer handle attributes on the span.


        **Authentication.** Source key: `Authorization: Bearer nia_sk_...`.
        Required scope: `track`.
      operationId: otel_traces_v1_otel_v1_traces_post
      responses:
        '200':
          content:
            application/json:
              schema: {}
          description: >-
            The spans after the mapper, as a batch result: accepted, duplicates
            and one error per rejected span.
      security:
        - sourceKey: []
components:
  securitySchemes:
    sourceKey:
      type: http
      scheme: bearer
      description: nia_sk_...

````