How AI is applied across API Evangelist and APIs.io. Read my AI disclosure →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

Prefect Spans API

The Spans API from Prefect — 9 operation(s) for spans.

Prefect Spans API is one of 63 APIs that Prefect publishes on the APIs.io network, described by a machine-readable OpenAPI specification and an AsyncAPI event-driven specification.

Tagged areas include Spans. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, an API reference, authentication docs, a getting-started guide, and an AsyncAPI specification.

This API exposes 9 operations across 9 paths, and defines 8 schemas. It is described by OpenAPI 3.2.0, at version 0.8.4.

9 operations 9 paths 8 schemas 9 GET

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.2.0
API Version
0.8.4
Resource Areas
1

Paths & Operations 9

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

Spans 9
GET
/api/accounts/{account_id}/workspaces/{workspace_id}/traces/{trace_id}
Read Spans
read_spans_api_accounts__account_id__workspaces__workspace_id__traces__trace_id__get 14 params → 200422
GET
/api/accounts/{account_id}/workspaces/{workspace_id}/traces/{trace_id}/context/{span_id}
Read Span Context
read_span_context_api_accounts__account_id__workspaces__workspace_id__traces__trace_id__context__span_id__get 6 params → 200422
GET
/api/accounts/{account_id}/workspaces/{workspace_id}/traces/{trace_id}/observed-states
Read Trace Observed States
read_trace_observed_states_api_accounts__account_id__workspaces__workspace_id__traces__trace_id__observed_states_get 7 params → 200422
GET
/api/accounts/{account_id}/workspaces/{workspace_id}/traces/{trace_id}/observed-tags
Read Trace Observed Tags
read_trace_observed_tags_api_accounts__account_id__workspaces__workspace_id__traces__trace_id__observed_tags_get 5 params → 200422
GET
/api/accounts/{account_id}/workspaces/{workspace_id}/traces/{trace_id}/spans/{span_id}
Read Single Span
read_single_span_api_accounts__account_id__workspaces__workspace_id__traces__trace_id__spans__span_id__get 5 params → 200422
GET
/api/accounts/{account_id}/workspaces/{workspace_id}/traces/{trace_id}/spans
Read Spans By Ids
read_spans_by_ids_api_accounts__account_id__workspaces__workspace_id__traces__trace_id__spans_get 5 params → 200422
GET
/api/accounts/{account_id}/workspaces/{workspace_id}/spans/lookup/{run_id}
Lookup Span By Run Id
lookup_span_by_run_id_api_accounts__account_id__workspaces__workspace_id__spans_lookup__run_id__get 4 params → 200422
GET
/api/accounts/{account_id}/workspaces/{workspace_id}/spans/{span_id}/observed-tags
Read Span Observed Tags
read_span_observed_tags_api_accounts__account_id__workspaces__workspace_id__spans__span_id__observed_tags_get 5 params → 200422
GET
/api/accounts/{account_id}/workspaces/{workspace_id}/observed-states
Read Workspace Observed States
read_workspace_observed_states_api_accounts__account_id__workspaces__workspace_id__observed_states_get 6 params → 200422

Schemas 8

The contract defines 8 schemas that model the data the API accepts and returns. The most detailed are SpanResponse (18 properties), ObservedState (4 properties), SpansResponse (3 properties), ValidationError (3 properties). Each schema is shown below with its type and property counts.

ObservedStateSort
string
Defines observed state sorting options.
SpanResponse
object
Span with additional computed fields for API responses.
18 properties 10 required
SpansResponse
object
Unified response for both list and context endpoints.
3 properties 1 required
SpanIdentifierResponse
object
Response containing traceid and spanid for a span lookup.
2 properties 2 required
ObservedState
object
An observed state type/name combination from spans.
4 properties 4 required
ObservedTag
object
An observed tag from spans within a trace.
2 properties 2 required
HTTPValidationError
object
1 property
ValidationError
object
3 properties 3 required

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

prefect-spans-api-openapi.yml Raw ↑

Other APIs Prefect publishes across the network.

Prefect Server REST API
Prefect Python SDK
Prefect Account Billing API
Prefect Account Images API
Prefect Account Memberships API
Prefect Account Roles API
Prefect Account SSO API
Prefect Accounts API
Prefect AI API
Prefect Artifacts API
Prefect Asset Publications API
Prefect Asset Subscriptions API
Where this information came from

This is an independent, third-party profile of Prefect Spans API, published by API Evangelist. We do not operate, host, resell, or support these APIs, and we are not affiliated with or endorsed by the company unless stated above. Everything here is built from publicly available information — the company's own site, developer portal, documentation, public repositories, and the specifications it publishes for public use. Nothing is obtained by breaching a system, defeating an access control, or using credentials.

The Kin Score and Agent Readiness rating are independently calculated assessments of a company's public API artifacts, scored against a published rubric. They are not certifications, endorsements, security assessments, or audits.

Corrections, re-scores, and removal are free — no partnership or purchase required, and you do not need to justify the request. A removed company is recorded as unrated, never scored zero for having asked. Acknowledgement within one business day; removal within two.

info@apievangelist.com · Read the full data-sourcing policy →
On a security or compliance team? Put security in the subject line and you will get a person, not a form — we will tell you exactly which public URLs this profile was built from.