# List tasks the user marked for today

`GET /api/user/{userId}/task/today`

URL: https://repsona.com/api/get-user-userid-task-today

## Parameters

| name | in | type | required | description |
| --- | --- | --- | --- | --- |
| `userId` | path | integer | required | ID of the user. |

## Request

```sh
curl -X GET "https://<space>.repsona.com/api/user/{userId}/task/today" \
  -H "Authorization: Bearer $REPSONA_API_KEY"
```

## Responses

- 200: Tasks the user marked for today (within projects visible to the requester)
- 401: Authentication is required
- 404: User not found

## Example response

```json
{
  "tasks": [
    {
      "id": 100441,
      "name": "Write release notes",
      "projectName": "Beta Launch",
      "project": {
        "id": 297,
        "name": "beta-launch",
        "avatarUrl": null
      },
      "ancestorNames": [],
      "status": null,
      "owner": {
        "id": 1126,
        "name": "reon",
        "fullName": "Reon Walls",
        "avatarUrl": null,
        "color": null
      },
      "tags": [],
      "dueDate": 1793749051067,
      "priority": null
    },
    {
      "id": 100443,
      "name": "Fix login redirect",
      "projectName": "Beta Launch",
      "project": {
        "id": 297,
        "name": "beta-launch",
        "avatarUrl": null
      },
      "ancestorNames": [],
      "status": null,
      "owner": {
        "id": 1126,
        "name": "reon",
        "fullName": "Reon Walls",
        "avatarUrl": null,
        "color": null
      },
      "tags": [],
      "dueDate": 1793835451067,
      "priority": null
    }
  ]
}
```
