Overview
SDK 2
API playground
- Agent Sessions
- Context Files
- Contexts
- Labels
- SDK Users
Agent Sessions
Create a new agent session
POST
/
api
/
v1
/
appuid
/
{appUid}
/
agentsessions
Copy
Ask AI
curl --request POST \
--url https://a.api.mindset.ai/api/v1/appuid/{appUid}/agentsessions \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '{
"agentUid": "<string>",
"externalUserId": "<string>",
"userEmail": "<string>",
"tags": [
"<string>"
],
"contextUids": [
"<string>"
]
}'
Copy
Ask AI
{
"uid": "<string>",
"agentSessionUid": "<string>",
"humanUid": "<string>",
"externalUserId": "<string>",
"userEmail": "<string>",
"agentUid": "<string>",
"tags": [
"<string>"
],
"contextUids": [
"<string>"
],
"createdAt": "2023-11-07T05:31:56Z",
"lastUsedAt": "2023-11-07T05:31:56Z"
}
Authorizations
Path Parameters
Your application's uid
Minimum length:
1
Body
application/json
Response
201
application/json
Agent Session created successfully
The response is of type object
.
Copy
Ask AI
curl --request POST \
--url https://a.api.mindset.ai/api/v1/appuid/{appUid}/agentsessions \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '{
"agentUid": "<string>",
"externalUserId": "<string>",
"userEmail": "<string>",
"tags": [
"<string>"
],
"contextUids": [
"<string>"
]
}'
Copy
Ask AI
{
"uid": "<string>",
"agentSessionUid": "<string>",
"humanUid": "<string>",
"externalUserId": "<string>",
"userEmail": "<string>",
"agentUid": "<string>",
"tags": [
"<string>"
],
"contextUids": [
"<string>"
],
"createdAt": "2023-11-07T05:31:56Z",
"lastUsedAt": "2023-11-07T05:31:56Z"
}
Assistant
Responses are generated using AI and may contain mistakes.