Tasks
List tasks.
Changed onReturns all Plan & Act mode tasks for an agent, paginated. Tasks are ordered by most recent activity.
get/api/v1/projects/{projectId}/tasks
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.
Query parameters
pageinteger
The page to retrieve. Page numbering starts at 1.
To retrieve all tasks, keep incrementing this value until it equals last_page in the response. Default: 1.
limitinteger
Number of results per page
Response
Paginated list of tasks for the given agent.
Example response
{
"status": "success",
"data": {
"current_page": 1,
"data": [
{
"id": "f1b9aaf0-5e4e-11eb-ae93-0242ac130002",
"project_id": 1,
"name": "Analyse this document",
"created_at": "Monday, 01-Jan-24 12:00:00 UTC",
"updated_at": "Monday, 01-Jan-24 12:00:00 UTC"
}
],
"first_page_url": "https://app.customgpt.ai/api/v1/users?page=1",
"from": 1,
"last_page": 1,
"last_page_url": "https://app.customgpt.ai/api/v1/users?page=1",
"next_page_url": "https://app.customgpt.ai/api/v1/users?page=1",
"path": "https://app.customgpt.ai/api/v1/users?page=1",
"per_page": 10,
"prev_page_url": "https://app.customgpt.ai/api/v1/users?page=1",
"to": 1,
"total": 1
}
}Changes
- info
endpoint added
- info