# List recently completed tasks in a project

`GET /api/project/{projectId}/task/completed`

URL: https://repsona.com/api/get-project-projectid-task-completed

## Parameters

| name | in | type | required | description |
| --- | --- | --- | --- | --- |
| `projectId` | path | "@all" \| integer | required | A project ID, or `@all` for every open project you belong to. |
| `page` | query | integer |  | Page number, starting at 1. Each page has up to 30 tasks. |

## Request

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

## Responses

- 200: Closed tasks ordered by recent update
- 401: Authentication is required
- 403: Not a project member
- 404: Project not found

## Example response

```json
{
  "tasks": [
    {
      "id": 100393,
      "name": "Publish the release notes",
      "projectName": "Website renewal",
      "project": {
        "id": 253,
        "name": "WEB",
        "avatarUrl": ""
      },
      "ancestorNames": [],
      "status": {
        "id": 168,
        "name": "Done",
        "color": null,
        "isClosed": true
      },
      "owner": null,
      "tags": [],
      "dueDate": 1793491200000,
      "priority": null
    }
  ],
  "hasMore": false
}
```
