StateSet Response
- Core Concepts
- API Reference
- Core Resources
- Agents
- Embeddings
- Responses
- Messages
- Rules
- Attributes
- Memories
- Examples
- Functions
- Schedules
- Function Parameters
- Channels
- Sessions
- Users
- Settings
Sessions
List Sessions
This endpoint gets a sessions.
GET
/
v1
/
sessions
Copy
Ask AI
curl --location --request GET 'https://api.stateset.com/v1/sessions' \
--header 'Content-Type: application/json' \
--header 'Authorization: Token <token>' \
Copy
Ask AI
{
"data": {
"message": {
"id": "rt_1NXWPnCo6bFb1KQto6C8OWvE",
"created_at": "2021-01-01T00:00:00.000000Z",
"name": "My Session",
"system_prompt": "You are a helpful assistant.",
"user_id": "rt_1NXWPnCo6bFb1KQto6C8OWvE",
}
}
}
Body
Response
This is the id of the session
This is the name of the session
This is the uuid of the session
This is the user_id of the session
Copy
Ask AI
curl --location --request GET 'https://api.stateset.com/v1/sessions' \
--header 'Content-Type: application/json' \
--header 'Authorization: Token <token>' \
Copy
Ask AI
{
"data": {
"message": {
"id": "rt_1NXWPnCo6bFb1KQto6C8OWvE",
"created_at": "2021-01-01T00:00:00.000000Z",
"name": "My Session",
"system_prompt": "You are a helpful assistant.",
"user_id": "rt_1NXWPnCo6bFb1KQto6C8OWvE",
}
}
}
Copy
Ask AI
curl --location --request GET 'https://api.stateset.com/v1/sessions' \
--header 'Content-Type: application/json' \
--header 'Authorization: Token <token>' \
Copy
Ask AI
{
"data": {
"message": {
"id": "rt_1NXWPnCo6bFb1KQto6C8OWvE",
"created_at": "2021-01-01T00:00:00.000000Z",
"name": "My Session",
"system_prompt": "You are a helpful assistant.",
"user_id": "rt_1NXWPnCo6bFb1KQto6C8OWvE",
}
}
}
Assistant
Responses are generated using AI and may contain mistakes.