---
title: Restore a workspace
description: Restores a deleted workspace within its recovery window.
doc_version: 0.1.0-preview
last_updated: 2026-09-14
---

# Restore a workspace

`POST /v1/workspaces/{workspaceId}/restore`

Restores a deleted workspace within its recovery window. Requires a signed-in user who was an admin when the workspace was deleted. Returns the same workspace id. An API key cannot call it.

## Authentication

Send `Authorization: Bearer <GRAPHON_API_KEY>`. Read the key from the
GRAPHON_API_KEY environment variable. Never print it.

## Path parameters

- `workspaceId` (string) — The workspace id.

## Example request

```bash
curl --request POST \
  --url "https://api.graphon.ai/v1/workspaces/wspq7ws2np5l8z4/restore" \
  --header "Authorization: Bearer $GRAPHON_API_KEY"
```

## Example response

```json
{
  "id": "wspq7ws2np5l8z4",
  "name": "Ada Lovelace’s workspace",
  "revision": 1
}
```

## Sitemap

See the full [sitemap](/sitemap.md) for all pages.
