The tasks API allows you to
- list tasks
- skip tasks
- complete tasks
A typical flow includes:
-
Getting a list of tasks via
GET /tasks/
-
Doing something about them outside Amplemarket
-
Skipping or completing the task via API
Only scheduled and manual tasks can be completed via API (status = scheduled and automatic = false)
Task Object
Example Task Object
Errors
Attempting to Complete an Ineligible Task
If you attempt to complete an already completed task, the API will handle it gracefully and return an HTTP 200
If you try to complete a task that is not eligible (e.g., automatic tasks or tasks not in scheduled status), you will receive an error response: