---
title: "Restore a soft-deleted Project."
method: POST
path: "/projects/{id}/restore"
tags: ["projects"]
---

# Restore a soft-deleted Project.

`POST /projects/{id}/restore`

## Request

- Base URL: `https://restivity.ai/api/v1`
- URL: `https://restivity.ai/api/v1/projects/{id}/restore`
- Auth: OAuth 2 (authorization code, authorization URL `https://restivity.ai/oauth/authorize`, token URL `https://restivity.ai/api/oauth/token`, scopes: `projects:write`)

Clears deleted_at if the row was soft-deleted within the last 30 days. Returns 404 outside the window — the pg_cron purge has already run.

## Path parameters

- `id` string, uuid, required

## Response `200`

The restored Project.

- Project
  - `id` string, uuid, required
  - `user_id` string, uuid, required
  - `name` string, required
  - `description` string, required
  - `color` string, required
  - `is_archived` boolean, required
  - `team_id` string, uuid, nullable, required
  - `prefix` string, nullable, required
  - `task_counter` integer, required
  - `created_at` string, required
  - `updated_at` string, required
  - `deleted_at` string, nullable, required
  - `url` string
  - `scope` string
  - `firestore_id` string, nullable
  - `team_name` string, nullable
  - `team_slug` string, nullable
  - `task_count` integer
  - `completed_task_count` integer
  - `overdue_task_count` integer
  - `next_due_date` string, nullable
  - `is_agent_inbox` boolean
  - `workspace_id` string, uuid, nullable
  - `workspace_short_id` string, nullable
  - `workspace_slug` string, nullable
  - `team_short_id` string, nullable

## Other responses

- `400`: Invalid request shape.
- `401`: Missing or invalid access token.
- `403`: Token lacks the required scope.
- `404`: No such Project in the 30-day restore window.
- `409`: `name_taken` — The scope already has a project of this name: its team for a team project, its workspace for a project in no team. Names are compared without case and without surrounding spaces; nothing was written. Rename, or use the existing project.
- `422`: Request body failed schema validation.
- `429`: Rate-limit exceeded for this tier.

---

[API](https://skmtc.dev/restivity/apis/restivity-rest-api.md) · [All operations](https://skmtc.dev/restivity/apis/restivity-rest-api/llms.txt) · [OpenAPI document](https://skmtc.dev/restivity/apis/restivity-rest-api/revisions/5764e41ebb3a?raw)
