Tasks
Export task.
Changed onExports the full task conversation history (all prompts and agent responses) as a downloadable file. The file format is selected by the format query parameter.
get/api/v1/projects/{projectId}/tasks/{taskId}/export
Request
- Base URLhttps://app.customgpt.ai
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
projectIdinteger required
Example:1
The unique identifier of the agent.
taskIdstring required
Example:f1b9aaf0-5e4e-11eb-ae93-0242ac130002
The task ID. This is the value returned in data.id when you create a task via POST /tasks.
Query parameters
format'json' | 'excel' | 'csv' | 'pdf'
Example:csv
Export file format. Selects how the conversation history (all prompts and agent responses) is serialised in the downloaded file.
Response
Full task conversation history (all prompts and agent responses) returned as a downloadable file in the format selected by the format query parameter (csv, excel, pdf, or json).
Changes
- info
endpoint added
- info