Morpheus API Gateway LogoMorpheus API Gateway
Session

Ping Session

Ping the session by attempting a simple chat completion. If the chat completion fails, the session is considered dead and will be closed.

POST
/api/v1/session/pingsession

Authorization

Authorization<token>

Provide the API key in either format: 'Bearer sk-xxxxxx.yyyyyyy' or just 'sk-xxxxxx.yyyyyyy'. The prefix is 9 characters long including 'sk-'.

In: header

Response Body

Successful Response

TypeScript Definitions

Use the response body type in TypeScript.

responseRequiredunknown
curl -X POST "http://api.mor.org/api/v1/session/pingsession" \
  -H "Authorization: <token>"
null

How is this guide?