Sessions
Create agent task file download session
Create a session that lets the client download a file produced by an agent task. Use the returned clientToken with the file-download client flow.
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 '{ "createAgentTaskFileDownload": { "agentTaskFileId": "atf_exampleagenttaskfileid000000000" } }'{ "id": "example-session-id", "createdAt": "2024-04-08T17:02:27.887295Z", "type": "CREATE_AGENT_TASK_FILE_DOWNLOAD", "clientToken": "client token"}