GET /v1/ai/workflow/chat/sessions
List chat sessions for the current organization

Query Parameters

limit integer optional query
Maximum number of sessions to return (default: 20, max: 50)
offset integer optional query
Offset for pagination (default: 0)

Request Body

application/json

Responses

200 OK
application/json
code integer
data object
hasMore boolean
items object[]
Array of:
contextType string
ContextType indicates whether this is a "session" or "workflow" chat
firstMessageAt string
FirstMessageAt is when the first message was sent
lastMessageAt string
LastMessageAt is when the last message was sent
messageCount integer
MessageCount is the total number of messages in this session
preview string
Preview is the content of the first user message (truncated)
sessionId string
SessionID for create-page sessions (client-generated, e.g., session_1234567890_abc)
workflowId string
WorkflowID for edit-page sessions (server-generated UUID)
workflowName string
WorkflowName is the name of the associated workflow (if available)
limit integer
offset integer
message string
requestId string
400 Bad Request
403 Forbidden
curl -X GET 'https://api.example.com/v1/ai/workflow/chat/sessions' \  -H 'Authorization: Bearer YOUR_API_TOKEN' \  -H 'Content-Type: application/json' \  -d '{}'
const response = await fetch('https://api.example.com/v1/ai/workflow/chat/sessions', {  method: 'GET',  headers: {      "Authorization": "Bearer YOUR_API_TOKEN",      "Content-Type": "application/json"  },  body: JSON.stringify({})});const data = await response.json();console.log(data);
import requestsheaders = {    'Authorization': 'Bearer YOUR_API_TOKEN'}response = requests.get('https://api.example.com/v1/ai/workflow/chat/sessions', headers=headers, json={})print(response.json())
package mainimport (	"fmt"	"io"	"net/http"	"strings")func main() {	body := strings.NewReader(`{}`)	req, _ := http.NewRequest("GET", "https://api.example.com/v1/ai/workflow/chat/sessions", body)	req.Header.Set("Authorization", "Bearer YOUR_API_TOKEN")	req.Header.Set("Content-Type", "application/json")	resp, _ := http.DefaultClient.Do(req)	defer resp.Body.Close()	result, _ := io.ReadAll(resp.Body)	fmt.Println(string(result))}
200 Response
{  "code": 200,  "data": {    "hasMore": true,    "items": [      {        "contextType": "<string>",        "firstMessageAt": "<string>",        "lastMessageAt": "<string>",        "messageCount": 123,        "preview": "<string>",        "sessionId": "<string>",        "workflowId": "<string>",        "workflowName": "<string>"      }    ],    "limit": 123,    "offset": 123  },  "message": "success",  "requestId": "req_abc123"}