latestOpenAPI 3.1.02026-08-08127304355.9 KB
69c553220183
Observability
Record Completion
Log an LLM completion with its prompt, response, and metadata. This is the primary endpoint for observability. See SDK method.
Sessions are created implicitly—just generate a session_id client-side (UUID v4). Optionally provide your own completion_id too to avoid waiting for Freeplay's response.
post/api/v2/projects/{project_id}/sessions/{session_id}/completions
Path parameters
project_idstring required
session_idstring required
Request body
Response
RecordCompletionInfo(completion_id: uuid.UUID = FieldInfo(annotation=NoneType, required=True, description='The session entry ID'))