curl --request POST \
--url https://app.splox.io/api/v1/chats \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "Support Chat",
"resource_type": "api",
"resource_id": "0199e001-a23b-7c8d-1234-567890abcdef"
}
'{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"resource_type": "api",
"resource_id": "<string>",
"is_public": true,
"public_share_token": "<string>",
"metadata": {},
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}Creates a new chat session for a workflow or other resource. The chat ID is required when running workflows via the API.
curl --request POST \
--url https://app.splox.io/api/v1/chats \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "Support Chat",
"resource_type": "api",
"resource_id": "0199e001-a23b-7c8d-1234-567890abcdef"
}
'{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"resource_type": "api",
"resource_id": "<string>",
"is_public": true,
"public_share_token": "<string>",
"metadata": {},
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}POST /workflow-requests/run.
curl -X POST https://app.splox.io/api/v1/chats \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"name": "My Chat Session",
"resource_type": "api",
"resource_id": "0199e001-a23b-7c8d-1234-567890abcdef"
}'
| Field | Type | Required | Description |
|---|---|---|---|
name | string | Yes | Display name for the chat session |
resource_type | string | Yes | Must be api |
resource_id | string | Yes | ID of the resource (workflow ID, agent ID, etc.) |
metadata | object | No | Optional metadata |
{
"id": "0199f200-a11b-7c8d-4444-888890abcdef",
"name": "My Chat Session",
"user_id": "0199d001-c45d-9e0f-3456-789012cdef01",
"resource_type": "workflow",
"resource_id": "0199e001-a23b-7c8d-1234-567890abcdef",
"is_public": false,
"created_at": "2025-10-22T10:00:00Z",
"updated_at": "2025-10-22T10:00:00Z"
}
API token generated from your Splox account settings. Create tokens at https://app.splox.io/account?tab=settings
Chat created successfully