API Documentation
Hooks
Tasks
Create
POST
/
rest
/
tasks
Copy
curl --request POST \
--url https://copilotz.com/rest/tasks \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"extId": "This is an external ID if you want to match an external system.",
"workflow": 1,
"currentStep": 1,
"status": "active",
"name": "Task Name",
"description": "This is the description you want to give for your task.",
"context": {}
}'
Copy
{
"extId": "This is an external ID if you want to match an external system.",
"workflow": 1,
"currentStep": 1,
"status": "active",
"name": "Task Name",
"description": "This is the description you want to give for your task.",
"context": {}
}
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
application/json
Request payload for creating or updating a task within a workflow.
Response
200 - application/json
Successful response
Response containing task details within a workflow.
Copy
curl --request POST \
--url https://copilotz.com/rest/tasks \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"extId": "This is an external ID if you want to match an external system.",
"workflow": 1,
"currentStep": 1,
"status": "active",
"name": "Task Name",
"description": "This is the description you want to give for your task.",
"context": {}
}'
Copy
{
"extId": "This is an external ID if you want to match an external system.",
"workflow": 1,
"currentStep": 1,
"status": "active",
"name": "Task Name",
"description": "This is the description you want to give for your task.",
"context": {}
}
Assistant
Responses are generated using AI and may contain mistakes.