LangWatch · Capability

LangWatch Traces API

Search, retrieve, and share LLM application traces ingested via OpenTelemetry. Self-contained Naftiko capability covering one LangWatch business surface.

LangWatch Traces API is a Naftiko capability published by LangWatch, one of 20 capabilities the APIs.io network indexes for this provider. It bundles 6 operations across the POST and GET methods rooted at /v1/api.

The capability includes 2 read-only operations and 4 state-changing operations. Lead operation: Search traces with filters and pagination. Can be deployed as a REST endpoint, MCP tool, or Agent Skill via Naftiko.

Tagged areas include LangWatch, Traces, and Observability.

Run with Naftiko LangWatchTracesObservability

What You Can Do

POST
Searchtraces — Search traces with filters and pagination.
/v1/api/traces/search
GET
Gettrace — Retrieve a single trace by id.
/v1/api/traces/{traceId}
POST
Searchtraceslegacy — Legacy trace search endpoint.
/v1/api/trace/search
GET
Gettracelegacy — Legacy single-trace endpoint.
/v1/api/trace/{id}
POST
Sharetrace — Create a public share link for a trace.
/v1/api/trace/{id}/share
POST
Unsharetrace — Revoke a trace''s public share link.
/v1/api/trace/{id}/unshare

MCP Tools

langwatch-searchTraces

Search traces with filters and pagination.

langwatch-getTrace

Retrieve a single trace by id.

read-only idempotent
langwatch-searchTracesLegacy

Legacy trace search endpoint.

langwatch-getTraceLegacy

Legacy single-trace endpoint.

read-only idempotent
langwatch-shareTrace

Create a public share link for a trace.

langwatch-unshareTrace

Revoke a trace''s public share link.

Capability Spec

traces.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: LangWatch Traces API
  description: 'Search, retrieve, and share LLM application traces ingested via OpenTelemetry. Self-contained Naftiko capability covering one LangWatch business surface.'
  tags:
  - LangWatch
  - Traces
  - Observability
  created: '2026-05-25'
  modified: '2026-05-25'
binds:
- namespace: env
  keys:
    LANGWATCH_API_KEY: LANGWATCH_API_KEY
capability:
  consumes:
  - type: http
    namespace: traces
    baseUri: https://app.langwatch.ai
    description: Search, retrieve, and share LLM application traces ingested via OpenTelemetry.
    resources:
    - name: api-traces-search
      path: /api/traces/search
      operations:
      - name: searchTraces
        method: POST
        description: Search traces with filters and pagination.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    - name: api-traces-traceid
      path: /api/traces/{traceId}
      operations:
      - name: getTrace
        method: GET
        description: Retrieve a single trace by id.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: traceId
          in: path
          type: string
          required: true
    - name: api-trace-search
      path: /api/trace/search
      operations:
      - name: searchTracesLegacy
        method: POST
        description: Legacy trace search endpoint.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    - name: api-trace-id
      path: /api/trace/{id}
      operations:
      - name: getTraceLegacy
        method: GET
        description: Legacy single-trace endpoint.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          required: true
    - name: api-trace-id-share
      path: /api/trace/{id}/share
      operations:
      - name: shareTrace
        method: POST
        description: Create a public share link for a trace.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    - name: api-trace-id-unshare
      path: /api/trace/{id}/unshare
      operations:
      - name: unshareTrace
        method: POST
        description: Revoke a trace''s public share link.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    authentication:
      type: bearer
      value: '{{env.LANGWATCH_API_KEY}}'
      placement: header
  exposes:
  - type: rest
    namespace: traces-rest
    port: 8080
    description: REST adapter for LangWatch Traces API.
    resources:
    - path: /v1/api/traces/search
      name: searchtraces-resource
      description: REST surface for searchTraces.
      operations:
      - method: POST
        name: searchTraces
        description: Search traces with filters and pagination.
        call: traces.searchTraces
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/traces/{traceId}
      name: gettrace-resource
      description: REST surface for getTrace.
      operations:
      - method: GET
        name: getTrace
        description: Retrieve a single trace by id.
        call: traces.getTrace
        with:
          traceId: rest.path.traceId
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/trace/search
      name: searchtraceslegacy-resource
      description: REST surface for searchTracesLegacy.
      operations:
      - method: POST
        name: searchTracesLegacy
        description: Legacy trace search endpoint.
        call: traces.searchTracesLegacy
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/trace/{id}
      name: gettracelegacy-resource
      description: REST surface for getTraceLegacy.
      operations:
      - method: GET
        name: getTraceLegacy
        description: Legacy single-trace endpoint.
        call: traces.getTraceLegacy
        with:
          id: rest.path.id
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/trace/{id}/share
      name: sharetrace-resource
      description: REST surface for shareTrace.
      operations:
      - method: POST
        name: shareTrace
        description: Create a public share link for a trace.
        call: traces.shareTrace
        with:
          id: rest.path.id
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/trace/{id}/unshare
      name: unsharetrace-resource
      description: REST surface for unshareTrace.
      operations:
      - method: POST
        name: unshareTrace
        description: Revoke a trace''s public share link.
        call: traces.unshareTrace
        with:
          id: rest.path.id
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: traces-mcp
    port: 9090
    transport: http
    description: MCP adapter for LangWatch Traces API. One tool per consumed operation.
    tools:
    - name: langwatch-searchTraces
      description: Search traces with filters and pagination.
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: traces.searchTraces
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: langwatch-getTrace
      description: Retrieve a single trace by id.
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: traces.getTrace
      with:
        traceId: tools.traceId
      outputParameters:
      - type: object
        mapping: $.
    - name: langwatch-searchTracesLegacy
      description: Legacy trace search endpoint.
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: traces.searchTracesLegacy
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: langwatch-getTraceLegacy
      description: Legacy single-trace endpoint.
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: traces.getTraceLegacy
      with:
        id: tools.id
      outputParameters:
      - type: object
        mapping: $.
    - name: langwatch-shareTrace
      description: Create a public share link for a trace.
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: traces.shareTrace
      with:
        id: tools.id
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: langwatch-unshareTrace
      description: Revoke a trace''s public share link.
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: traces.unshareTrace
      with:
        id: tools.id
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.