Session Endpoints
This document provides a reference for all Session API endpoints in Julep.
List Sessions
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.
Create a New Session
Endpoint:
POST /sessions
Description: Creates a new session.
Request Body:
Get a Session
Endpoint:
GET /sessions/{id}
Description: Retrieves details of a specific session.
Update a Session
Endpoint:
PUT /sessions/{id}
Description: Updates an existing session.
Request Body: Partial session object
Delete a Session
Endpoint:
DELETE /sessions/{id}
Description: Deletes a specific session.
Get Session Messages
Endpoint:
GET /sessions/{id}/messages
Description: Retrieves messages in a session.
Create a New Message in a Session
Endpoint:
POST /sessions/{id}/messages
Description: Adds a new message to a session.
Request Body:
Get Session Tools
Endpoint:
GET /sessions/{id}/tools
Description: Retrieves tools available in a session.
Chat 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.
Last updated