Skip to main content
A session is an interactive conversation with Atlas for exploratory and open-ended analysis. Upload files into a session to give Atlas context.

Endpoints


Create a session

POST /sessions Request body: Example request:
Response fields: Example response:

List sessions

GET /sessions Example request:
Returns {"items": [...], "count": N} where each item is a session object with the same fields as the create response (except attachments, which is only included on the single-session GET).

Get a session

GET /sessions/{session_id} Example request:
Returns a single session object with the same fields as the create response.

Update a session

PUT /sessions/{session_id} All fields are optional. Example request:
Returns the updated session object with the same fields as the create response.

Delete a session

DELETE /sessions/{session_id} Example request:
Returns 204 No Content.

Upload files

POST /sessions/{session_id}/upload-files Upload one or more files as multipart/form-data. Each uploaded file becomes an attachment in the session. Form fields: Example request:
Response fields (array): Example response:
Returns an array of attachment objects, one per uploaded file.

Remove an attachment

DELETE /sessions/{session_id}/attachments/{attachment_id} Removes an attachment from a session. Example request:
Returns 204 No Content.