Skip to main content
POST

Next Steps

After creating a session, use the returned session_id and session_token to:
  1. Connect to the WebSocket endpoint: wss://api-ws.eka.care/ws/med-assist/session/<session-id>
  2. Authenticate using the session token
  3. Start sending medical queries through the WebSocket connection
See the WebSocket documentation for detailed implementation.

Authorizations

x-agent-id
string
header
required

Your API key for authentication

Body

application/json

The body is of type object.

Response

Session created successfully

session_id
string<uuid>

Unique session identifier

Example:

"a349a41e-5d49-488a-b300-66ccbfdf16b3"

session_token
string

JWT token for WebSocket authentication

Example:

"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."