StateSet ReSponse API Documentation
Embeddings
Attributes
Function Parameters
Channels
Sessions
Get Session
This endpoint gets a session.
GET
/
v1
/
session
curl --location --request GET 'https://api.stateset.com/v1/session' \
--header 'Content-Type: application/json' \
--header 'Authorization: Token <token>' \
--data-raw '{
"id": "rt_1NXWPnCo6bFb1KQto6C8OWvE",
}'
{
"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
This is the id of the session.
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
curl --location --request GET 'https://api.stateset.com/v1/session' \
--header 'Content-Type: application/json' \
--header 'Authorization: Token <token>' \
--data-raw '{
"id": "rt_1NXWPnCo6bFb1KQto6C8OWvE",
}'
{
"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",
}
}
}
curl --location --request GET 'https://api.stateset.com/v1/session' \
--header 'Content-Type: application/json' \
--header 'Authorization: Token <token>' \
--data-raw '{
"id": "rt_1NXWPnCo6bFb1KQto6C8OWvE",
}'
{
"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",
}
}
}