# Tasks

## List tasks

> Returns tasks filtered by user, form, and/or date range.\
> All date parameters are UNIX timestamps.\
> Use \`me\` (no value required) to return tasks for the authenticated user.<br>

```json
{"openapi":"3.0.3","info":{"title":"Daxium Air API","version":"v1.3"},"tags":[{"name":"tasks"}],"servers":[{"url":"https://api.daxium-air.com","description":"Production"}],"security":[{"BearerAuth":[]}],"components":{"securitySchemes":{"BearerAuth":{"type":"http","scheme":"bearer"}},"parameters":{"AppShort":{"name":"app_short","in":"path","required":true,"description":"Short name of the workspace instance (e.g. `daxium-test`)","schema":{"type":"string"}}},"schemas":{"TaskListResponse":{"type":"object","properties":{"tasks":{"type":"array","items":{"$ref":"#/components/schemas/Task"}},"total_count":{"type":"integer"},"total_pages":{"type":"integer"},"server_time":{"type":"integer","format":"int64"}}},"Task":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"created_at":{"type":"integer","format":"int64"},"updated_at":{"type":"integer","format":"int64"},"start_date":{"type":"integer","format":"int64","description":"Planned start date (Unix timestamp)"},"due_date":{"type":"integer","format":"int64","description":"Due date (Unix timestamp)"},"duration":{"type":"integer","description":"Expected duration in seconds"},"delay_before":{"type":"integer","description":"Indicative display delay in seconds before the task begins"},"delay_after":{"type":"integer","description":"Indicative display delay in seconds after task completion time"},"user_id":{"type":"integer"},"submission":{"$ref":"#/components/schemas/Submission"}}},"Submission":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"structure_id":{"type":"integer"},"structure_version":{"type":"integer"},"created_at":{"type":"integer","format":"int64"},"updated_at":{"type":"integer","format":"int64"},"data_created_at":{"type":"integer","format":"int64"},"data_updated_at":{"type":"integer","format":"int64"},"user_id":{"type":"integer"},"channels":{"type":"array","items":{"type":"string"}},"items":{"type":"object","additionalProperties":true,"description":"Key/value map keyed by system field name.\n\n**Simple:** text/email → string | number → float | boolean → bool |\ndate → Unix timestamp | duration → ms | phone → RFC 3966\n\n**location:** `{lat, lng, address}`\n\n**image/signature/file:** `[{id, name, mimeType, extension, size, comment}]`\n\n**list:** `[id, …]`\n\n**relation:** `{submissions: [{id, count?}, …]}`\n\n**user:** `[{id}, …]`\n"},"submission_number":{"type":"integer"},"number_in_structure":{"type":"integer"},"latitude":{"type":"number","format":"double"},"longitude":{"type":"number","format":"double"},"last_updated_user_id":{"type":"integer"},"current_state":{"type":"string","format":"uuid","nullable":true,"description":"Current workflow state UUID"},"assigned_user":{"$ref":"#/components/schemas/UserRef"},"subscribers":{"type":"array","items":{}},"settings":{"type":"array","items":{}}}},"UserRef":{"type":"object","properties":{"id":{"type":"integer"},"email":{"type":"string","format":"email"},"first_name":{"type":"string"},"last_name":{"type":"string"},"groups":{"type":"array","items":{}},"system_groups":{"type":"array","items":{}}}}}},"paths":{"/{app_short}/tasks":{"get":{"summary":"List tasks","description":"Returns tasks filtered by user, form, and/or date range.\nAll date parameters are UNIX timestamps.\nUse `me` (no value required) to return tasks for the authenticated user.\n","tags":["tasks"],"operationId":"listTasks","parameters":[{"$ref":"#/components/parameters/AppShort"},{"name":"structure_id","in":"query","description":"Filter by form identifier","schema":{"type":"string"}},{"name":"greater_start_date","in":"query","description":"Start date ≥ this timestamp","schema":{"type":"integer","format":"int64"}},{"name":"lower_start_date","in":"query","description":"Start date ≤ this timestamp","schema":{"type":"integer","format":"int64"}},{"name":"greater_due_date","in":"query","description":"Due date ≥ this timestamp","schema":{"type":"integer","format":"int64"}},{"name":"lower_due_date","in":"query","description":"Due date ≤ this timestamp","schema":{"type":"integer","format":"int64"}},{"name":"user_id","in":"query","description":"Filter by user ID","schema":{"type":"integer"}},{"name":"me","in":"query","description":"If present, return only the authenticated user's tasks","schema":{"type":"boolean"}},{"name":"page","in":"query","schema":{"type":"integer"}},{"name":"per_page","in":"query","schema":{"type":"integer"}}],"responses":{"200":{"description":"Paginated list of tasks","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskListResponse"}}}}}}}}}
```


---

# Agent Instructions: Querying This Documentation

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

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://www.center.daxium-air.com/api-reference/tasks.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
