---
title: Restore an object
description: Restores a deleted or replaced version from recovery.
doc_version: 0.1.0-preview
last_updated: 2026-09-14
---

# Restore an object

`POST /v1/workspaces/{workspaceId}/buckets/{bucketId}/objects/{keyToken}/restore`

Restores a deleted or replaced version from recovery. Get the recoveryId from GET …/recovery. Role: editor or higher.

## 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.
- `bucketId` (string) — The bucket id.
- `keyToken` (string) — The object key, base64url-encoded without padding.

## Request body

- `recoveryId` (string) — The recoveryId from GET …/recovery.

## Example request

```bash
curl \
  --url "https://g4.beta.graphon.ai/v1/workspaces/wspQ7WsH2Np5L/buckets/bktA1b2C3d4E5/objects/aW5jaWRlbnRzL2NoZWNrb3V0LXRpbWVvdXQuanNvbg/restore" \
  --header "Authorization: Bearer $GRAPHON_API_KEY" \
  --header "Content-Type: application/json" \
  --data '{"recoveryId":"ver_3f9c2a7d1e4b4c8a9f0d6b2e5a1c7d3f"}'
```

## CLI

```bash
graphon objects restore support-tickets incidents/checkout-timeout.json --recovery-id <recoveryId>
```

## Sitemap

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