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
Create Session
This endpoint creates a new session
POST
/
v1
/
session
Copy
Ask AI
curl --location --request POST 'https://api.stateset.com/v1/session' \
--header 'Content-Type: application/json' \
--header 'Authorization: Token <token>' \
--data-raw '{
"id": ""
}'
Copy
Ask AI
{
"data": {
"insert_session": {
"returning": [
{
"id": "",
"name": "",
"uuid": "",
"user_id": ""
}
]
}
}
}
Body
This is the ID of the session to be created.
Response
Indicates whether the call was successful. 1 if successful, 0 if not.
Copy
Ask AI
curl --location --request POST 'https://api.stateset.com/v1/session' \
--header 'Content-Type: application/json' \
--header 'Authorization: Token <token>' \
--data-raw '{
"id": ""
}'
Copy
Ask AI
{
"data": {
"insert_session": {
"returning": [
{
"id": "",
"name": "",
"uuid": "",
"user_id": ""
}
]
}
}
}
Copy
Ask AI
curl --location --request POST 'https://api.stateset.com/v1/session' \
--header 'Content-Type: application/json' \
--header 'Authorization: Token <token>' \
--data-raw '{
"id": ""
}'
Copy
Ask AI
{
"data": {
"insert_session": {
"returning": [
{
"id": "",
"name": "",
"uuid": "",
"user_id": ""
}
]
}
}
}
Assistant
Responses are generated using AI and may contain mistakes.