Session Endpoints
Last updated
Last updated
This document provides a reference for all Session API endpoints in Julep.
Endpoint: GET /sessions
Description: Retrieves a paginated list of sessions.
Query Parameters:
limit
(optional): Number of sessions to return per page.
offset
(optional): Number of sessions to skip.
Endpoint: POST /sessions
Description: Creates a new session.
Request Body:
Endpoint: GET /sessions/{id}
Description: Retrieves details of a specific session.
Endpoint: PUT /sessions/{id}
Description: Updates an existing session.
Request Body: Partial session object
Endpoint: DELETE /sessions/{id}
Description: Deletes a specific session.
Endpoint: GET /sessions/{id}/messages
Description: Retrieves messages in a session.
Endpoint: POST /sessions/{id}/messages
Description: Adds a new message to a session.
Request Body:
Endpoint: GET /sessions/{id}/tools
Description: Retrieves tools available in a session.
Endpoint: POST /sessions/{id}/chat
Description: Initiates a chat interaction in a session.
Request Body:
For all endpoints, replace {id}
with the actual session ID.