Aleph Alpha Traces API

Trace management endpoints. A Trace provides a mechanism similar to OpenTelemetry for tracking the execution flow of a task. It allows you to monitor and analyze the sequence of operations, their timings, and other related metrics. Tracing is essential for performance monitoring and debugging.

GitHub OpenAPI
Business capability
Observability Management BC-4220.20

Operations 3

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

POST /projects/{project_id}/traces Start a trace for a project · Create Trace #
Ask an LLM
“How do I begin tracing the execution of a task in a project?”
“Are all spans in a trace required to share the same trace id?”
Tell an agent
Create a new trace in project {project_id}.
Start task execution tracing for project {project_id}.
GET /projects/{project_id}/traces List traces in a project · Get Many Traces #
Ask an LLM
“How do I see all the traces recorded in a project?”
“Can I get only the root spans of traces in a project?”
Tell an agent
List traces in project {project_id}.
Show only root spans of traces in project {project_id}.
GET /projects/{project_id}/traces/{trace_id} Get a trace · Get Trace #
Ask an LLM
“How do I fetch one trace by its id?”
“What spans does a specific trace contain?”
Tell an agent
Get trace {trace_id} in project {project_id}.
Show the spans of trace {trace_id} in project {project_id}.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/aleph-alpha:aleph-alpha-traces-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

aleph-alpha-traces-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: PhariaStudio Traces API
  version: 0.1.0
  description: Trace management endpoints. A Trace provides a mechanism similar to OpenTelemetry for tracking the execution flow of a task. It allows you to monitor and analyze the sequence of operations, their timings, and other related metrics. Tracing is essential for performance monitoring and debugging.
servers:
- url: '{host}/v1/studio'
  variables:
    host:
      default: https://api.pharia.example.com
security:
- BearerAuth: []
tags:
- name: Traces
  description: Trace management endpoints. A Trace provides a mechanism similar to OpenTelemetry for tracking the execution flow of a task. It allows you to monitor and analyze the sequence of operations, their timings, and other related metrics. Tracing is essential for performance monitoring and debugging.
