---
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 human session that was an Admin at deletion. Returns the same workspace id. API keys cannot call this route.

## Authentication

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

## Path parameters

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

## Example request

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

## Example response

```json
{
  "id": "wspQ7WsH2Np5L"
}
```

## Sitemap

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