Need help with your APIs? I offer API discovery, governance & evangelism services. Explore services →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

Agenta Traces API

Query observability traces and spans.

Agenta Traces API is one of 7 APIs that Agenta publishes on the APIs.io network, described by a machine-readable OpenAPI specification.

Tagged areas include Traces. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, and an API reference.

This API exposes 3 operations across 3 paths, and defines 7 schemas. It is described by OpenAPI 3.0.1, at version 1.0.

Requests are made against 2 base URLs: https://cloud.agenta.ai/api, https://eu.cloud.agenta.ai/api.

3 operations 3 paths 7 schemas 1 GET2 POST

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.0.1
API Version
1.0
Base URL
https://cloud.agenta.ai/api
Authentication
HTTP Bearer
License
Terms of Service
Resource Areas
1

Authentication & Security 1

Agenta Traces API declares 1 security scheme for authenticating requests. It accepts HTTP bearer tokens (ApiKeyAuth). By default, every request must be authenticated.

  • ApiKeyAuth — Agenta API key sent in the Authorization header. Generate keys from the Agenta web app under Settings API keys. The value is passed as Authorization: ApiKey (B…

Paths & Operations 3

Across 3 paths, the API surfaces 3 operations — 1 GET, 2 POST. Each is listed below with its method, path, parameters, and response codes.

Traces 3

Query observability traces and spans.

GET
/traces/
Fetch traces.
fetchTraces 2 params → 200401
POST
/spans/query
Query spans with filters.
querySpans body → 200401
POST
/spans/analytics/query
Query span analytics (cost, latency, token usage over time).
querySpanAnalytics body → 200401

Schemas 7

The contract defines 7 schemas that model the data the API accepts and returns. The most detailed are Span (8 properties), Windowing (5 properties), AnalyticsQueryRequest (3 properties), SpanQueryRequest (2 properties). Each schema is shown below with its type and property counts.

Span
object
8 properties
Trace
object
2 properties
AnalyticsQueryRequest
object
3 properties
SpanQueryRequest
object
2 properties
Windowing
object
Cursor / time-window pagination controls.
5 properties
Error
object
1 property
AnalyticsResponse
object
1 property

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

agenta-traces-api-openapi.yml Raw ↑

Other APIs Agenta publishes across the network.

Agenta Applications API
Agenta Configs API
Agenta Evaluations API
Agenta Evaluators API
Agenta OpenTelemetry API
Agenta Testsets API