POST
/
med-assist
/
session
curl --location --request POST 'https://matrix.eka.care/med-assist/session' \
--header 'x-agent-id: <agent-id>'
{
  "session_id": "a349a41e-5d49-488a-b300-66ccbfdf16b3",
  "session_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."
}
curl --location --request POST 'https://matrix.eka.care/med-assist/session' \
--header 'x-agent-id: <agent-id>'

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 · object

Response

Session created successfully

The response is of type object.