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

Scale AI Spans API

The Spans API from Scale AI — 14 operation(s) for spans.

Scale AI Spans API is one of 94 APIs that Scale AI publishes on the APIs.io network, described by a machine-readable OpenAPI specification.

This API exposes 30 JSON Schema definitions.

Tagged areas include Spans. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, a GitHub repository, and 30 JSON Schemas.

This API exposes 19 operations across 14 paths, and defines 45 schemas. It is described by OpenAPI 3.2.0, at version 0.1.0.

Requests are made against a single base URL, https://api.egp.scale.com.

19 operations 14 paths 45 schemas 8 GET2 PATCH8 POST1 PUT

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.2.0
API Version
0.1.0
Base URL
https://api.egp.scale.com
Authentication
API Key
Resource Areas
1

Authentication & Security 1

Scale AI Spans API declares 1 security scheme for authenticating requests. An API key is passed in the header as x-api-key (APIKeyHeader).

Paths & Operations 19

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

Spans 19
POST
/spans
Create Span
create_span_spans_post body → 200422
GET
/spans
List Spans
list_spans_spans_get 6 params → 200422
PATCH
/spans/{span_id}
Partial Update Span
partial_update_span_spans__span_id__patch 1 param body → 200422
GET
/spans/{span_id}
Get Span
get_span_spans__span_id__get 1 param → 200422
POST
/v5/spans
Create a span
POST-V5-/v5/spans 1 param body → 200422
POST
/v5/spans/batch
Create spans in a batch
POST-V5-/v5/spans/batch 1 param body → 200422
PUT
/v5/spans/batch
Upsert spans in a batch
PUT-V5-/v5/spans/batch 1 param body → 200422
POST
/v5/spans/deletions
Create trace deletion request
POST-V5-/v5/spans/deletions 1 param body → 202422
GET
/v5/spans/deletions
List trace deletion requests
GET-V5-/v5/spans/deletions 5 params → 200422
POST
/v5/spans/export
Export spans
POST-V5-/v5/spans/export 3 params body → 200202422
GET
/v5/traces/{trace_id}/spans/{span_id}
Get a span within a trace
GET-V5-/v5/traces/trace_id/spans/span_id 3 params → 200422
GET
/v5/spans/{span_id}deprecated
Get a span
GET-V5-/v5/spans/span_id 2 params → 200422
PATCH
/v5/spans/{span_id}
Update a span
PATCH-V5-/v5/spans/span_id 2 params body → 200422
GET
/v5/spans/export/{export_id}
Get span export status
GET-V5-/v5/spans/export/export_id 2 params → 200422
POST
/v5/spans/metrics/by-span
Get span metrics grouped by name
POST-V5-/v5/spans/metrics/by-span 3 params body → 200422
POST
/v5/spans/metrics
Get time-bucketed span metrics
POST-V5-/v5/spans/metrics 3 params body → 200422
GET
/v5/spans/deletions/{deletion_request_id}
Get trace deletion request status
GET-V5-/v5/spans/deletions/deletion_request_id 2 params → 200422
GET
/v5/traces/{trace_id}/spans
List span summaries for a trace
GET-V5-/v5/traces/trace_id/spans 5 params → 200422
POST
/v5/spans/search
Search spans
POST-V5-/v5/spans/search 8 params body → 200422

Schemas 45

The contract defines 45 schemas that model the data the API accepts and returns. The most detailed are SpansExportRequest (23 properties), SpansBySpanMetricsRequest (22 properties), SpansMetricsRequest (21 properties), TracesSearchRequest (19 properties). Each schema is shown below with its type and property counts.

UpdateSpanRequest
object
9 properties
CreateSpanRequest
object
10 properties 3 required
Span
object
10 properties 4 required
HTTPValidationError
object
1 property
ValidationError
object
5 properties 3 required
SpansExportResponse
object
200 response for the synchronous Postgres export of POST /v5/spans/export. filename is always set; signedurl or content carries the result depending on the exp…
3 properties 1 required
SpansExportTruncation
object
Present on a succeeded export that hit a budget; absent for a complete one.
2 properties 2 required
SpanUpdateRequest
object
5 properties
SpansBySpanMetricsRequest
object
22 properties
ValidationError_2
object
5 properties 3 required
SpansMetricsBucket
object
6 properties 1 required
TraceDeletionStatusResponse
object
15 properties 5 required
TraceDeletionListItem
object
14 properties 5 required
TraceIdsDeletionCreateRequest
object
4 properties 2 required
SpanExportFormat
string
SpansExportStatusResponse
object
Status for GET /v5/spans/export/{exportid} (mirrors the sgp-traces status object). Always returned with HTTP 200; unknown or cross-account ids arrive as failed…
16 properties 2 required
SpanMetric
string
An independently loadable metric group for the traces chart.
ApplicationOperationStatus
string
ExportMethod
string
TraceDeletionSourceType
string
TraceDeletionReasonCode
string
SpansMetricsResponse
object
2 properties 1 required
SpansExportAcceptedResponse
object
202 response for the async sgp-traces export of POST /v5/spans/export. The export runs as a background job; poll GET /v5/spans/export/{exportid} for its status…
5 properties 2 required
TracesSearchRequest
object
19 properties
IdentityType
string
TraceDeletionRequestStatus
string
SpansBySpanMetricsItem
object
12 properties 12 required
GroupDeletionCreateRequest
object
4 properties 2 required
SpanSearchPage
object
Span search page carrying sgp-traces' opaque pagination cursors. The Postgres path keyset-paginates on the span id and leaves these unset. The ClickHouse path…
10 properties 3 required
SpansExportRequest
object
23 properties
TraceDeletionCreateRequest
Identity
object
3 properties 2 required
SortOrder
string
APIList_Span_
object
2 properties 1 required
PaginatedList_TraceDeletionListItem_
object
5 properties 3 required
TraceSpanSummaryPage
object
Bounded trace-tree page with service-issued opaque cursors when available.
6 properties 2 required
SpansBySpanMetricsResponse
object
2 properties 2 required
TraceDeletionCreateResponse
object
7 properties 2 required
ApplicationOperationType
string
SpansMetricsRequest
object
21 properties
Span_2
object
18 properties 5 required
SpanSummary
object
Payload-free structural projection, not generated or aggregated semantic content.
10 properties 4 required
SpanBatchCreateRequest
object
1 property 1 required
SpanCreateRequest
object
15 properties 3 required
SpansBySpanMetricsTotals
object
2 properties 2 required

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

scale-ai-spans-api-openapi.yml Raw ↑

Other APIs Scale AI publishes across the network.

Scale REST API
Scale GenAI Data Engine
Scale Automotive Data Engine
Scale Nucleus
Scale Donovan
Scale AI Batches API
Scale AI Projects API
Scale AI Tasks API
Scale AI account groups API
Scale AI Accounts API
Scale AI Agent APIKeys API
Scale AI Agent Configs API
Where this information came from

This is an independent, third-party profile of Scale AI 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.