Langbase Traces API
The Traces API from Langbase — 2 operation(s) for traces.
The Traces API from Langbase — 2 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/langbase:langbase-traces-api"
curl "https://apis.io/api/v1/apis?limit=25"
Discovery needs no key. Ratings and market analysis are Pro.
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. 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:
title: Langbase Traces API
version: 1.0.0
servers:
- url: https://api.langbase.com
description: Production
tags:
- name: Traces
paths:
/v1/traces:
post:
operationId: v1TracesCreate
security:
- bearerAuth: []
responses:
'200':
description: 'Langbase: Create Trace v1'
content:
application/json:
schema:
type: array
items:
type: object
properties:
id:
type: string
format: uuid
object:
type: string
enum:
- trace
created_at:
type: string
format: date
metadata:
type: object
properties:
primitiveId:
type: string
primitiveName:
type: string
entityId:
type: string
createdAt:
type: string
format: date
updatedAt:
type: string
format: date
required:
- primitiveId
- primitiveName
- entityId
- createdAt
- updatedAt
required:
- id
- object
- created_at
- metadata
'400':
description: Bad Request
content:
application/json:
schema:
type: object
properties:
success:
type: boolean
error:
type: object
properties:
code:
type: string
status:
type: string
message:
type: string
docs:
type: string
required:
- code
- status
- message
- docs
required:
- success
- error
'500':
description: Internal Server Error
content:
application/json:
schema:
type: object
properties:
success:
type: boolean
error:
type: string
code:
type: string
required:
- success
- error
- code
tags:
- Traces
summary: V1 traces create
x-summary-source: derived
get:
operationId: v1TracesList
security:
- bearerAuth: []
parameters:
- schema:
type: string
required: true
name: primitiveId
in: query
- schema:
type: string
required: true
name: primitiveName
in: query
- schema:
type:
- number
- 'null'
required: false
name: limit
in: query
- schema:
type:
- number
- 'null'
required: false
name: offset
in: query
- schema:
type: string
enum:
- asc
- desc
required: false
name: order
in: query
responses:
'200':
description: 'Langbase: List Traces v1'
content:
application/json:
schema:
type: array
items:
type: object
properties:
id:
type: string
format: uuid
object:
type: string
enum:
- trace
created_at:
type: string
format: date
metadata:
type: object
properties:
primitiveId:
type: string
primitiveName:
type: string
entityId:
type: string
createdAt:
type: string
format: date
updatedAt:
type: string
format: date
required:
- primitiveId
- primitiveName
- entityId
- createdAt
- updatedAt
required:
- id
- object
- created_at
- metadata
'400':
description: Bad Request
content:
application/json:
schema:
type: object
properties:
success:
type: boolean
error:
type: object
properties:
code:
type: string
status:
type: string
message:
type: string
docs:
type: string
required:
- code
- status
- message
- docs
required:
- success
- error
'500':
description: Internal Server Error
content:
application/json:
schema:
type: object
properties:
success:
type: boolean
error:
type: string
code:
type: string
required:
- success
- error
- code
tags:
- Traces
summary: V1 traces list
x-summary-source: derived
/v1/traces/{traceId}:
get:
operationId: v1TracesGet
security:
- bearerAuth: []
parameters:
- schema:
type: string
format: uuid
required: true
name: traceId
in: path
responses:
'200':
description: 'Langbase: Get Trace v1'
content:
application/json:
schema:
type: array
items:
type: object
properties:
id:
type: string
format: uuid
object:
type: string
enum:
- trace
created_at:
type: string
format: date
metadata:
type: object
properties:
primitiveId:
type: string
primitiveName:
type: string
entityId:
type: string
createdAt:
type: string
format: date
updatedAt:
type: string
format: date
required:
- primitiveId
- primitiveName
- entityId
- createdAt
- updatedAt
required:
- id
- object
- created_at
- metadata
'400':
description: Bad Request
content:
application/json:
schema:
type: object
properties:
success:
type: boolean
error:
type: object
properties:
code:
type: string
status:
type: string
message:
type: string
docs:
type: string
required:
- code
- status
- message
- docs
required:
- success
- error
'500':
description: Internal Server Error
content:
application/json:
schema:
type: object
properties:
success:
type: boolean
error:
type: string
code:
type: string
required:
- success
- error
- code
tags:
- Traces
summary: V1 traces get
x-summary-source: derived
components:
securitySchemes:
bearerAuth:
bearerFormat: Langbase-API-Key
type: http
scheme: bearer
description: 'Enter your Langbase API key with format: Bearer Langbase-API-Key'
x-provenance:
method: harvested
publisher: Langbase
source: https://api.langbase.com/openapi.json
note: split by refine-openapis from the provider's own published document, verified by fetch (openapi/_original/*.fetch.json);
stamped by stamp-openapi-provenance.py (roadmap#793)