> For the complete documentation index, see [llms.txt](https://www.center.daxium-air.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://www.center.daxium-air.com/api-reference/tasks.md).

# Tasks

Retrieve tasks linked to submissions

## Search tasks

> Returns the tasks of the workspace, filtered by the query parameters below.

```json
{"openapi":"3.0.0","info":{"title":"Daxium Air API","version":"v1.3"},"tags":[{"name":"tasks"}],"servers":[{"url":"https://api.daxium-air.com","description":"Production"}],"security":[{"oauth2":[]}],"components":{"securitySchemes":{"oauth2":{"type":"oauth2","description":"Send the access token as `Authorization: Bearer <token>`.","flows":{"password":{"tokenUrl":"/oauth/v2/token","refreshUrl":"/oauth/v2/token","scopes":{}},"authorizationCode":{"authorizationUrl":"/oauth/v2/auth","tokenUrl":"/oauth/v2/token","refreshUrl":"/oauth/v2/token","scopes":{}}}}},"parameters":{"XAcceptVersion":{"name":"X-Accept-Version","in":"header","description":"API version to apply. Defaults to `v1.0` when omitted; an unknown value falls back to the latest version.","required":false,"schema":{"type":"string","default":"v1.3","enum":["v1.0","v1.1","v1.2","v1.3"]}}},"schemas":{"TaskListResponse":{"properties":{"server_time":{"type":"integer","format":"int64"},"tasks":{"type":"array","items":{"$ref":"#/components/schemas/Task"}},"total_count":{"type":"integer"},"total_pages":{"type":"integer"}},"type":"object"},"Task":{"properties":{"created_at":{"type":"integer","format":"int64"},"deleted_at":{"description":"Deletion timestamp. Present only when the task has been deleted.","type":"integer","format":"int64"},"delay_after":{"description":"Indicative display delay in seconds after task completion time","type":"integer"},"delay_before":{"description":"Indicative display delay in seconds before the task begins","type":"integer"},"due_date":{"description":"Due date (Unix timestamp)","type":"integer","format":"int64"},"duration":{"description":"Expected duration in seconds","type":"integer"},"fill_status":{"description":"Whether the linked submission's end-date field has been filled in.","type":"string","enum":["filled","notfilled"]},"id":{"type":"string","format":"uuid"},"recurrency":{"description":"Present only on a recurring task.","allOf":[{"$ref":"#/components/schemas/Recurrency"}]},"start_date":{"description":"Planned start date (Unix timestamp)","type":"integer","format":"int64"},"submission":{"$ref":"#/components/schemas/Submission"},"submission_model":{"description":"Present only when the task has a submission model configured — the template the task's own submission was created from.","allOf":[{"$ref":"#/components/schemas/Submission"}]},"time_status":{"description":"Whether the task is on time relative to its due date.","type":"string","enum":["normal","late","advance","notplanned","error"]},"updated_at":{"type":"integer","format":"int64"},"user_id":{"type":"integer"}},"type":"object"},"Recurrency":{"description":"Recurrence definition for a task. `min_by_week` / `max_by_week` are only present for a `weekly` recurrence, and `repeatEvery` / `ruleMonth` / `numofday` / `nth` / `dayOfWeek` / `taskTiming` are only present for a `monthly` one.","properties":{"days":{"description":"Days of the week (first 3 letters in English: mon, tue, wed, thu, fri, sat, sun).\nFor weekly recurrence, not all days are required.\n","type":"object","additionalProperties":{"properties":{"end":{"description":"Task duration in seconds","type":"integer"},"start":{"description":"Start time (HH:MM format)","type":"string"}},"type":"object"}},"dayOfWeek":{"description":"Monthly recurrence only.","type":"string"},"end":{"description":"Recurrence end condition","properties":{"type":{"description":"`occurrence` = number of occurrences, `date` = end date","type":"string","enum":["occurrence","date"]},"value":{"description":"Number of occurrences or end date (timestamp) depending on `type`","type":"integer"}},"type":"object"},"interval":{"description":"Interval between each occurrence (minimum 1)","type":"integer"},"max_by_week":{"description":"Weekly recurrence only. Maximum number of occurrences per week.","type":"integer"},"min_by_week":{"description":"Weekly recurrence only. Minimum number of occurrences per week.","type":"integer"},"notDaysoff":{"description":"Whether the recurrence ignores the users' days off.","type":"boolean"},"numofday":{"description":"Monthly recurrence only.","type":"integer"},"nth":{"description":"Monthly recurrence only.","type":"integer"},"repeatEvery":{"description":"Monthly recurrence only. Number of months between each occurrence.","type":"integer"},"ruleMonth":{"description":"Monthly recurrence only.","type":"string"},"taskTiming":{"description":"Monthly recurrence only.","type":"string"},"type":{"description":"Recurrence type","type":"string","enum":["daily","weekly","monthly"]}},"type":"object"},"Submission":{"properties":{"id":{"type":"string","format":"uuid"},"structure_id":{"description":"Identifier of the form.","type":"integer"},"structure_version":{"description":"Version of the form the submission was filled against.","type":"integer"},"items":{"description":"Values of the submission, keyed by the system name of the field. The shape of a value depends on the field type.","type":"object","additionalProperties":true},"channels":{"description":"Broadcasts matched by the submission.","type":"array","items":{"type":"string"}},"user_id":{"description":"Owner of the submission.","type":"integer"},"last_updated_user_id":{"description":"User who last modified the submission.","type":"integer"},"assigned_user":{"description":"User the submission is assigned to. Present only when it is assigned.","type":"object"},"user":{"description":"The owner of the submission — same object shape as `assigned_user`. Only present when the request carries `items_expanded=true`; absent on the list and search endpoints regardless of that parameter.","type":"object"},"subscribers":{"description":"Users subscribed to the submission.","type":"array","items":{"type":"string"}},"current_state":{"description":"Workflow state the submission currently sits in.","type":"string","format":"uuid"},"submission_number":{"description":"Sequential number across the workspace.","type":"integer"},"number_in_structure":{"description":"Sequential number within the form.","type":"integer"},"latitude":{"type":"number"},"longitude":{"type":"number"},"settings":{"type":"object"},"task_id":{"description":"Task the submission belongs to, when there is one.","type":"string","format":"uuid"},"data_created_at":{"description":"Creation timestamp of the data on the server.","type":"integer"},"data_updated_at":{"description":"Last update timestamp of the data on the server.","type":"integer"},"created_at":{"type":"integer"},"updated_at":{"type":"integer"},"deleted_at":{"description":"Deletion timestamp. Present only when the submission has been deleted.","type":"integer"},"read_at":{"description":"When the submission was marked as read. Present only once that has happened.","type":"string","format":"date-time"}},"type":"object"},"ErrorResponse":{"description":"Standardised error body returned by the REST exception subscriber.","properties":{"code":{"description":"Daxium error code.","type":"string"},"message":{"type":"string"},"url":{"description":"Link to the error code in the error reference.","type":"string"},"api_version":{"type":"string"},"infos":{"description":"Additional context about the error, when the exception carries any.","type":"array","items":{}},"server_time":{"type":"integer"}},"type":"object"}},"responses":{"Unauthorized":{"description":"Missing or invalid access token.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}},"paths":{"/{app_short}/tasks":{"get":{"tags":["tasks"],"summary":"Search tasks","description":"Returns the tasks of the workspace, filtered by the query parameters below.","operationId":"listTasks","parameters":[{"name":"structure_id","in":"query","description":"structure id.","required":false,"allowEmptyValue":true,"schema":{"type":"string","default":null,"pattern":"\\d+"}},{"name":"greater_start_date","in":"query","description":"all tasks after start date.","required":false,"allowEmptyValue":true,"schema":{"type":"string","default":null,"pattern":"\\d+"}},{"name":"lower_start_date","in":"query","description":"all tasks before start date.","required":false,"allowEmptyValue":true,"schema":{"type":"string","default":null,"pattern":"\\d+"}},{"name":"greater_due_date","in":"query","description":"all tasks with due date after date.","required":false,"allowEmptyValue":true,"schema":{"type":"string","default":null,"pattern":"\\d+"}},{"name":"lower_due_date","in":"query","description":"all tasks with due date before date","required":false,"allowEmptyValue":true,"schema":{"type":"string","default":null,"pattern":"\\d+"}},{"name":"user_id","in":"query","description":"all tasks for user","required":false,"allowEmptyValue":true,"schema":{"type":"string","default":null,"pattern":"\\d+"}},{"name":"me","in":"query","description":"get tasks for current user","required":false,"allowEmptyValue":true,"schema":{"type":"string","default":null}},{"name":"periodic","in":"query","description":"get periodic tasks or not","required":false,"allowEmptyValue":true,"schema":{"type":"string","default":null}},{"name":"page","in":"query","description":"Page of the overview.","required":false,"allowEmptyValue":false,"schema":{"type":"string","default":"0","pattern":"\\d+"}},{"name":"per_page","in":"query","description":"Number of result by page (Max 100)","required":false,"allowEmptyValue":false,"schema":{"type":"string","default":"10","pattern":"-?\\d+"}},{"name":"app_short","in":"path","description":"Short name of the workspace, as found in the URL of the back-office.","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/XAcceptVersion"}],"responses":{"200":{"description":"Paginated list of tasks","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskListResponse"}}}},"401":{"$ref":"#/components/responses/Unauthorized"}}}}}}
```


---

# 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://www.center.daxium-air.com/api-reference/tasks.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.
