Sessions
Create explore product session
Create a session for an EXPLORE_PRODUCT agent task. Use allowedActions to limit which browser actions the task may declare.
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
curl -X POST "https://example.com/v1/sessions" \ -H "Content-Type: application/json" \ -d '{ "createAgentTask": { "taskType": "EXPLORE_PRODUCT", "allowedActions": [ "setTheme", "applyFilter" ] } }'{ "id": "example-session-id", "createdAt": "2024-04-08T17:02:27.887295Z", "type": "CREATE_AGENT_TASK", "clientToken": "client token"}