GET
/
med-assist
/
session
/
{session_id}
curl --location --request GET 'https://api.eka.care/med-assist/session/a349a41e-5d49-488a-b300-66ccbfdf16b3' \
--header 'x-agent-id: <agent-id>'
{
  "session_id": "a349a41e-5d49-488a-b300-66ccbfdf16b3",
  "expires_at": "2024-01-01T12:00:00Z"
}
curl --location --request GET 'https://api.eka.care/med-assist/session/a349a41e-5d49-488a-b300-66ccbfdf16b3' \
--header 'x-agent-id: <agent-id>'

Session Refresh

When a session token expires, you can refresh it using the refresh endpoint:
curl --location --request GET 'https://api.eka.care/med-assist/session/a349a41e-5d49-488a-b300-66ccbfdf16b3/refresh' \
--header 'x-agent-id: <agent-id>' \
--header 'x-sess-token: <old_token>'
The refresh endpoint returns a new token with extended expiration time.

Authorizations

x-agent-id
string
header
required

Your API key for authentication

Path Parameters

session_id
string<uuid>
required

The unique session identifier

Response

Session retrieved successfully

The response is of type object.