Making a request
API requests are done via HTTPS requests to api.litmind.com/api/v1, with the following header:
X-Key Your API key
This is an example of a simple request:
The API will respond with a standard HTTP code indicating the status of the request and a JSON body. Here's an example:
Requesting user endpoints
Most endpoints will additionally require you to provide a session id and a user id by sending the following additional headers along:
X-SessionId The session id
X-UserId The user id
To obtain your X-SessionId and X-UserId, call the /session/login endpoint, which accepts your Litmind's account credentials, and answers back with this values.
Here's an example of a request to an endpoint that requires a logged account:
Last updated