Record Completion
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
Record Completion
Documentation Index
Fetch the complete documentation index at: https://docs.freeplay.ai/llms.txt
Use this file to discover all available pages before exploring further.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
application/json
- OpenAISystemMessage
- OpenAIDeveloperMessage
- OpenAIUserMessage
- OpenAIAssistantMessage
- OpenAIToolMessage
- OpenaiTool · object[]
- AnthropicTool · object[]
- VertexTool · object[]
- OpenaiResponsesTool · object[]
Response
201 - application/json
RecordCompletionInfo(completion_id: uuid.UUID = FieldInfo(annotation=NoneType, required=True, description='The session entry ID'))
The session entry ID

