Opper AI Traces API
The Traces API from Opper AI — 3 operation(s) for traces.
The Traces API from Opper AI — 3 operation(s) for traces.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
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.curl "https://apis.io/api/v1/apis/opper:opper-traces-api"
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.
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: 3.2.0
info:
description: Schema-driven generative API that orchestrates LLM-powered workflows.
title: Task Traces API
version: 3.0.0
servers:
- description: Production
url: https://api.opper.ai
- description: Local development
url: http://localhost:8080
security:
- BearerAuth: []
tags:
- name: Traces
paths:
/v3/traces:
get:
description: List traces with pagination.
operationId: listTraces
parameters:
- description: Max items to return (default 100, max 100)
in: query
name: limit
schema:
default: 100
type: integer
- description: Number of items to skip (default 0)
in: query
name: offset
schema:
default: 0
type: integer
- description: Filter by trace name (case-insensitive substring match)
in: query
name: name
schema:
type: string
responses:
'400':
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
description: Bad request
'401':
description: Unauthorized - missing or invalid API key
'500':
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
description: Internal server error
summary: List traces
tags:
- Traces
/v3/traces/{id}:
delete:
description: Delete a trace and all its spans.
operationId: deleteTrace
parameters:
- description: Generation ID
in: path
name: id
required: true
schema:
type: string
responses:
'204':
description: No content
'400':
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
description: Bad request
'401':
description: Unauthorized - missing or invalid API key
'500':
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
description: Internal server error
summary: Delete trace
tags:
- Traces
get:
description: Get a trace with all its spans.
operationId: getTrace
parameters:
- description: Generation ID
in: path
name: id
required: true
schema:
type: string
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/GetTraceResponse'
description: Successful response
'400':
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
description: Bad request
'401':
description: Unauthorized - missing or invalid API key
'500':
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
description: Internal server error
summary: Get trace
tags:
- Traces
/v3/traces/{id}/events:
get:
description: List all events across all spans in a trace.
operationId: listTraceEvents
parameters:
- description: Generation ID
in: path
name: id
required: true
schema:
type: string
- description: Filter by event kind (guardrail, feedback, evaluation)
in: query
name: kind
schema:
type: string
responses:
'400':
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
description: Bad request
'401':
description: Unauthorized - missing or invalid API key
'500':
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
description: Internal server error
summary: List trace events
tags:
- Traces
components:
schemas:
ErrorResponse:
properties:
error:
properties:
code:
type: string
details:
description: Any value
message:
type: string
required:
- code
- message
type: object
meta:
type: object
required:
- error
type: object
GetTraceResponse:
properties:
data:
properties:
checks_cost:
type: number
completion_tokens:
type: integer
duration_ms:
type: integer
end_time:
format: date-time
type: string
evaluation_cost:
type: number
events:
items:
properties:
created_at:
format: date-time
type: string
data:
type: object
id:
type: string
kind:
type: string
source:
type: string
span_id:
type: string
span_uuid:
type: string
required:
- id
- span_id
- kind
- source
- data
type: object
type: array
id:
type: string
input:
type: string
model_cost:
type: number
name:
type: string
output:
type: string
prompt_tokens:
type: integer
span_count:
type: integer
spans:
items:
properties:
data:
properties:
cost:
type: number
evaluations:
items:
properties:
cost:
type: number
created_at:
type: string
duration_ms:
type: integer
evaluator_type:
type: string
explanation:
type: string
flagged:
type: boolean
generation_id:
type: string
id:
type: string
model:
type: string
rule_id:
type: string
score:
type: number
required:
- id
- generation_id
- flagged
- created_at
type: object
type: array
function:
properties:
id:
type: string
name:
type: string
required:
- id
- name
type: object
generation_id:
type: string
input_truncated:
type: boolean
instructions:
type: string
model:
type: string
observations:
type: string
output_truncated:
type: boolean
score:
type: integer
scorer_context:
type: object
tags:
type: object
total_tokens:
type: integer
type: object
end_time:
format: date-time
type: string
error:
type: string
id:
type: string
input:
description: Any value
meta:
type: object
metadata:
type: object
metrics:
items:
properties:
comment:
type: string
created_at:
type: string
dimension:
type: string
id:
type: string
value:
type: number
required:
- id
- dimension
- value
- created_at
type: object
type: array
name:
type: string
output:
description: Any value
parent_id:
type: string
score:
type: integer
start_time:
format: date-time
type: string
status:
type: string
tags:
type: object
trace_id:
type: string
type:
type: string
required:
- id
- trace_id
- name
type: object
type: array
start_time:
format: date-time
type: string
status:
type: string
total_tokens:
type: integer
required:
- id
- span_count
- spans
type: object
required:
- data
type: object
securitySchemes:
BearerAuth:
bearerFormat: API Key
description: API key authentication. Pass your API key as a Bearer token.
scheme: bearer
type: http
MCPBearer:
description: Delegated user OAuth access token for the Opper MCP resource. Obtain through advertised OAuth authorization; runtime and management service keys are not accepted.
scheme: bearer
type: http
ManagementBearer:
bearerFormat: Management API Key
description: Management API authentication. Pass an `op-mak-…` management token as a Bearer token. Runtime `op-…` API keys are rejected with 403 — they belong on the data-plane endpoints. Mint a management key from the platform UI under Settings → API keys.
scheme: bearer
type: http