This document establishes common conventions and standards applicable to all Live Event Ad Playbook (LEAP) APIs. API-specific details, including endpoints, query parameters, and examples, are documented in separate API specification files.
The Forecast API supports pre-event planning, and the Concurrent Streams API reports near-real-time stream counts. Implementers may correlate the same live event across these APIs, OpenRTB transactions, and downstream reporting by preserving a consistent, agreed identifier.
Either of the following may serve as the cross-API join key; neither is inherently preferred:
Content ID — content.id: Match the same publisher-provided Content ID across the Forecast API, Concurrent Streams API, and OpenRTB when its assignment and scope are understood and the value is consistently preserved. A Content ID is not automatically universal across unrelated publishers or sellers.
Extended Content ID — content.data[].cids[]: Match an Extended Content ID together with the associated data[].name identifying its source. Comparing only the CID string without its originating source can create false matches. This approach is useful when participants have different local content.id values but recognize the same external content identifier.
Both methods may appear in a response; neither requires the other to be present. When both are supplied but identify different content, implementers should resolve the discrepancy rather than silently treating the records as equivalent.
| Context | Content ID | Extended Content ID |
|---|---|---|
| Forecast API | events[].content.id |
events[].content.data[].cids[] |
| Concurrent Streams API | streamsdata[].mediastreams[].content.id |
streamsdata[].mediastreams[].content.data[].cids[] |
| OpenRTB app | app.content.id |
app.content.data[].cids[] |
| OpenRTB site | site.content.id |
site.content.data[].cids[] |
For Extended Content IDs, the corresponding data[].name must also be used to identify the source. The paths above describe existing content objects, not new LEAP fields.
{
"id": "event-content-12345",
"data": [
{
"name": "id-provider.example",
"cids": ["shared-content-id-12345"]
}
]
}
This represents the content object portion of an illustrative API response or bid request. Either identifier may support correlation independently, provided the participating systems preserve it consistently.
id identifies its event record and is recommended to equal content.id where possible, but equality is not guaranteed.id identifies the auction request, not the live event.Establishes foundational naming rules for resources, fields, and parameters across all APIs.
/eventforecasts, /concurrentstreams).eventid, contentid, expectedpeak).scheduledstart, scheduledend, lastmodifieddate).tentative, unplanned).Defines how HTTP verbs map to operations on API resources.
GET /resources with filtering, sorting, and pagination.GET /resources/{id}.201 Created with Location header pointing to the new resource.200 OK or 204 No Content.204 No Content.Specifies security mechanisms for API access and authorization.
Authentication protocol is left to the discretion of the event creator or API provider and should be discussed with API users before implementation. OAuth 2.0 is a common way to support secure API access and is recommended for consideration, but it is not required or prescribed by this guidance.
Defines data structure, encoding, and format conventions for API communication.
application/json; charset=utf-8
API field timestamps follow their specs (Unix milliseconds); ISO 8601 may be used only for human-readable rendering unless an API explicitly defines otherwise.
null indicates explicit removal for PATCH operations.PATCH operations are not modified.Content-Type: application/json; charset=utf-8
X-Request-ID: {uuid}
X-RateLimit-Limit: {number}
X-RateLimit-Remaining: {number}
X-RateLimit-Reset: {timestamp}
Illustrative, not the LEAP API response schema
{
"data": [ ... ],
"pagination": {
"limit": 50,
"offset": 0,
"total": 1234,
"hasmore": true
}
}
Follow standard HTTP status codes per RFC 7231.
200 OK - Successful GET, PUT, or PATCH.201 Created - Successful POST with Location header.204 No Content - Successful DELETE.400 Bad Request - Invalid JSON or missing required fields.401 Unauthorized - Missing or invalid authentication.403 Forbidden - Insufficient permissions.404 Not Found - Resource does not exist.409 Conflict - Duplicate resource identifier.422 Unprocessable Entity - Invalid field values.429 Too Many Requests - Rate limit exceeded.500 Internal Server Error - Unexpected error.503 Service Unavailable - Temporary outage.Defines standardized error response structure and common error codes.
{
"error": {
"code": "string",
"message": "string",
"details": [
{
"field": "string",
"issue": "string"
}
],
"requestid": "string"
}
}
INVALID_JSON, MISSING_REQUIRED_FIELD, INVALID_FIELD_VALUE, INVALID_DATE_FORMAT (400)MISSING_CREDENTIALS, INVALID_TOKEN, EXPIRED_TOKEN (401)INSUFFICIENT_PERMISSIONS (403)RESOURCE_NOT_FOUND (404)DUPLICATE_RESOURCE, RESOURCE_CONFLICT (409)RATE_LIMIT_EXCEEDED (429)INTERNAL_ERROR, SERVICE_UNAVAILABLE (500/503)X-Request-ID for tracing.Defines standard approach for handling large result sets.
limit={number} - Maximum results per page (default: 50, max: 100).offset={number} - Starting position (default: 0).Illustrative, not the LEAP API response schema
{
"data": [ ... ],
"pagination": {
"limit": 50,
"offset": 0,
"total": 1234,
"hasmore": true
}
}
limit - Number of results in current page.offset - Starting position of current page.total - Total resources matching query.hasmore - Boolean indicating more results exist.Defines API evolution and backward compatibility strategy.
URI-based versioning with major version in base path (e.g., /v1/, /v2/).
Defines request throttling policies to protect API resources and ensure fair usage.
X-RateLimit-Limit: {number}
X-RateLimit-Remaining: {number}
X-RateLimit-Reset: {timestamp}
{
"error": {
"code": "RATE_LIMIT_EXCEEDED",
"message": "Rate limit exceeded. Retry after {seconds} seconds.",
"requestid": "..."
}
}
Includes Retry-After: {seconds} header.
X-RateLimit-Remaining header.429 responses.Defines standard approach for ordering result sets.
sort={field} - Field to sort by.order=asc|desc - Sort direction (default: asc).GET /resources?sort=createddate&order=desc