The Context Engine Studio is now open source.  View on GitHub →
Clinia
Sessions

Create session

Deprecated
POST
/v1/patients/{patientId}/sessions

Opens a new query session scoped to a patient. Sessions track interaction context across multiple MCP tool calls within a single agent run.

Deprecated: a session no longer needs opening. Writing under a sessionId of your choosing — appending messages, a tool call's session_id, or POST …/ingestions/sessions — creates it, and the import route generates one when a transcript declares none.

Authorization

Bearer write
AuthorizationBearer <token>

Each operation lists the OAuth scope (read or write) it requires.

In: header

Scope: write

Path Parameters

patientId*string

ID of the patient

Match^[A-Za-z0-9._~:-]{1,128}$

Response Body

application/json

application/json

curl -X POST "https://example.com/v1/patients/string/sessions"
{  "sessionId": "string",  "patientId": "string",  "createdAt": "string"}