Buscar tareas en Wrike, con una API

Busca las tareas de toda la cuenta, como las asignadas a alguien o con fecha límite esta semana, hasta 1000 por página. Cuando la respuesta trae nextPageToken, envíalo para obtener la página siguiente.

Identificador
wrike_search_tasks

La llamada

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

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

Tu sistema envía el id de la conexión de tu cliente y los argumentos de la tool. Los headers son los mismos de toda la API de Connect: el token de tu producto y el token de tu cliente.

Parámetros

Las descripciones de los parámetros siguen la documentación oficial de la app, en inglés.

ParámetroTipoObligatorioDescripción
titlestringNoOnly tasks whose title contains this text.
statusstringNoOnly tasks in these statuses: JSON array of statuses, any of Active, Deferred, Completed and Cancelled, such as ["Active"].
importancestringNoOnly tasks with this importance.Valores: High, Normal, Low
responsiblesstringNoOnly tasks assigned to any of these users: JSON array of user ids from List contacts, such as ["KUAJ25LC"].
customStatusesstringNoOnly tasks in these custom statuses: JSON array of custom status ids from List workflows, such as ["IEAAAAAAJMAAAAAA"].
startDatestringNoStart 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"}.
dueDatestringNoDue 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"}.
createdDatestringNoCreated 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"}.
updatedDatestringNoUpdated 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"}.
completedDatestringNoCompleted 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"}.
typestringNoOnly tasks of this type: Planned has dates, Backlog has none, Milestone has only a due date.Valores: Planned, Backlog, Milestone
subTasksbooleanNoTrue to also search the subtasks.
sortFieldstringNoField the tasks are sorted by.Valores: Status, Importance, UpdatedDate, CreatedDate, Title, StartFinishInterval, DueDate, LastAccessDate, CompletedDate
sortOrderstringNoSort order.Valores: Asc, Desc
pageSizeintegerNoTasks per page, up to 1000.
nextPageTokenstringNoThe nextPageToken of the previous response, to fetch the next page. Send the same fields again.
fieldsstringNoJSON array of optional fields to add to each task, such as ["responsibleIds","description","customFields"]. Assignees and description only come when asked here.
permalinkstringNoPermalink of a task, as Wrike shows it, to find that one.

Conexiones posibles

Tu cliente conecta su cuenta de Wrike una sola vez, con uno de los modos de abajo. La misma conexión sirve para todas las tools del toolkit.

OAuth con la app de tu producto

Registras la app OAuth de tu producto una sola vez, con POST /api/merchants/credentials/wrike, y tu cliente autoriza la cuenta en una pantalla de consentimiento. Connect renueva el token cuando está por vencer.

Al conectar, tu cliente también indica {host}: la dirección de su cuenta en la API de la app.

La respuesta

Si la llamada tiene éxito, Connect conserva el status y el cuerpo de la respuesta de la app. Los errores HTTP devueltos por la app usan el objeto {error, api_error}; la autenticación o validación pueden fallar antes de la ejecución. El header X-Toolkit-Execution-Id identifica la ejecución registrada, disponible en GET /api/tools/executions/{uuid}.

Lista para agentes de IA

El input de esta tool es un JSON Schema, disponible en GET /api/tools/wrike_search_tasks. Se convierte en la definición de tool de tu agente sin conversión.

Otras tools de Wrike

Ver las 13 tools

Toolkits de la misma categoría

Ver los 100 toolkits

Mira Connect aplicado a tu producto.

Pruébalo durante 15 días sin tarjeta, o cuéntale tu caso a nuestro equipo.