Request
Backend SDK key for the project. Verified against UASAM before the event is stored.
Session JWT obtained from the session creation endpoint. Carries
agent_session_id and agent_id claims.Body
Required fieldsUUID of the project this event belongs to.
The API path that was called (e.g.
/api/v1/users/).HTTP method of the request (e.g.
GET, POST, PUT, DELETE).HTTP response status code returned by the upstream service.
Round-trip latency of the request in milliseconds.
Size of the request payload in bytes.
Size of the response payload in bytes.
Serialized request headers (e.g. a JSON-encoded string of key-value pairs).
Raw or serialized request body.
Query string or serialized query parameters.
Form post data, if applicable.
Serialized response headers.
Raw or serialized response body.
Content-Type of the request (e.g. application/json).Content-Type of the response.Arbitrary JSON object for attaching user-defined metadata to the event.
Error message or identifier, if the request resulted in an error. Leave empty on success.
Additional JSON metadata for internal or debugging purposes.
Response
On success the endpoint returns HTTP201 with an empty response object. Unlike the agent log endpoint, no event_id is returned here — the SDK log path does not expose the created record’s identifier.
1 on success, 0 on failure.event_captured on success.Empty object
{}. No event ID is included.Errors
| HTTP | status_description | Meaning |
|---|---|---|
| 401 | missing_sdk_key | X-OTAS-SDK-KEY header was not provided. |
| 401 | invalid_sdk_key | The SDK key was not recognised or is inactive. |
| 401 | missing_agent_session_token | X-OTAS-AGENT-SESSION-TOKEN header was not provided. |
| 401 | invalid_or_expired_token | The session JWT is malformed, expired, or has invalid claims. |
| 400 | invalid_json | The request body could not be parsed as JSON. |
| 400 | missing_required_fields | One or more required body fields are absent. See missing_fields. |
| 500 | event_capture_failed | An unexpected server-side error occurred while saving the event. |
status_description is missing_required_fields, the response also includes a missing_fields array listing each absent field name.