paths:
  /projects/{project_id}/traces:
    post:
      tags:
      - Traces
      summary: Create Trace
      description: Create a new `Trace`. All submitted spans must have the same trace id.
      operationId: create_trace_projects__project_id__traces_post
      parameters:
      - name: project_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Project Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SingularTraceSpanList'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: string
                format: uuid
                title: Response Create Trace Projects  Project Id  Traces Post
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    get:
      tags:
      - Traces
      summary: Get Many Traces
      description: List paginated `Traces`.
      operationId: get_many_traces_projects__project_id__traces_get
      parameters:
      - name: project_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Project Id
      - name: page
        in: query
        required: false
        schema:
          type: integer
          exclusiveMinimum: 0
          description: The page number to retrieve. Starts at 1.
          default: 1
          title: Page
        description: The page number to retrieve. Starts at 1.
      - name: size
        in: query
        required: false
        schema:
          type: integer
          maximum: 100
          exclusiveMinimum: 0
          description: The number of items per page.
          default: 25
          title: Size
        description: The number of items per page.
      - name: only_root
        in: query
        required: false
        schema:
          type: boolean
          description: Return only the root span instead of all spans
          default: false
          title: Only Root
        description: Return only the root span instead of all spans
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PagedResponse_TraceResponse_'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /projects/{project_id}/traces/{trace_id}:
    get:
      tags:
      - Traces
      summary: Get Trace
      description: Get a `Trace` by its id.
      operationId: get_trace_projects__project_id__traces__trace_id__get
      parameters:
      - name: project_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Project Id
      - name: trace_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Trace Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TraceResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    Event:
      properties:
        name:
          type: string
          title: Name
        message:
          type: string
          title: Message
        body:
          $ref: '#/components/schemas/JsonSerializable-Input'
        timestamp:
          type: string
          format: date-time
          title: Timestamp
      type: object
      required:
      - name
      - message
      - body
      title: Event
    SpanResponse-Output:
      properties:
        created_at:
          type: string
          format: date-time
          title: Created At
          description: The timestamp when this resource was created in UTC.
        created_by:
          type: string
          title: Created By
          description: The ID of the user that created the resource.
          examples:
          - '12345'
        id:
          type: string
          format: uuid
          title: Id
          description: The unique id of the span.
          examples:
          - 123e4567-e89b-12d3-a456-426614174000
        parent_id:
          anyOf:
          - type: string
            format: uuid
          - type: 'null'
          title: Parent Id
          description: The unique id of the parent element of the span.
          examples:
          - 123e4567-e89b-12d3-a456-426614174000
        name:
          type: string
          title: Name
          description: The name of the span.
          examples:
          - Span
        start_time:
          type: string
          format: date-time
          title: Start Time
          description: The timestamp when this span was started.
          examples:
          - '2024-01-01 12:34:56.123456+00:00'
        end_time:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: End Time
          description: The timestamp when this span was ended.
          examples:
          - '2024-01-01 12:34:56.123456+00:00'
        status:
          $ref: '#/components/schemas/SpanStatus'
          description: The status code of the span.
          examples:
          - OK
        type:
          $ref: '#/components/schemas/SpanType'
          description: The type of the span.
          examples:
          - TaskSpan
        attributes:
          additionalProperties:
            $ref: '#/components/schemas/JsonSerializable-Output'
          type: object
          title: Attributes
          description: The `Attributes` of the `Span`.
          examples:
          - key: value
      type: object
      required:
      - created_at
      - created_by
      - id
      - parent_id
      - name
      - start_time
      - end_time
      - status
      - type
      - attributes
      title: SpanResponse
    JsonSerializable-Input:
      anyOf:
      - type: integer
      - type: number
      - type: string
      - type: boolean
      - items:
          $ref: '#/components/schemas/JsonSerializable-Input'
        type: array
      - additionalProperties:
          $ref: '#/components/schemas/JsonSerializable-Input'
        type: object
      - type: 'null'
    SpanType:
      type: string
      enum:
      - SPAN
      - TASK_SPAN
      title: SpanType
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    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
    Context:
      properties:
        trace_id:
          type: string
          format: uuid
          title: Trace Id
        span_id:
          type: string
          format: uuid
          title: Span Id
      type: object
      required:
      - trace_id
      - span_id
      title: Context
    TaskSpanAttributes:
      properties:
        type:
          type: string
          const: TASK_SPAN
          title: Type
          default: TASK_SPAN
        input:
          $ref: '#/components/schemas/JsonSerializable-Input'
        output:
          $ref: '#/components/schemas/JsonSerializable-Input'
      type: object
      required:
      - input
      - output
      title: TaskSpanAttributes
    SpanStatus:
      type: string
      enum:
      - ERROR
      - OK
      - ACTIVE
      title: SpanStatus
    TraceResponse:
      properties:
        created_at:
          type: string
          format: date-time
          title: Created At
          description: The timestamp when this resource was created in UTC.
        created_by:
          type: string
          title: Created By
          description: The ID of the user that created the resource.
          examples:
          - '12345'
        id:
          type: string
          format: uuid
          title: Id
          description: A unique id for the opened `Trace`.
          examples:
          - 123e4567-e89b-12d3-a456-426614174000
        spans:
          items:
            $ref: '#/components/schemas/SpanResponse-Output'
          type: array
          title: Spans
      type: object
      required:
      - created_at
      - created_by
      - id
      - spans
      title: TraceResponse
      description: A trace represents a single tree of spans.
    SpanRequest:
      properties:
        context:
          $ref: '#/components/schemas/Context'
        name:
          anyOf:
          - type: string
          - type: 'null'
          title: Name
        parent_id:
          anyOf:
          - type: string
            format: uuid
          - type: 'null'
          title: Parent Id
        start_time:
          type: string
          format: date-time
          title: Start Time
        end_time:
          type: string
          format: date-time
          title: End Time
        attributes:
          oneOf:
          - $ref: '#/components/schemas/SpanAttributes'
          - $ref: '#/components/schemas/TaskSpanAttributes'
          title: Attributes
          discriminator:
            propertyName: type
            mapping:
              SPAN: '#/components/schemas/SpanAttributes'
              TASK_SPAN: '#/components/schemas/TaskSpanAttributes'
        events:
          items:
            $ref: '#/components/schemas/Event'
          type: array
          title: Events
        status:
          $ref: '#/components/schemas/SpanStatus'
      type: object
      required:
      - context
      - name
      - parent_id
      - start_time
      - end_time
      - attributes
      - events
      - status
      title: SpanRequest
    PagedResponse_TraceResponse_:
      properties:
        total:
          type: integer
          title: Total
        page:
          type: integer
          title: Page
        size:
          type: integer
          title: Size
        num_pages:
          type: integer
          title: Num Pages
        items:
          items:
            $ref: '#/components/schemas/TraceResponse'
          type: array
          title: Items
          default: []
      type: object
      required:
      - total
      - page
      - size
      - num_pages
      title: PagedResponse[TraceResponse]
    SingularTraceSpanList:
      items:
        $ref: '#/components/schemas/SpanRequest'
      type: array
      title: SingularTraceSpanList
    SpanAttributes:
      properties:
        type:
          type: string
          const: SPAN
          title: Type
          default: SPAN
      type: object
      title: SpanAttributes
    JsonSerializable-Output:
      anyOf:
      - type: integer
      - type: number
      - type: string
      - type: boolean
      - items:
          $ref: '#/components/schemas/JsonSerializable-Output'
        type: array
      - additionalProperties:
          $ref: '#/components/schemas/JsonSerializable-Output'
        type: object
      - type: 'null'
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT