---
title: Copy an object
description: Copies an object to another key in the same bucket.
doc_version: 0.1.0-preview
last_updated: 2026-09-14
---

# Copy an object

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

Copies an object to another key in the same bucket. 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

- `destinationKey` (string (optional)) — The key to copy to, in the same bucket.

## Example request

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

## CLI

```bash
graphon objects copy support-tickets a.json --destination-key b.json
```

## Sitemap

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