> For the complete documentation index, see [llms.txt](https://help.aphex.co/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.aphex.co/docs/aphex-help-fr/integrations-et-api/api/aphex-tasks-api/taches.md).

# Tâches

Les tâches du projet sont l’objet central d’Aphex Plan - ce point de terminaison renverra des données de tâches en temps réel pour une requête fournie.

## Obtenir les tâches

Utilisez ce point de terminaison pour interroger les tâches d’un projet.

## get tasks

> Get tasks

```json
{"openapi":"3.1.1","info":{"title":"Plan API","version":"1.4.0"},"servers":[{"url":"https://app.aphex.co/"}],"paths":{"/{region}/v1/projects/{projectId}/tasks":{"get":{"description":"Get tasks","parameters":[{"schema":{"type":"string","enum":["gb","au"]},"description":"gb | au","in":"path","name":"region","required":true},{"schema":{"type":"string"},"description":"projectId","in":"path","name":"projectId","required":true},{"schema":{"type":"string"},"description":"YYYY-MM-DD formatted date","in":"query","name":"start"},{"schema":{"type":"string"},"description":"YYYY-MM-DD formatted date","in":"query","name":"finish"},{"schema":{"type":"string","enum":["day","afternoon","night","24hr"]},"description":"day | afternoon | night | 24hr","in":"query","name":"shift"},{"schema":{"type":"string"},"description":"comma-delimited user IDs","in":"query","name":"ownerIds"},{"schema":{"type":"string"},"description":"comma-delimited folder IDs","in":"query","name":"folderIds"},{"schema":{"type":"string"},"description":"comma-delimited package IDs","in":"query","name":"packageIds"},{"schema":{"type":"string"},"description":"comma-delimited location IDs","in":"query","name":"locationIds"},{"schema":{"type":"string"},"description":"comma-delimited calendar IDs","in":"query","name":"calendarIds"},{"schema":{"type":"string"},"description":"comma-delimited subcontractor IDs","in":"query","name":"subcontractorIds"},{"schema":{"type":"string"},"description":"comma-delimited user IDs","in":"query","name":"assignedToIds"},{"schema":{"type":"string"},"description":"comma-delimited additional fields (assignees,wbs,package,parent,contractor,labourResources,plantResources,materialResources,location,workArea,progress,predecessors,successors,externalId,notes,tags,blockers,production,productionPlanned,atRisk)","in":"query","name":"fields"},{"schema":{"type":"string"},"description":"access token","in":"header","name":"X-API-Key","required":true}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/HttpResponse"},{"properties":{"results":{"items":{"$ref":"#/components/schemas/Task"},"type":"array"}},"type":"object"}]}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/echo.HTTPError"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/echo.HTTPError"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/echo.HTTPError"}}}}},"summary":"get tasks"}}},"components":{"schemas":{"HttpResponse":{"properties":{"paging":{"$ref":"#/components/schemas/HttpPaging"},"results":{}},"type":"object"},"HttpPaging":{"properties":{"next":{"$ref":"#/components/schemas/HttpPage"}},"type":"object"},"HttpPage":{"properties":{"after":{"type":"string"},"link":{"type":"string"}},"type":"object"},"Task":{"properties":{"assignedTo":{"description":"* Optional task fields","items":{"$ref":"#/components/schemas/User"},"type":"array"},"atRisk":{"type":"boolean"},"blockers":{"items":{"$ref":"#/components/schemas/TaskBlocker"},"type":"array"},"calendar":{"$ref":"#/components/schemas/TaskCalendar"},"duration":{"type":"integer"},"externalId":{"type":"string"},"finish":{"type":"string"},"folder":{"$ref":"#/components/schemas/TaskFolder"},"id":{"description":"* Default task fields","type":"string"},"keyTask":{"type":"boolean"},"labour":{"items":{"$ref":"#/components/schemas/TaskLabour"},"type":"array"},"location":{"$ref":"#/components/schemas/TaskLocation"},"materials":{"items":{"$ref":"#/components/schemas/TaskMaterial"},"type":"array"},"name":{"type":"string"},"notes":{"type":"string"},"owner":{"$ref":"#/components/schemas/User"},"package":{"$ref":"#/components/schemas/TaskPackage"},"parent":{"$ref":"#/components/schemas/TaskParent"},"plant":{"items":{"$ref":"#/components/schemas/TaskPlant"},"type":"array"},"production":{"$ref":"#/components/schemas/TaskProduction"},"productionPlanned":{"additionalProperties":{"format":"float64","type":"number"},"type":"object"},"progress":{"items":{"$ref":"#/components/schemas/TaskStatusEvent"},"type":"array"},"relatedTasks":{"items":{"$ref":"#/components/schemas/RelatedTask"},"type":"array"},"shift":{"enum":["day","afternoon","night","24hr"],"type":"string"},"start":{"type":"string"},"status":{"enum":["planned","promised","done"],"type":"string"},"subcontractor":{"$ref":"#/components/schemas/Subcontractor"},"tags":{"items":{"$ref":"#/components/schemas/TaskTag"},"type":"array"},"workArea":{"$ref":"#/components/schemas/geojson.Feature"}},"type":"object"},"User":{"properties":{"displayName":{"type":"string"},"email":{"type":"string"},"id":{"type":"string"}},"type":"object"},"TaskBlocker":{"properties":{"category":{"type":"string"},"displayName":{"type":"string"},"dueDate":{"type":"string"},"id":{"type":"string"},"status":{"enum":["open","overdue","resolved"],"type":"string"}},"type":"object"},"TaskCalendar":{"properties":{"id":{"type":"string"},"name":{"type":"string"},"type":{"enum":["five-day","six-day","seven-day","two-day","custom"],"type":"string"}},"type":"object"},"TaskFolder":{"properties":{"code":{"type":"string"},"id":{"type":"string"},"name":{"type":"string"},"parentId":{"type":"string"},"path":{"type":"string"}},"type":"object"},"TaskLabour":{"properties":{"id":{"type":"string"},"name":{"type":"string"},"quantity":{"type":"number"}},"type":"object"},"TaskLocation":{"properties":{"id":{"type":"string"},"name":{"type":"string"},"type":{"enum":["map","drawing","off-site"],"type":"string"}},"type":"object"},"TaskMaterial":{"properties":{"dailyActual":{"items":{"$ref":"#/components/schemas/ResourceAllocation"},"type":"array"},"dailyPlanned":{"items":{"$ref":"#/components/schemas/ResourceAllocation"},"type":"array"},"id":{"type":"string"},"name":{"type":"string"},"quantity":{"type":"number"},"unit":{"type":"string"}},"type":"object"},"ResourceAllocation":{"properties":{"date":{"type":"string"},"quantity":{"type":"number"}},"type":"object"},"TaskPackage":{"properties":{"code":{"type":"string"},"id":{"type":"string"},"name":{"type":"string"}},"type":"object"},"TaskParent":{"properties":{"id":{"type":"string"},"name":{"type":"string"}},"type":"object"},"TaskPlant":{"properties":{"category":{"type":"string"},"id":{"type":"string"},"name":{"type":"string"},"quantity":{"type":"number"}},"type":"object"},"TaskProduction":{"properties":{"averageDailyOutput":{"type":"number"},"behindPace":{"type":"boolean"},"completedQuantity":{"type":"number"},"measureId":{"type":"string"},"name":{"type":"string"},"percentComplete":{"type":"number"},"remainingQuantity":{"type":"number"},"targetRate":{"type":"number"},"totalQuantity":{"type":"number"},"unit":{"type":"string"},"unitName":{"type":"string"}},"type":"object"},"TaskStatusEvent":{"properties":{"amount":{"type":"integer"},"date":{"type":"string"},"name":{"type":"string"},"production":{"$ref":"#/components/schemas/ProgressProduction"},"type":{"enum":["delay","not-started","on-schedule","shortened","started-early"],"type":"string"}},"type":"object"},"ProgressProduction":{"properties":{"behindPace":{"description":"True when the task's total output up to this date falls short of the\ntotal planned by this date. Compares running totals, so a slow day on a\ntask that is ahead overall reads false.","type":"boolean"},"cumulativePercent":{"type":"number"},"cumulativeQuantity":{"type":"number"},"measureId":{"type":"string"},"outputToday":{"type":"number"},"unit":{"type":"string"},"unitName":{"type":"string"}},"type":"object"},"RelatedTask":{"properties":{"id":{"type":"string"},"lag":{"type":"integer"},"name":{"type":"string"},"relation":{"enum":["predecessor","successor"],"type":"string"},"type":{"enum":["start-start","start-finish","finish-start","finish-finish"],"type":"string"}},"type":"object"},"Subcontractor":{"properties":{"id":{"type":"string"},"name":{"type":"string"}},"type":"object"},"TaskTag":{"properties":{"displayName":{"type":"string"},"id":{"type":"string"}},"type":"object"},"geojson.Feature":{"properties":{"bbox":{"items":{"type":"number"},"type":"array"},"geometry":{},"id":{},"properties":{"$ref":"#/components/schemas/geojson.Properties"},"type":{"type":"string"}},"type":"object"},"geojson.Properties":{"additionalProperties":{},"type":"object"},"echo.HTTPError":{"properties":{"message":{}},"type":"object"}}}}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://help.aphex.co/docs/aphex-help-fr/integrations-et-api/api/aphex-tasks-api/taches.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
