List tasks

There are four options of filtering your list of tasks. It is possible to filter them by: assignees, filtering by their emails and status; targets, filtering by the targetId and status; paged tasks, filtering by page, perPage and status; and context, filtering by context, page, perPage, and status.

Request body example - by Assignee

curl --location --request GET 'https://{{accountName}}.{{environment}}.com.br/api/do/tasks?assignee.email={{[email protected]}}&status={{open}}' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--header 'X-VTEX-API-AppToken: {{X-VTEX-API-AppToken}}' \
--header 'X-VTEX-API-AppKey: {{X-VTEX-API-AppKey}}'

Request body example - by Target

curl --location --request GET 'https://{{accountName}}.{{environment}}.com.br/api/do/tasks?target.id={{name}}&status={{open}}' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--header 'X-VTEX-API-AppToken: {{X-VTEX-API-AppToken}}' \
--header 'X-VTEX-API-AppKey: {{X-VTEX-API-AppKey}}'

Request body example - by Paged Tasks

curl --location --request GET 'https://{{accountName}}.{{environment}}.com.br/api/do/tasks?page={{1}}&perPage={{10}}&status=;{{-Closed}}' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--header 'X-VTEX-API-AppToken: {{X-VTEX-API-AppToken}}' \
--header 'X-VTEX-API-AppKey: {{X-VTEX-API-AppKey}}'

Request body example - by Context

curl --location --request GET 'https://{{accountName}}.{{environment}}.com.br/api/do/tasks?context={{context}}&page={{1}}&perPage={{10}}&status={{-Closed}}' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--header 'X-VTEX-API-AppToken: {{X-VTEX-API-AppToken}}' \
--header 'X-VTEX-API-AppKey: {{X-VTEX-API-AppKey}}'
Language
Authentication
URL
Click Try It! to start a request and see the response here!