Lister les tâches avec l'API Wrike

Liste les tâches d'un espace, dossier ou projet, jusqu'à 1000 par page. Quand la réponse apporte nextPageToken, envoyez-le pour récupérer la page suivante.

Identifiant
wrike_list_tasks

L'appel

POST https://connect.reportei.com/api/tools/wrike_list_tasks/execute
Authorization: Bearer <merchant token>
x-customer-token: <customer token>
Content-Type: application/json
Accept: application/json

{
  "customer_toolkit": "<connection UUID>",
  "arguments": {
    "folderId": "<folderId>"
  }
}

Votre système envoie l'id de la connexion de votre client et les arguments de la tool. Les headers sont les mêmes que pour toute l'API Connect : le token de votre produit et celui de votre client.

Paramètres

Les descriptions des paramètres suivent la documentation officielle de l'app, en anglais.

ParamètreTypeObligatoireDescription
folderIdstringOuiId of the space, folder or project, from List folders.
descendantsbooleanNonTrue to include the tasks of the folders and projects inside it.
titlestringNonOnly tasks whose title contains this text.
statusstringNonOnly tasks in these statuses: JSON array of statuses, any of Active, Deferred, Completed and Cancelled, such as ["Active"].
importancestringNonOnly tasks with this importance.Valeurs : High, Normal, Low
responsiblesstringNonOnly tasks assigned to any of these users: JSON array of user ids from List contacts, such as ["KUAJ25LC"].
customStatusesstringNonOnly tasks in these custom statuses: JSON array of custom status ids from List workflows, such as ["IEAAAAAAJMAAAAAA"].
startDatestringNonStart date filter: JSON object with an exact date in equal, or a range in start and end, as yyyy-MM-dd with an optional THH:mm:ss, such as {"start":"2026-11-01","end":"2026-11-30"}.
dueDatestringNonDue date filter: JSON object with an exact date in equal, or a range in start and end, as yyyy-MM-dd with an optional THH:mm:ss, such as {"start":"2026-11-01","end":"2026-11-30"}.
createdDatestringNonCreated date filter: JSON object with start and end in UTC, as yyyy-MM-ddTHH:mm:ssZ, such as {"start":"2026-11-01T00:00:00Z","end":"2026-11-30T23:59:59Z"}.
updatedDatestringNonUpdated date filter: JSON object with start and end in UTC, as yyyy-MM-ddTHH:mm:ssZ, such as {"start":"2026-11-01T00:00:00Z","end":"2026-11-30T23:59:59Z"}.
completedDatestringNonCompleted date filter: JSON object with start and end in UTC, as yyyy-MM-ddTHH:mm:ssZ, such as {"start":"2026-11-01T00:00:00Z","end":"2026-11-30T23:59:59Z"}.
typestringNonOnly tasks of this type: Planned has dates, Backlog has none, Milestone has only a due date.Valeurs : Planned, Backlog, Milestone
subTasksbooleanNonTrue to also search the subtasks.
sortFieldstringNonField the tasks are sorted by.Valeurs : Status, Importance, UpdatedDate, CreatedDate, Title, StartFinishInterval, DueDate, LastAccessDate, CompletedDate
sortOrderstringNonSort order.Valeurs : Asc, Desc
pageSizeintegerNonTasks per page, up to 1000.
nextPageTokenstringNonThe nextPageToken of the previous response, to fetch the next page. Send the same fields again.
fieldsstringNonJSON array of optional fields to add to each task, such as ["responsibleIds","description","customFields"]. Assignees and description only come when asked here.

Connexions possibles

Votre client connecte son compte Wrike une seule fois, avec l'un des modes ci-dessous. La même connexion sert à toutes les tools du toolkit.

OAuth avec l'app de votre produit

Vous enregistrez une fois l'app OAuth de votre produit, avec POST /api/merchants/credentials/wrike, et votre client autorise le compte sur un écran de consentement. Connect renouvelle le token avant son expiration.

À la connexion, votre client indique aussi {host} : l'adresse de son compte sur l'API de l'app.

La réponse

En cas de succès, Connect conserve le statut et le corps de la réponse de l'app. Les erreurs HTTP renvoyées par l'app utilisent l'objet {error, api_error} ; l'authentification ou la validation peuvent échouer avant l'exécution. Le header X-Toolkit-Execution-Id identifie l'exécution enregistrée, consultable avec GET /api/tools/executions/{uuid}.

Prête pour les agents IA

L'input de cette tool est un JSON Schema, disponible via GET /api/tools/wrike_list_tasks. Il devient la définition de tool de votre agent sans conversion.

Autres tools Wrike

Voir les 13 tools

Toolkits de la même catégorie

Voir les 100 toolkits

Voyez Connect appliqué à votre produit.

Essayez-le pendant 15 jours sans carte, ou présentez votre cas à notre équipe.