Bulk create spans
Create up to 500 spans in one request. Each item in logs accepts the same fields as the single-span create operation. Rows are processed independently: one invalid row does not prevent the remaining rows from being accepted. A response is 201 Created whenever at least one row is accepted, including partial success; inspect error_count and errors on every response. success_count means the row passed synchronous validation and was accepted for ingestion.
For API-key authentication, this endpoint is limited to 30 requests per minute per organization, shared across all API keys in that organization. JWT requests are limited per user. At the 500-row maximum, the API-key limit allows up to approximately 15,000 accepted rows per minute.
Headers
Use your Respan API key for Respan API authentication. Enter only the Respan API key value; clients send Authorization: Bearer <RESPAN_API_KEY>. For /api/responses, OpenAI or Azure OpenAI provider credentials go in Settings -> Providers or the request body credential_override field, not in this auth field.
Request body
Response
At least one row was accepted. This status is also used for partial success; inspect the response counts and indexed errors.