curl --request POST \
--url 'https://api.nsr.stateset.com/api/v1/conversations' \
--header "X-API-Key: $STATESET_NSR_API_KEY" \
--header 'Content-Type: application/json' \
--data '{
"metadata": null,
"title": "Replacement tent pole set",
"workflow_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
}'
{
"archived_at": "2026-08-31T14:22:05Z",
"created_at": "2026-08-31T14:22:05Z",
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"metadata": null,
"session_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"tenant_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"title": "Replacement tent pole set",
"updated_at": "2026-08-31T14:22:05Z",
"user_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"workflow_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
}
Create a new conversation.
Required scope: write
POST
/
api
/
v1
/
conversations
curl --request POST \
--url 'https://api.nsr.stateset.com/api/v1/conversations' \
--header "X-API-Key: $STATESET_NSR_API_KEY" \
--header 'Content-Type: application/json' \
--data '{
"metadata": null,
"title": "Replacement tent pole set",
"workflow_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
}'
{
"archived_at": "2026-08-31T14:22:05Z",
"created_at": "2026-08-31T14:22:05Z",
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"metadata": null,
"session_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"tenant_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"title": "Replacement tent pole set",
"updated_at": "2026-08-31T14:22:05Z",
"user_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"workflow_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
}
Required scope:
write
Request body
CreateConversationRequest
object
Optional metadata object
string
Optional title (defaults to ‘New chat’)
string
Optional workflow ID (defaults to ‘support_concierge’)
Response
Conversation
string
Archive timestamp (RFC3339), if soft-deleted
string
required
Creation timestamp (RFC3339)
string
required
Unique conversation ID
object
required
Arbitrary metadata
string
Linked reasoning session ID
string
required
Tenant (organization) that owns this conversation
string
required
Human-readable title
string
required
Last update timestamp (RFC3339)
string
Optional user who created the conversation
string
required
Workflow ID controlling agent behavior
Status codes
| Code | Meaning |
|---|---|
201 | Conversation created |
400 | Invalid request |
401 | Unauthorized — missing or invalid credentials |
403 | Forbidden — the key/token lacks the required scope |
429 | Rate limited — see Retry-After / X-RateLimit-Reset |
503 | Database not configured |
curl --request POST \
--url 'https://api.nsr.stateset.com/api/v1/conversations' \
--header "X-API-Key: $STATESET_NSR_API_KEY" \
--header 'Content-Type: application/json' \
--data '{
"metadata": null,
"title": "Replacement tent pole set",
"workflow_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
}'
{
"archived_at": "2026-08-31T14:22:05Z",
"created_at": "2026-08-31T14:22:05Z",
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"metadata": null,
"session_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"tenant_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"title": "Replacement tent pole set",
"updated_at": "2026-08-31T14:22:05Z",
"user_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"workflow_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
}
Last modified on August 31, 2026