# Object storage

S3-compatible buckets, and the access keys any S3 tool uses with them.

Source: https://docs.pantechdynamics.com/api/object-storage

Object storage is in closed beta and available on request: [contact Pantech](https://pantechdynamics.com/contact) to have it enabled for your organization. Until then it does not appear in the console, `GET /object-storage` answers `enabled: false`, and every bucket and key write answers `403 OBJECT_STORAGE_NOT_ENABLED`. Once it is enabled, `GET /object-storage` gives the S3 `endpoint`. Create buckets and access keys here, then read and write objects with any S3-compatible tool or SDK at the `endpoint`. An access key's secret is returned once, when it is created. Stored data is billed per GiB-month, data out per GiB and requests per thousand; see [pricing](https://docs.pantechdynamics.com/storage/object-storage#pricing).

Endpoints:

- `GET /public/v1/object-storage`: Object storage status
- `GET /public/v1/buckets`: List buckets
- `POST /public/v1/buckets`: Create a bucket
- `GET /public/v1/buckets/{bucket_id}`: Get a bucket
- `PATCH /public/v1/buckets/{bucket_id}`: Change a bucket
- `DELETE /public/v1/buckets/{bucket_id}`: Delete a bucket
- `GET /public/v1/object-storage/keys`: List access keys
- `POST /public/v1/object-storage/keys`: Create an access key
- `DELETE /public/v1/object-storage/keys/{storage_key_id}`: Revoke an access key
- `GET /public/v1/object-storage/usage`: Object storage transfer and request usage
- `PATCH /public/v1/object-storage/settings`: Change object storage settings
- `GET /public/v1/buckets/{bucket_id}/stats`: Bucket storage stats
- `POST /public/v1/buckets/{bucket_id}/empty`: Empty a bucket
- `GET /public/v1/buckets/{bucket_id}/objects`: List or search bucket objects and folders
- `GET /public/v1/buckets/{bucket_id}/objects/meta`: Get object properties, metadata, tags and lock status
- `GET /public/v1/buckets/{bucket_id}/objects/download`: Download an object
- `POST /public/v1/buckets/{bucket_id}/objects/download-url`: Request a short-lived direct download URL
- `PUT /public/v1/buckets/{bucket_id}/objects/upload`: Upload an object
- `POST /public/v1/buckets/{bucket_id}/objects/upload-url`: Request a short-lived direct upload URL
- `POST /public/v1/buckets/{bucket_id}/objects/upload-form`: Create a browser upload form
- `POST /public/v1/buckets/{bucket_id}/objects/folder`: Create a folder prefix
- `POST /public/v1/buckets/{bucket_id}/objects/copy`: Copy, rename or update metadata on an object
- `POST /public/v1/buckets/{bucket_id}/objects/delete`: Delete objects, versions or a folder prefix
- `PUT /public/v1/buckets/{bucket_id}/objects/tags`: Replace tags on an object
- `PUT /public/v1/buckets/{bucket_id}/objects/lock`: Update retention or legal hold on an object
- `POST /public/v1/buckets/{bucket_id}/objects/restore-version`: Restore a previous object version or remove a delete marker
- `PUT /public/v1/buckets/{bucket_id}/objects/visibility`: Set an object's public or private visibility
- `GET /public/v1/buckets/{bucket_id}/objects/multipart`: List in-progress multipart uploads
- `POST /public/v1/buckets/{bucket_id}/objects/multipart/start`: Start a multipart upload
- `POST /public/v1/buckets/{bucket_id}/objects/multipart/sign-part`: Sign a direct upload URL for one multipart part
- `POST /public/v1/buckets/{bucket_id}/objects/multipart/sign-parts`: Batch-sign direct upload URLs for multiple multipart parts
- `PUT /public/v1/buckets/{bucket_id}/objects/multipart/part`: Upload one multipart part
- `POST /public/v1/buckets/{bucket_id}/objects/multipart/complete`: Complete a multipart upload
- `POST /public/v1/buckets/{bucket_id}/objects/multipart/abort`: Abort a multipart upload
- `GET /public/v1/buckets/{bucket_id}/cors`: Get bucket CORS rules
- `PUT /public/v1/buckets/{bucket_id}/cors`: Replace bucket CORS rules
- `GET /public/v1/buckets/{bucket_id}/lifecycle`: Get bucket lifecycle rules
- `PUT /public/v1/buckets/{bucket_id}/lifecycle`: Replace bucket lifecycle rules
- `GET /public/v1/buckets/{bucket_id}/tags`: Get bucket tags
- `PUT /public/v1/buckets/{bucket_id}/tags`: Replace bucket tags
- `GET /public/v1/buckets/{bucket_id}/object-lock`: Get bucket default object-lock retention
- `PUT /public/v1/buckets/{bucket_id}/object-lock`: Set bucket default object-lock retention
- `GET /public/v1/buckets/shared`: List shared buckets
- `GET /public/v1/buckets/{bucket_id}/shares`: List bucket shares
- `POST /public/v1/buckets/{bucket_id}/shares`: Share bucket with another organization
- `DELETE /public/v1/buckets/{bucket_id}/shares/{share_id}`: Revoke a bucket share
- `GET /public/v1/buckets/{bucket_id}/notifications`: List bucket event notifications
- `POST /public/v1/buckets/{bucket_id}/notifications`: Create a bucket notification rule
- `PATCH /public/v1/buckets/{bucket_id}/notifications/{notification_id}`: Update a bucket notification rule
- `DELETE /public/v1/buckets/{bucket_id}/notifications/{notification_id}`: Delete a bucket notification rule
- `GET /public/v1/buckets/{bucket_id}/domains`: List bucket custom domains
- `POST /public/v1/buckets/{bucket_id}/domains`: Attach a custom domain to a bucket
- `PATCH /public/v1/buckets/{bucket_id}/domains/{domain_id}`: Update a bucket custom domain
- `DELETE /public/v1/buckets/{bucket_id}/domains/{domain_id}`: Detach a bucket custom domain

## The bucket object

A bucket.

- `id` (string, required): The bucket's id, starting `bkt_`.
- `name` (string, required): The bucket's name, used in S3 requests.
- `region` (string, required): The region code.
- `endpoint` (string, required): The S3 endpoint to send requests to, path-style: `<endpoint>/<name>/<key>`.
- `quota_bytes` (integer, required): Your own limit on the bucket's stored bytes; 0 is none.
- `size_bytes` (integer): Live stored bytes in the bucket.
- `object_count` (integer): Live object count in the bucket.
- `versioning` (boolean, required): Whether overwritten and deleted objects keep their earlier versions.
- `object_lock` (boolean, required): Whether objects can be locked against deletion. Chosen at create only.
- `encryption` (string): Default server-side encryption applied to new objects (`none` or `sse_s3`). One of `none`, `sse_s3`.
- `public_prefixes` (array of string, required): Key prefixes anyone may read without a key, sorted. Empty is wholly private; `[""]` (one empty prefix) is public read for every object.
- `state` (string, required): `provisioning` until the bucket can be used, `updating` while a change is applied. One of `provisioning`, `active`, `updating`, `deleting`, `failed`, `unknown`.
- `created_at` (string, required): When it was created.
- `retired_at` (string or null): When deletion started; null while the bucket is active.
- `purge_due_at` (string or null): When the 12-hour removal completes and the name becomes available again.
## The object storage key object

An S3 access key, without its secret.

- `id` (string, required): The key's id, starting `osk_`.
- `name` (string, required): The key's name.
- `region` (string, required): The region code.
- `access_key_id` (string, required): The S3 access key id S3 tools sign with.
- `read_only` (boolean, required): Whether the key may only read and list. True exactly when `permissions` is `read_only`.
- `permissions` (string, required): What the key may do: `read_write`, `read_only` (read and list), or `write_only` (upload only; it cannot read, list or delete). One of `read_write`, `read_only`, `write_only`.
- `buckets` (array of string, required): The bucket names the key may use; empty is every bucket.
- `prefixes` (array of string, required): The object key prefixes the key may use, such as `uploads/`; empty is every object.
- `created_at` (string, required): When it was created.
- `expires_at` (string or null, required): When the key stops working; null is never.
## Object storage status

```http
GET /public/v1/object-storage
```

Whether object storage is enabled for your organization, and the S3 endpoint to point S3 tools at. Object storage is in closed beta: until it is enabled, `enabled` is false and every bucket and key write is refused with `OBJECT_STORAGE_NOT_ENABLED`.

Scope: `read`.

Example:

```sh
curl "https://api.pantechdynamics.com/public/v1/object-storage" \
  -H "Authorization: Bearer $PANTECH_API_KEY"
```

Response `200`:

```json
{
  "enabled": true,
  "endpoint": "https://s3.af-abj.pantechdynamics.com",
  "beta": true,
  "direct_upload_enabled": true,
  "block_public_access": true,
  "limits": {
    "max_buckets": 1,
    "max_storage_bytes": 1,
    "max_objects": 1
  }
}
```

Errors:

- `401`: `UNAUTHENTICATED`: the request has no API key, or the key is mistyped, revoked or expired, or its creator has left the organization. Send `Authorization: Bearer PAN_…` with a valid key; create one in the console under Organization › API keys.
- `403`: `INSUFFICIENT_SCOPE`: the API key lacks the scope this endpoint needs. Use a key with that scope.
`FORBIDDEN`: the member who created the key may not do this in the organization. Use a key created by an owner or admin.
`AI_APPS_DISABLED`: the organization has turned AI app access off. An owner can turn it on in the console under Organization › AI apps.
- `429`: `RATE_LIMITED`: this API key, verified user or organization used its request budget for the current window, or this address exceeded an IP/failed-auth limit. Wait `Retry-After` seconds, then retry. For authenticated quota denials, `RateLimit-Scope` identifies the denying quota and `RateLimit-Reset` reports its remaining window in seconds.
- `503`: `SERVICE_UNAVAILABLE`: request quota storage is unavailable. Wait a few seconds, then retry.
## List buckets

```http
GET /public/v1/buckets
```

Your organization's buckets, newest first. Deleted buckets are not listed.

Scope: `read`.

Example:

```sh
curl "https://api.pantechdynamics.com/public/v1/buckets" \
  -H "Authorization: Bearer $PANTECH_API_KEY"
```

Response `200`:

```json
{
  "data": [
    {
      "id": "bkt_06gk3x9tq7m2v8r4y1c5d0zp8w",
      "name": "assets",
      "region": "af-abj",
      "endpoint": "https://s3.af-abj.pantechdynamics.com",
      "quota_bytes": 1,
      "size_bytes": 1610612736,
      "object_count": 1,
      "versioning": true,
      "object_lock": true,
      "encryption": "none",
      "public_prefixes": [
        "public-prefixes"
      ],
      "state": "provisioning",
      "created_at": "2026-10-03T09:30:00Z",
      "retired_at": "2026-10-03T09:30:00Z",
      "purge_due_at": "2026-10-03T09:30:00Z"
    }
  ]
}
```

Errors:

- `401`: `UNAUTHENTICATED`: the request has no API key, or the key is mistyped, revoked or expired, or its creator has left the organization. Send `Authorization: Bearer PAN_…` with a valid key; create one in the console under Organization › API keys.
- `403`: `INSUFFICIENT_SCOPE`: the API key lacks the scope this endpoint needs. Use a key with that scope.
`FORBIDDEN`: the member who created the key may not do this in the organization. Use a key created by an owner or admin.
`AI_APPS_DISABLED`: the organization has turned AI app access off. An owner can turn it on in the console under Organization › AI apps.
- `429`: `RATE_LIMITED`: this API key, verified user or organization used its request budget for the current window, or this address exceeded an IP/failed-auth limit. Wait `Retry-After` seconds, then retry. For authenticated quota denials, `RateLimit-Scope` identifies the denying quota and `RateLimit-Reset` reports its remaining window in seconds.
- `503`: `OBJECT_STORAGE_UNAVAILABLE`: object storage is not available right now. Retry shortly.
`QUOTA_UNAVAILABLE`: request quotas cannot be checked right now. Retry shortly.
## Create a bucket

```http
POST /public/v1/buckets
```

Creates a bucket. It is usable once `state` is `active`, usually within seconds; follow `operation_id` or get the bucket. Objects are reached with any S3 tool at `endpoint` using path-style addressing (`<endpoint>/<bucket>/<key>`) and an access key.

Stored data is billed per GiB-month, measured hourly; an empty bucket costs nothing. Data sent out and requests are billed too; data in, deletes and abandoned multipart uploads are free.

**Idempotency:** a retry with the same `Idempotency-Key` returns the first bucket.

Scope: `write`. Send an `Idempotency-Key` header.

Body:

- `name` (string, required): 3 to 63 lowercase letters, digits and hyphens, starting and ending with a letter or digit. Unique in your organization and region.
- `region` (string): The region code. Defaults to the region object storage is offered in.
- `quota_bytes` (integer): Your own limit on stored bytes; 0 or absent is none.
- `versioning` (boolean): Keep earlier versions of overwritten and deleted objects. Versions count as stored data.
- `object_lock` (boolean): Allow objects to be locked against deletion. Only at create, and it turns versioning on.
- `encryption` (string): Optional default server-side encryption for new objects (`none` or `sse_s3`). One of `none`, `sse_s3`.
- `public_prefixes` (array of string): Key prefixes anyone may read without a key, e.g. `public/`. At most 20. `[""]` (one empty prefix) makes every object public read.

Example:

```sh
curl -X POST "https://api.pantechdynamics.com/public/v1/buckets" \
  -H "Authorization: Bearer $PANTECH_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "assets"
  }'
```

Response `201`:

```json
{
  "id": "bkt_06gk3x9tq7m2v8r4y1c5d0zp8w",
  "name": "assets",
  "region": "af-abj",
  "endpoint": "https://s3.af-abj.pantechdynamics.com",
  "quota_bytes": 1,
  "size_bytes": 1610612736,
  "object_count": 1,
  "versioning": true,
  "object_lock": true,
  "encryption": "none",
  "public_prefixes": [
    "public-prefixes"
  ],
  "state": "provisioning",
  "created_at": "2026-10-03T09:30:00Z",
  "retired_at": "2026-10-03T09:30:00Z",
  "purge_due_at": "2026-10-03T09:30:00Z",
  "operation_id": "op_06gk3x9tq7m2v8r4y1c5d0zp8w"
}
```

Errors:

- `400`: `IDEMPOTENCY_KEY_REQUIRED`: the `Idempotency-Key` header is missing. Send a new unique value, such as a UUID, with every write.
`INVALID_IDEMPOTENCY_KEY`: the `Idempotency-Key` header is longer than 255 characters. Use a shorter value.
`INVALID_REQUEST_BODY`: the body is not a single valid JSON object. Send one JSON object with the fields documented for this endpoint.
- `401`: `UNAUTHENTICATED`: the request has no API key, or the key is mistyped, revoked or expired, or its creator has left the organization. Send `Authorization: Bearer PAN_…` with a valid key; create one in the console under Organization › API keys.
- `403`: `INSUFFICIENT_SCOPE`: the API key lacks the scope this endpoint needs. Use a key with that scope.
`FORBIDDEN`: the member who created the key may not do this in the organization. Use a key created by an owner or admin.
`AI_APPS_DISABLED`: the organization has turned AI app access off. An owner can turn it on in the console under Organization › AI apps.
`OBJECT_STORAGE_NOT_ENABLED`: object storage is in closed beta and not enabled for your organization yet.
`BUCKET_LIMIT_REACHED`: the organization already has the most buckets allowed.
`OBJECT_STORAGE_SUSPENDED`: object storage is suspended for this organization.
- `409`: `BUCKET_NAME_TAKEN`: a bucket with that name already exists in this region, in this organization or another. Bucket names are shared by every organization. A deleted bucket's name is free again once its removal finishes.
`IDEMPOTENCY_CONFLICT`: that idempotency key was already used for a different request.
`ACCOUNT_SUSPENDED`: the account has an overdue invoice. Pay it under Billing in the console, then try again.
`ACCOUNT_NOT_ACTIVE`: billing setup is not finished. Finish it under Billing in the console, then try again.
- `422`: `VALIDATION_FAILED`: `name` must be 3 to 63 lowercase letters, digits and hyphens, starting and ending with a letter or digit; `quota_bytes` must be 0 or positive; at most 20 `public_prefixes`, each at most 512 characters.
`OBJECT_STORAGE_REGION_UNAVAILABLE`: object storage is not offered in this region.
- `429`: `RATE_LIMITED`: this API key, verified user or organization used its request budget for the current window, or this address exceeded an IP/failed-auth limit. Wait `Retry-After` seconds, then retry. For authenticated quota denials, `RateLimit-Scope` identifies the denying quota and `RateLimit-Reset` reports its remaining window in seconds.
- `503`: `OBJECT_STORAGE_UNAVAILABLE`: object storage is not available right now. Retry shortly.
`QUOTA_UNAVAILABLE`: request quotas cannot be checked right now. Retry shortly.
## Get a bucket

```http
GET /public/v1/buckets/{bucket_id}
```

One bucket.

Scope: `read`.

Path parameters:

- `bucket_id`: The bucket's id, starting `bkt_`.

Example:

```sh
curl "https://api.pantechdynamics.com/public/v1/buckets/bkt_06gk3x9tq7m2v8r4y1c5d0zp8w" \
  -H "Authorization: Bearer $PANTECH_API_KEY"
```

Response `200`:

```json
{
  "id": "bkt_06gk3x9tq7m2v8r4y1c5d0zp8w",
  "name": "assets",
  "region": "af-abj",
  "endpoint": "https://s3.af-abj.pantechdynamics.com",
  "quota_bytes": 1,
  "size_bytes": 1610612736,
  "object_count": 1,
  "versioning": true,
  "object_lock": true,
  "encryption": "none",
  "public_prefixes": [
    "public-prefixes"
  ],
  "state": "provisioning",
  "created_at": "2026-10-03T09:30:00Z",
  "retired_at": "2026-10-03T09:30:00Z",
  "purge_due_at": "2026-10-03T09:30:00Z"
}
```

Errors:

- `401`: `UNAUTHENTICATED`: the request has no API key, or the key is mistyped, revoked or expired, or its creator has left the organization. Send `Authorization: Bearer PAN_…` with a valid key; create one in the console under Organization › API keys.
- `403`: `INSUFFICIENT_SCOPE`: the API key lacks the scope this endpoint needs. Use a key with that scope.
`FORBIDDEN`: the member who created the key may not do this in the organization. Use a key created by an owner or admin.
`AI_APPS_DISABLED`: the organization has turned AI app access off. An owner can turn it on in the console under Organization › AI apps.
- `404`: `NOT_FOUND`: no bucket with this id exists in your organization. List your buckets to find it.
`BUCKET_NOT_FOUND`: no bucket with this id exists in your organization.
- `429`: `RATE_LIMITED`: this API key, verified user or organization used its request budget for the current window, or this address exceeded an IP/failed-auth limit. Wait `Retry-After` seconds, then retry. For authenticated quota denials, `RateLimit-Scope` identifies the denying quota and `RateLimit-Reset` reports its remaining window in seconds.
- `503`: `OBJECT_STORAGE_UNAVAILABLE`: object storage is not available right now. Retry shortly.
`QUOTA_UNAVAILABLE`: request quotas cannot be checked right now. Retry shortly.
## Change a bucket

```http
PATCH /public/v1/buckets/{bucket_id}
```

Changes only the fields sent: the quota, versioning, or the public prefixes (anyone may read objects under them; an empty list makes the bucket wholly private). `state` is `updating` until the change is applied, usually within seconds.

**Idempotency:** a retry with the same `Idempotency-Key` returns the first result.

Scope: `write`. Send an `Idempotency-Key` header.

Path parameters:

- `bucket_id`: The bucket's id, starting `bkt_`.

Body:

- `quota_bytes` (integer): Your own limit on stored bytes; 0 removes it.
- `versioning` (boolean): Keep earlier versions of overwritten and deleted objects.
- `encryption` (string): Default server-side encryption for newly written objects (`none` or `sse_s3`). One of `none`, `sse_s3`.
- `public_prefixes` (array of string): Replaces the public prefixes: `[""]` (one empty prefix) makes every object public read, and an empty list makes the bucket wholly private.

Example:

```sh
curl -X PATCH "https://api.pantechdynamics.com/public/v1/buckets/bkt_06gk3x9tq7m2v8r4y1c5d0zp8w" \
  -H "Authorization: Bearer $PANTECH_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{}'
```

Response `200`:

```json
{
  "id": "bkt_06gk3x9tq7m2v8r4y1c5d0zp8w",
  "name": "assets",
  "region": "af-abj",
  "endpoint": "https://s3.af-abj.pantechdynamics.com",
  "quota_bytes": 1,
  "size_bytes": 1610612736,
  "object_count": 1,
  "versioning": true,
  "object_lock": true,
  "encryption": "none",
  "public_prefixes": [
    "public-prefixes"
  ],
  "state": "provisioning",
  "created_at": "2026-10-03T09:30:00Z",
  "retired_at": "2026-10-03T09:30:00Z",
  "purge_due_at": "2026-10-03T09:30:00Z",
  "operation_id": "op_06gk3x9tq7m2v8r4y1c5d0zp8w"
}
```

Errors:

- `400`: `IDEMPOTENCY_KEY_REQUIRED`: the `Idempotency-Key` header is missing. Send a new unique value, such as a UUID, with every write.
`INVALID_IDEMPOTENCY_KEY`: the `Idempotency-Key` header is longer than 255 characters. Use a shorter value.
`INVALID_REQUEST_BODY`: the body is not a single valid JSON object. Send one JSON object with the fields documented for this endpoint.
- `401`: `UNAUTHENTICATED`: the request has no API key, or the key is mistyped, revoked or expired, or its creator has left the organization. Send `Authorization: Bearer PAN_…` with a valid key; create one in the console under Organization › API keys.
- `403`: `INSUFFICIENT_SCOPE`: the API key lacks the scope this endpoint needs. Use a key with that scope.
`FORBIDDEN`: the member who created the key may not do this in the organization. Use a key created by an owner or admin.
`AI_APPS_DISABLED`: the organization has turned AI app access off. An owner can turn it on in the console under Organization › AI apps.
`OBJECT_STORAGE_NOT_ENABLED`: object storage is in closed beta and not enabled for your organization yet.
- `404`: `NOT_FOUND`: no bucket with this id exists in your organization. List your buckets to find it.
`BUCKET_NOT_FOUND`: no bucket with this id exists in your organization.
- `409`: `BUCKET_DELETED`: the bucket has been deleted.
`IDEMPOTENCY_CONFLICT`: that idempotency key was already used for a different request.
`CONFLICT`: the bucket changed while the request ran; try again.
- `422`: `VALIDATION_FAILED`: send `quota_bytes`, `versioning`, `public_prefixes` or several; a bucket with object lock keeps versioning on.
- `429`: `RATE_LIMITED`: this API key, verified user or organization used its request budget for the current window, or this address exceeded an IP/failed-auth limit. Wait `Retry-After` seconds, then retry. For authenticated quota denials, `RateLimit-Scope` identifies the denying quota and `RateLimit-Reset` reports its remaining window in seconds.
- `503`: `OBJECT_STORAGE_UNAVAILABLE`: object storage is not available right now. Retry shortly.
`QUOTA_UNAVAILABLE`: request quotas cannot be checked right now. Retry shortly.
## Delete a bucket

```http
DELETE /public/v1/buckets/{bucket_id}
```

Deletes the bucket at once: it stops serving and billing. Its objects are deleted and cannot be recovered. A bucket that still holds objects is refused unless `force` is `true`; one holding objects under object lock is always refused.

**Scope:** `write` (an AI app's key also needs `delete`).

Scope: `write`. Send an `Idempotency-Key` header.

Path parameters:

- `bucket_id`: The bucket's id, starting `bkt_`.

Query parameters:

- `force` (boolean): Delete the bucket even though it holds objects, which are removed with it.

Example:

```sh
curl -X DELETE "https://api.pantechdynamics.com/public/v1/buckets/bkt_06gk3x9tq7m2v8r4y1c5d0zp8w" \
  -H "Authorization: Bearer $PANTECH_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)"
```

Response `202`:

```json
{
  "operation_id": "op_06gk3x9tq7m2v8r4y1c5d0zp8w",
  "resource_id": "bkt_06gk3x9tq7m2v8r4y1c5d0zp8w",
  "status": "submitting"
}
```

Errors:

- `400`: `IDEMPOTENCY_KEY_REQUIRED`: the `Idempotency-Key` header is missing. Send a new unique value, such as a UUID, with every write.
`INVALID_IDEMPOTENCY_KEY`: the `Idempotency-Key` header is longer than 255 characters. Use a shorter value.
`INVALID_REQUEST_BODY`: the body is not a single valid JSON object. Send one JSON object with the fields documented for this endpoint.
- `401`: `UNAUTHENTICATED`: the request has no API key, or the key is mistyped, revoked or expired, or its creator has left the organization. Send `Authorization: Bearer PAN_…` with a valid key; create one in the console under Organization › API keys.
- `403`: `INSUFFICIENT_SCOPE`: the API key lacks the scope this endpoint needs. Use a key with that scope.
`FORBIDDEN`: the member who created the key may not do this in the organization. Use a key created by an owner or admin.
`AI_APPS_DISABLED`: the organization has turned AI app access off. An owner can turn it on in the console under Organization › AI apps.
- `404`: `NOT_FOUND`: no bucket with this id exists in your organization. List your buckets to find it.
`BUCKET_NOT_FOUND`: no bucket with this id exists in your organization.
- `409`: `BUCKET_NOT_EMPTY`: the bucket still holds objects. Empty it first, or delete it with `force=true`.
`BUCKET_RETENTION`: the bucket holds objects under object lock, which cannot be deleted before their retention ends.
`IDEMPOTENCY_CONFLICT`: that idempotency key was already used for a different request.
- `422`: `VALIDATION_FAILED`: `force` must be `true` or `false`.
- `429`: `RATE_LIMITED`: this API key, verified user or organization used its request budget for the current window, or this address exceeded an IP/failed-auth limit. Wait `Retry-After` seconds, then retry. For authenticated quota denials, `RateLimit-Scope` identifies the denying quota and `RateLimit-Reset` reports its remaining window in seconds.
- `503`: `OBJECT_STORAGE_UNAVAILABLE`: object storage is not available right now. Retry shortly.
`QUOTA_UNAVAILABLE`: request quotas cannot be checked right now. Retry shortly.
## List access keys

```http
GET /public/v1/object-storage/keys
```

Your organization's object storage access keys that are not revoked, newest first. The secret is shown only when a key is created.

Scope: `read`.

Query parameters:

- `region` (string): The region code, e.g. `af-abj`. Defaults to the region object storage is offered in.

Example:

```sh
curl "https://api.pantechdynamics.com/public/v1/object-storage/keys" \
  -H "Authorization: Bearer $PANTECH_API_KEY"
```

Response `200`:

```json
{
  "data": [
    {
      "id": "osk_06gk3x9tq7m2v8r4y1c5d0zp8w",
      "name": "web-1",
      "region": "af-abj",
      "access_key_id": "access-key-id",
      "read_only": true,
      "permissions": "read_write",
      "buckets": [
        "buckets"
      ],
      "prefixes": [
        "prefixes"
      ],
      "created_at": "2026-10-03T09:30:00Z",
      "expires_at": "2026-10-03T09:30:00Z"
    }
  ]
}
```

Errors:

- `401`: `UNAUTHENTICATED`: the request has no API key, or the key is mistyped, revoked or expired, or its creator has left the organization. Send `Authorization: Bearer PAN_…` with a valid key; create one in the console under Organization › API keys.
- `403`: `INSUFFICIENT_SCOPE`: the API key lacks the scope this endpoint needs. Use a key with that scope.
`FORBIDDEN`: the member who created the key may not do this in the organization. Use a key created by an owner or admin.
`AI_APPS_DISABLED`: the organization has turned AI app access off. An owner can turn it on in the console under Organization › AI apps.
- `422`: `OBJECT_STORAGE_REGION_UNAVAILABLE`: object storage is not offered in this region.
- `429`: `RATE_LIMITED`: this API key, verified user or organization used its request budget for the current window, or this address exceeded an IP/failed-auth limit. Wait `Retry-After` seconds, then retry. For authenticated quota denials, `RateLimit-Scope` identifies the denying quota and `RateLimit-Reset` reports its remaining window in seconds.
- `503`: `OBJECT_STORAGE_UNAVAILABLE`: object storage is not available right now. Retry shortly.
`QUOTA_UNAVAILABLE`: request quotas cannot be checked right now. Retry shortly.
## Create an access key

```http
POST /public/v1/object-storage/keys
```

Creates an S3 access key for any S3 tool (AWS CLI, rclone, s3cmd, SDKs). The secret is in this response only and is never shown again; store it now. A key may be limited to some buckets and to reading. Keys cannot create or delete buckets; use this API for that.

**Idempotency:** a retry is not replayed: it creates another key. If a request may have gone through, list the keys and revoke one you did not receive.

Scope: `write`. Send an `Idempotency-Key` header.

Body:

- `name` (string, required): 1 to 64 letters, digits, `-`, `_` or `.`. Unique among your live keys.
- `region` (string): The region code. Defaults to the region object storage is offered in.
- `read_only` (boolean): Allow only reading and listing. The same as `permissions: read_only`; cannot be true with another `permissions` value.
- `permissions` (string): What the key may do. Defaults to `read_write`, or `read_only` when `read_only` is true. `write_only` may upload but not read, list or delete, for devices and upload forms. One of `read_only`, `read_write`, `write_only`.
- `buckets` (array of string): Limit the key to these bucket names; absent or empty is every bucket. At most 100.
- `prefixes` (array of string): Limit the key to object keys under these prefixes, such as `uploads/`; absent or empty is every object. At most 20, each 1 to 512 characters, not starting with `/` and without `*` or `?`.
- `expires_at` (string): When the key stops working, RFC 3339, in the future and at most 10 years ahead. Absent never expires. An expired key is revoked.

Example:

```sh
curl -X POST "https://api.pantechdynamics.com/public/v1/object-storage/keys" \
  -H "Authorization: Bearer $PANTECH_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "backups"
  }'
```

Response `201`:

```json
{
  "id": "osk_06gk3x9tq7m2v8r4y1c5d0zp8w",
  "name": "web-1",
  "region": "af-abj",
  "access_key_id": "access-key-id",
  "read_only": true,
  "permissions": "read_write",
  "buckets": [
    "buckets"
  ],
  "prefixes": [
    "prefixes"
  ],
  "created_at": "2026-10-03T09:30:00Z",
  "expires_at": "2026-10-03T09:30:00Z",
  "secret_access_key": "secret-access-key",
  "endpoint": "endpoint"
}
```

Errors:

- `400`: `IDEMPOTENCY_KEY_REQUIRED`: the `Idempotency-Key` header is missing. Send a new unique value, such as a UUID, with every write.
`INVALID_IDEMPOTENCY_KEY`: the `Idempotency-Key` header is longer than 255 characters. Use a shorter value.
`INVALID_REQUEST_BODY`: the body is not a single valid JSON object. Send one JSON object with the fields documented for this endpoint.
- `401`: `UNAUTHENTICATED`: the request has no API key, or the key is mistyped, revoked or expired, or its creator has left the organization. Send `Authorization: Bearer PAN_…` with a valid key; create one in the console under Organization › API keys.
- `403`: `INSUFFICIENT_SCOPE`: the API key lacks the scope this endpoint needs. Use a key with that scope.
`FORBIDDEN`: the member who created the key may not do this in the organization. Use a key created by an owner or admin.
`AI_APPS_DISABLED`: the organization has turned AI app access off. An owner can turn it on in the console under Organization › AI apps.
`OBJECT_STORAGE_NOT_ENABLED`: object storage is in closed beta and not enabled for your organization yet.
`OBJECT_STORAGE_KEY_LIMIT_REACHED`: the organization already has the most access keys allowed. Revoke one first.
`OBJECT_STORAGE_SUSPENDED`: object storage is suspended for this organization.
- `409`: `OBJECT_STORAGE_KEY_NAME_TAKEN`: the organization already has an access key with that name in this region.
- `422`: `VALIDATION_FAILED`: `name` must be 1 to 64 letters, digits, `-`, `_` or `.`; name at most 100 `buckets`, each once.
`OBJECT_STORAGE_REGION_UNAVAILABLE`: object storage is not offered in this region.
- `429`: `RATE_LIMITED`: this API key, verified user or organization used its request budget for the current window, or this address exceeded an IP/failed-auth limit. Wait `Retry-After` seconds, then retry. For authenticated quota denials, `RateLimit-Scope` identifies the denying quota and `RateLimit-Reset` reports its remaining window in seconds.
- `503`: `OBJECT_STORAGE_UNAVAILABLE`: object storage is not available right now. Retry shortly.
`QUOTA_UNAVAILABLE`: request quotas cannot be checked right now. Retry shortly.
## Revoke an access key

```http
DELETE /public/v1/object-storage/keys/{storage_key_id}
```

The key stops working before this returns. Works even when object storage is not enabled for your organization.

**Scope:** `write` (an AI app's key also needs `delete`).

Scope: `write`. Send an `Idempotency-Key` header.

Path parameters:

- `storage_key_id`: The access key's id, starting `osk_`.

Example:

```sh
curl -X DELETE "https://api.pantechdynamics.com/public/v1/object-storage/keys/osk_06gk3x9tq7m2v8r4y1c5d0zp8w" \
  -H "Authorization: Bearer $PANTECH_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)"
```

Response `204`: The key is revoked.

Errors:

- `400`: `IDEMPOTENCY_KEY_REQUIRED`: the `Idempotency-Key` header is missing. Send a new unique value, such as a UUID, with every write.
`INVALID_IDEMPOTENCY_KEY`: the `Idempotency-Key` header is longer than 255 characters. Use a shorter value.
`INVALID_REQUEST_BODY`: the body is not a single valid JSON object. Send one JSON object with the fields documented for this endpoint.
- `401`: `UNAUTHENTICATED`: the request has no API key, or the key is mistyped, revoked or expired, or its creator has left the organization. Send `Authorization: Bearer PAN_…` with a valid key; create one in the console under Organization › API keys.
- `403`: `INSUFFICIENT_SCOPE`: the API key lacks the scope this endpoint needs. Use a key with that scope.
`FORBIDDEN`: the member who created the key may not do this in the organization. Use a key created by an owner or admin.
`AI_APPS_DISABLED`: the organization has turned AI app access off. An owner can turn it on in the console under Organization › AI apps.
- `404`: `NOT_FOUND`: no access key with this id exists in your organization.
`OBJECT_STORAGE_KEY_NOT_FOUND`: no access key with this id exists in your organization.
- `429`: `RATE_LIMITED`: this API key, verified user or organization used its request budget for the current window, or this address exceeded an IP/failed-auth limit. Wait `Retry-After` seconds, then retry. For authenticated quota denials, `RateLimit-Scope` identifies the denying quota and `RateLimit-Reset` reports its remaining window in seconds.
- `503`: `OBJECT_STORAGE_UNAVAILABLE`: object storage is not available right now. Retry shortly.
`QUOTA_UNAVAILABLE`: request quotas cannot be checked right now. Retry shortly.
## Object storage transfer and request usage

```http
GET /public/v1/object-storage/usage
```

Hourly transfer and request counts for your organization.

Scope: `read`.

Query parameters:

- `range` (string): One of `24h`, `7d`, `30d`.

Example:

```sh
curl "https://api.pantechdynamics.com/public/v1/object-storage/usage" \
  -H "Authorization: Bearer $PANTECH_API_KEY"
```

Response `200`:

```json
{
  "range": "range",
  "total_bytes_sent": 1,
  "total_bytes_received": 1,
  "total_read_ops": 1,
  "total_write_ops": 1,
  "hours": [
    {
      "hour": "2026-10-03T09:30:00Z",
      "bytes_sent": 1,
      "bytes_received": 1,
      "read_ops": 1,
      "write_ops": 1
    }
  ]
}
```

Errors:

- `401`: `UNAUTHENTICATED`: the request has no API key, or the key is mistyped, revoked or expired, or its creator has left the organization. Send `Authorization: Bearer PAN_…` with a valid key; create one in the console under Organization › API keys.
- `429`: `RATE_LIMITED`: this API key, verified user or organization used its request budget for the current window, or this address exceeded an IP/failed-auth limit. Wait `Retry-After` seconds, then retry. For authenticated quota denials, `RateLimit-Scope` identifies the denying quota and `RateLimit-Reset` reports its remaining window in seconds.
## Change object storage settings

```http
PATCH /public/v1/object-storage/settings
```

Turns Block All Public Access on or off for your organization. On, public prefixes and public objects stop being served anonymously within seconds, and making anything public is refused with `PUBLIC_ACCESS_BLOCKED`. Off, the public prefixes and objects already set are served again. Sending the current value changes nothing.

**Idempotency:** setting a value is safe to retry: a retry sets the same value again.

Scope: `write`. Send an `Idempotency-Key` header.

Body:

- `block_public_access` (boolean, required): True blocks all public access: public prefixes and public objects stop being served anonymously, and nothing can be made public until it is turned off. False restores the public prefixes and objects already set.

Example:

```sh
curl -X PATCH "https://api.pantechdynamics.com/public/v1/object-storage/settings" \
  -H "Authorization: Bearer $PANTECH_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
    "block_public_access": true
  }'
```

Response `200`:

```json
{
  "block_public_access": true
}
```

Errors:

- `400`: `IDEMPOTENCY_KEY_REQUIRED`: the `Idempotency-Key` header is missing. `INVALID_REQUEST_BODY`: the body is not a single valid JSON object.
- `401`: `UNAUTHENTICATED`: the request has no API key, or the key is mistyped, revoked or expired, or its creator has left the organization. Send `Authorization: Bearer PAN_…` with a valid key; create one in the console under Organization › API keys.
- `403`: `INSUFFICIENT_SCOPE`: the API key lacks the `write` scope. `FORBIDDEN`: the member who created the key may not do this. `OBJECT_STORAGE_NOT_ENABLED`: turning the block off needs object storage enabled; turning it on always works.
- `422`: `VALIDATION_FAILED`: `block_public_access` is required.
- `429`: `RATE_LIMITED`: this API key, verified user or organization used its request budget for the current window, or this address exceeded an IP/failed-auth limit. Wait `Retry-After` seconds, then retry. For authenticated quota denials, `RateLimit-Scope` identifies the denying quota and `RateLimit-Reset` reports its remaining window in seconds.
- `503`: `OBJECT_STORAGE_UNAVAILABLE`: object storage is not available right now. Retry shortly.
## Bucket storage stats

```http
GET /public/v1/buckets/{bucket_id}/stats
```

Live stored bytes and object count for the bucket.

Scope: `read`.

Path parameters:

- `bucket_id`

Example:

```sh
curl "https://api.pantechdynamics.com/public/v1/buckets/bkt_06gk3x9tq7m2v8r4y1c5d0zp8w/stats" \
  -H "Authorization: Bearer $PANTECH_API_KEY"
```

Response `200`:

```json
{
  "size_bytes": 1610612736,
  "object_count": 1
}
```

Errors:

- `401`: `UNAUTHENTICATED`: the request has no API key, or the key is mistyped, revoked or expired, or its creator has left the organization. Send `Authorization: Bearer PAN_…` with a valid key; create one in the console under Organization › API keys.
- `429`: `RATE_LIMITED`: this API key, verified user or organization used its request budget for the current window, or this address exceeded an IP/failed-auth limit. Wait `Retry-After` seconds, then retry. For authenticated quota denials, `RateLimit-Scope` identifies the denying quota and `RateLimit-Reset` reports its remaining window in seconds.
## Empty a bucket

```http
POST /public/v1/buckets/{bucket_id}/empty
```

Deletes all objects, previous versions and delete markers and aborts incomplete multipart uploads.

**Scope:** `write` (an AI app's key also needs `delete`).

Scope: `write`. Send an `Idempotency-Key` header.

Path parameters:

- `bucket_id`

Example:

```sh
curl -X POST "https://api.pantechdynamics.com/public/v1/buckets/bkt_06gk3x9tq7m2v8r4y1c5d0zp8w/empty" \
  -H "Authorization: Bearer $PANTECH_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)"
```

Response `200`:

```json
{
  "deleted_count": 1,
  "aborted_uploads": 1,
  "locked_count": 1,
  "sample_locked_keys": [
    "sample-locked-keys"
  ]
}
```

Errors:

- `401`: `UNAUTHENTICATED`: the request has no API key, or the key is mistyped, revoked or expired, or its creator has left the organization. Send `Authorization: Bearer PAN_…` with a valid key; create one in the console under Organization › API keys.
- `429`: `RATE_LIMITED`: this API key, verified user or organization used its request budget for the current window, or this address exceeded an IP/failed-auth limit. Wait `Retry-After` seconds, then retry. For authenticated quota denials, `RateLimit-Scope` identifies the denying quota and `RateLimit-Reset` reports its remaining window in seconds.
## List or search bucket objects and folders

```http
GET /public/v1/buckets/{bucket_id}/objects
```

Lists folders and objects under a prefix, searches across the bucket, or lists object versions.

Scope: `read`.

Path parameters:

- `bucket_id`

Query parameters:

- `prefix` (string)
- `delimiter` (string)
- `q` (string)
- `cursor` (string)
- `limit` (integer): At least 1.
- `versions` (boolean)

Example:

```sh
curl "https://api.pantechdynamics.com/public/v1/buckets/bkt_06gk3x9tq7m2v8r4y1c5d0zp8w/objects" \
  -H "Authorization: Bearer $PANTECH_API_KEY"
```

Response `200`:

```json
{}
```

Errors:

- `401`: `UNAUTHENTICATED`: the request has no API key, or the key is mistyped, revoked or expired, or its creator has left the organization. Send `Authorization: Bearer PAN_…` with a valid key; create one in the console under Organization › API keys.
- `429`: `RATE_LIMITED`: this API key, verified user or organization used its request budget for the current window, or this address exceeded an IP/failed-auth limit. Wait `Retry-After` seconds, then retry. For authenticated quota denials, `RateLimit-Scope` identifies the denying quota and `RateLimit-Reset` reports its remaining window in seconds.
## Get object properties, metadata, tags and lock status

```http
GET /public/v1/buckets/{bucket_id}/objects/meta
```

Reads metadata, tags and object-lock status for one object.

Scope: `read`.

Path parameters:

- `bucket_id`

Query parameters:

- `key` (string, required)
- `version_id` (string)

Example:

```sh
curl "https://api.pantechdynamics.com/public/v1/buckets/bkt_06gk3x9tq7m2v8r4y1c5d0zp8w/objects/meta?key=key" \
  -H "Authorization: Bearer $PANTECH_API_KEY"
```

Response `200`:

```json
{
  "key": "key",
  "size_bytes": 1610612736,
  "etag": "etag",
  "content_type": "content-type",
  "cache_control": "cache-control",
  "content_disposition": "content-disposition",
  "last_modified": "2026-10-03T09:30:00Z",
  "storage_class": "storage-class",
  "version_id": "version-id",
  "metadata": {},
  "tags": [
    {
      "key": "key",
      "value": "value"
    }
  ],
  "retention_mode": "retention-mode",
  "retain_until": "2026-10-03T09:30:00Z",
  "legal_hold": true,
  "public": true,
  "object_public": true,
  "public_source": "private",
  "public_url": "public-url",
  "server_side_encryption": "server-side-encryption"
}
```

Errors:

- `401`: `UNAUTHENTICATED`: the request has no API key, or the key is mistyped, revoked or expired, or its creator has left the organization. Send `Authorization: Bearer PAN_…` with a valid key; create one in the console under Organization › API keys.
- `429`: `RATE_LIMITED`: this API key, verified user or organization used its request budget for the current window, or this address exceeded an IP/failed-auth limit. Wait `Retry-After` seconds, then retry. For authenticated quota denials, `RateLimit-Scope` identifies the denying quota and `RateLimit-Reset` reports its remaining window in seconds.
## Download an object

```http
GET /public/v1/buckets/{bucket_id}/objects/download
```

Streams the object's content.

Scope: `read`.

Path parameters:

- `bucket_id`

Query parameters:

- `key` (string, required)
- `version_id` (string)
- `inline` (boolean)

Example:

```sh
curl "https://api.pantechdynamics.com/public/v1/buckets/bkt_06gk3x9tq7m2v8r4y1c5d0zp8w/objects/download?key=key" \
  -H "Authorization: Bearer $PANTECH_API_KEY"
```

Response `200`: Object content stream.

Errors:

- `401`: `UNAUTHENTICATED`: the request has no API key, or the key is mistyped, revoked or expired, or its creator has left the organization. Send `Authorization: Bearer PAN_…` with a valid key; create one in the console under Organization › API keys.
- `429`: `RATE_LIMITED`: this API key, verified user or organization used its request budget for the current window, or this address exceeded an IP/failed-auth limit. Wait `Retry-After` seconds, then retry. For authenticated quota denials, `RateLimit-Scope` identifies the denying quota and `RateLimit-Reset` reports its remaining window in seconds.
## Request a short-lived direct download URL

```http
POST /public/v1/buckets/{bucket_id}/objects/download-url
```

Mints a short-lived signed download URL when direct transfers are enabled.

Scope: `read`.

Path parameters:

- `bucket_id`

Body:

- `key` (string, required)
- `version_id` (string)
- `inline` (boolean)
- `expires_in_seconds` (integer): From 60 to 604800.

Example:

```sh
curl -X POST "https://api.pantechdynamics.com/public/v1/buckets/bkt_06gk3x9tq7m2v8r4y1c5d0zp8w/objects/download-url" \
  -H "Authorization: Bearer $PANTECH_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "key": "key"
  }'
```

Response `200`:

```json
{
  "direct": true,
  "url": "https://x.serial-console.pantechdynamics.com/…",
  "expires_in_seconds": 1
}
```

Errors:

- `401`: `UNAUTHENTICATED`: the request has no API key, or the key is mistyped, revoked or expired, or its creator has left the organization. Send `Authorization: Bearer PAN_…` with a valid key; create one in the console under Organization › API keys.
- `429`: `RATE_LIMITED`: this API key, verified user or organization used its request budget for the current window, or this address exceeded an IP/failed-auth limit. Wait `Retry-After` seconds, then retry. For authenticated quota denials, `RateLimit-Scope` identifies the denying quota and `RateLimit-Reset` reports its remaining window in seconds.
## Upload an object

```http
PUT /public/v1/buckets/{bucket_id}/objects/upload
```

Streams an object upload into the bucket.

Scope: `write`. Send an `Idempotency-Key` header.

Path parameters:

- `bucket_id`

Query parameters:

- `key` (string, required)

Example:

```sh
curl -X PUT "https://api.pantechdynamics.com/public/v1/buckets/bkt_06gk3x9tq7m2v8r4y1c5d0zp8w/objects/upload?key=key" \
  -H "Authorization: Bearer $PANTECH_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)"
```

Response `200`:

```json
{
  "key": "key",
  "size_bytes": 1610612736,
  "etag": "etag",
  "content_type": "content-type",
  "last_modified": "2026-10-03T09:30:00Z",
  "version_id": "version-id",
  "public": true,
  "object_public": true,
  "public_source": "private",
  "public_url": "public-url"
}
```

Errors:

- `401`: `UNAUTHENTICATED`: the request has no API key, or the key is mistyped, revoked or expired, or its creator has left the organization. Send `Authorization: Bearer PAN_…` with a valid key; create one in the console under Organization › API keys.
- `429`: `RATE_LIMITED`: this API key, verified user or organization used its request budget for the current window, or this address exceeded an IP/failed-auth limit. Wait `Retry-After` seconds, then retry. For authenticated quota denials, `RateLimit-Scope` identifies the denying quota and `RateLimit-Reset` reports its remaining window in seconds.
## Request a short-lived direct upload URL

```http
POST /public/v1/buckets/{bucket_id}/objects/upload-url
```

Mints a short-lived signed upload URL when direct transfers are enabled.

Scope: `write`. Send an `Idempotency-Key` header.

Path parameters:

- `bucket_id`

Body:

- `key` (string, required)
- `content_type` (string)

Example:

```sh
curl -X POST "https://api.pantechdynamics.com/public/v1/buckets/bkt_06gk3x9tq7m2v8r4y1c5d0zp8w/objects/upload-url" \
  -H "Authorization: Bearer $PANTECH_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
    "key": "key"
  }'
```

Response `200`:

```json
{
  "direct": true,
  "url": "https://x.serial-console.pantechdynamics.com/…",
  "expires_in_seconds": 1
}
```

Errors:

- `401`: `UNAUTHENTICATED`: the request has no API key, or the key is mistyped, revoked or expired, or its creator has left the organization. Send `Authorization: Bearer PAN_…` with a valid key; create one in the console under Organization › API keys.
- `429`: `RATE_LIMITED`: this API key, verified user or organization used its request budget for the current window, or this address exceeded an IP/failed-auth limit. Wait `Retry-After` seconds, then retry. For authenticated quota denials, `RateLimit-Scope` identifies the denying quota and `RateLimit-Reset` reports its remaining window in seconds.
## Create a browser upload form

```http
POST /public/v1/buckets/{bucket_id}/objects/upload-form
```

Signs an HTML form upload (an S3 POST policy) into the bucket, so a browser can send a file straight to storage without your server handling the bytes. Post every returned field, then the file as a field named `file` (it must come last), as `multipart/form-data` to `url`.

The form allows one object per upload: either exactly `key`, or any key starting with `key_prefix`, where the browser's file name replaces `${filename}` in the `key` field. Each upload must be between `min_bytes` and `max_bytes`, and, when `content_type` is set, must send that `Content-Type` field unchanged. The form stops working at `expires_at`. Uploaded objects are private, and the bucket's size limit applies.

Anyone holding the form can upload within its bounds until it expires, so keep its lifetime short.

Scope: `write`. Send an `Idempotency-Key` header.

Path parameters:

- `bucket_id`

Body:

- `key` (string): The one key the form may write. Give this or `key_prefix`.
- `key_prefix` (string): The form may write any key starting with this, ending in the browser's file name. Give this or `key`.
- `min_bytes` (integer): The smallest file accepted. At least 0. Defaults to `0`.
- `max_bytes` (integer): The largest file accepted, at most 5 GiB. From 1 to 5368709120. Defaults to `5368709120`.
- `content_type` (string): When set, the only content type the form may send. At most 255 characters.
- `expires_in_seconds` (integer): How long the form works: 60 seconds to 7 days. From 60 to 604800. Defaults to `3600`.

Example:

```sh
curl -X POST "https://api.pantechdynamics.com/public/v1/buckets/bkt_06gk3x9tq7m2v8r4y1c5d0zp8w/objects/upload-form" \
  -H "Authorization: Bearer $PANTECH_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{}'
```

Response `200`:

```json
{
  "url": "https://x.serial-console.pantechdynamics.com/…",
  "fields": {},
  "expires_at": "2026-10-03T09:30:00Z",
  "bucket_name": "bucket-name"
}
```

Errors:

- `401`: `UNAUTHENTICATED`: the request has no API key, or the key is mistyped, revoked or expired, or its creator has left the organization. Send `Authorization: Bearer PAN_…` with a valid key; create one in the console under Organization › API keys.
- `403`: `INSUFFICIENT_SCOPE`: the API key lacks the `write` scope. `FORBIDDEN`: the member who created the key may not write objects to this bucket. `OBJECT_STORAGE_SUSPENDED`: object storage is suspended for this organization.
- `404`: `BUCKET_NOT_FOUND`: no such bucket in your organization.
- `409`: `BUCKET_NOT_ACTIVE`: the bucket is still being created. `IDEMPOTENCY_CONFLICT`: the key was used for a different request.
- `422`: `VALIDATION_FAILED`: give exactly one of `key` and `key_prefix`; `max_bytes`, `min_bytes`, `expires_in_seconds` or `content_type` is out of range.
- `429`: `RATE_LIMITED`: this API key, verified user or organization used its request budget for the current window, or this address exceeded an IP/failed-auth limit. Wait `Retry-After` seconds, then retry. For authenticated quota denials, `RateLimit-Scope` identifies the denying quota and `RateLimit-Reset` reports its remaining window in seconds.
- `503`: `UPLOAD_FORMS_UNAVAILABLE`: form uploads are not available in this region yet. `OBJECT_STORAGE_UNAVAILABLE`: object storage is not available right now. Retry shortly.
## Create a folder prefix

```http
POST /public/v1/buckets/{bucket_id}/objects/folder
```

Creates an empty folder marker under the given prefix.

Scope: `write`. Send an `Idempotency-Key` header.

Path parameters:

- `bucket_id`

Body:

- `prefix` (string, required)

Example:

```sh
curl -X POST "https://api.pantechdynamics.com/public/v1/buckets/bkt_06gk3x9tq7m2v8r4y1c5d0zp8w/objects/folder" \
  -H "Authorization: Bearer $PANTECH_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
    "prefix": "prefix"
  }'
```

Response `200`:

```json
{
  "prefix": "prefix"
}
```

Errors:

- `401`: `UNAUTHENTICATED`: the request has no API key, or the key is mistyped, revoked or expired, or its creator has left the organization. Send `Authorization: Bearer PAN_…` with a valid key; create one in the console under Organization › API keys.
- `429`: `RATE_LIMITED`: this API key, verified user or organization used its request budget for the current window, or this address exceeded an IP/failed-auth limit. Wait `Retry-After` seconds, then retry. For authenticated quota denials, `RateLimit-Scope` identifies the denying quota and `RateLimit-Reset` reports its remaining window in seconds.
## Copy, rename or update metadata on an object

```http
POST /public/v1/buckets/{bucket_id}/objects/copy
```

Copies or moves an object inside the bucket, optionally replacing its metadata.

Scope: `write`. Send an `Idempotency-Key` header.

Path parameters:

- `bucket_id`

Body:

- `source_key` (string, required)
- `destination_key` (string, required)
- `delete_source` (boolean)
- `replace_metadata` (boolean)
- `content_type` (string)
- `cache_control` (string)
- `content_disposition` (string)
- `metadata` (object)

Example:

```sh
curl -X POST "https://api.pantechdynamics.com/public/v1/buckets/bkt_06gk3x9tq7m2v8r4y1c5d0zp8w/objects/copy" \
  -H "Authorization: Bearer $PANTECH_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
    "source_key": "source-key",
    "destination_key": "destination-key"
  }'
```

Response `200`:

```json
{
  "key": "key",
  "etag": "etag",
  "version_id": "version-id",
  "last_modified": "2026-10-03T09:30:00Z",
  "public": true,
  "object_public": true,
  "public_source": "private",
  "public_url": "public-url"
}
```

Errors:

- `401`: `UNAUTHENTICATED`: the request has no API key, or the key is mistyped, revoked or expired, or its creator has left the organization. Send `Authorization: Bearer PAN_…` with a valid key; create one in the console under Organization › API keys.
- `429`: `RATE_LIMITED`: this API key, verified user or organization used its request budget for the current window, or this address exceeded an IP/failed-auth limit. Wait `Retry-After` seconds, then retry. For authenticated quota denials, `RateLimit-Scope` identifies the denying quota and `RateLimit-Reset` reports its remaining window in seconds.
## Delete objects, versions or a folder prefix

```http
POST /public/v1/buckets/{bucket_id}/objects/delete
```

Deletes selected objects, versions or all objects under a folder prefix.

**Scope:** `write` (an AI app's key also needs `delete`).

Scope: `write`. Send an `Idempotency-Key` header.

Path parameters:

- `bucket_id`

Body:

- `items` (array of object)
  - `key` (string, required)
  - `version_id` (string)
- `recursive_prefix` (string)

Example:

```sh
curl -X POST "https://api.pantechdynamics.com/public/v1/buckets/bkt_06gk3x9tq7m2v8r4y1c5d0zp8w/objects/delete" \
  -H "Authorization: Bearer $PANTECH_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{}'
```

Response `200`:

```json
{
  "deleted": 1,
  "failed": [
    {
      "key": "key",
      "version_id": "version-id",
      "code": "starter",
      "locked": true
    }
  ]
}
```

Errors:

- `401`: `UNAUTHENTICATED`: the request has no API key, or the key is mistyped, revoked or expired, or its creator has left the organization. Send `Authorization: Bearer PAN_…` with a valid key; create one in the console under Organization › API keys.
- `429`: `RATE_LIMITED`: this API key, verified user or organization used its request budget for the current window, or this address exceeded an IP/failed-auth limit. Wait `Retry-After` seconds, then retry. For authenticated quota denials, `RateLimit-Scope` identifies the denying quota and `RateLimit-Reset` reports its remaining window in seconds.
## Replace tags on an object

```http
PUT /public/v1/buckets/{bucket_id}/objects/tags
```

Replaces key-value tags on an object or version.

Scope: `write`. Send an `Idempotency-Key` header.

Path parameters:

- `bucket_id`

Body:

- `key` (string, required)
- `version_id` (string)
- `tags` (array of object, required)
  - `key` (string, required)
  - `value` (string, required)

Example:

```sh
curl -X PUT "https://api.pantechdynamics.com/public/v1/buckets/bkt_06gk3x9tq7m2v8r4y1c5d0zp8w/objects/tags" \
  -H "Authorization: Bearer $PANTECH_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
    "key": "key",
    "tags": [
      {
        "key": "key",
        "value": "value"
      }
    ]
  }'
```

Response `200`:

```json
{
  "tags": [
    {
      "key": "key",
      "value": "value"
    }
  ]
}
```

Errors:

- `401`: `UNAUTHENTICATED`: the request has no API key, or the key is mistyped, revoked or expired, or its creator has left the organization. Send `Authorization: Bearer PAN_…` with a valid key; create one in the console under Organization › API keys.
- `429`: `RATE_LIMITED`: this API key, verified user or organization used its request budget for the current window, or this address exceeded an IP/failed-auth limit. Wait `Retry-After` seconds, then retry. For authenticated quota denials, `RateLimit-Scope` identifies the denying quota and `RateLimit-Reset` reports its remaining window in seconds.
## Update retention or legal hold on an object

```http
PUT /public/v1/buckets/{bucket_id}/objects/lock
```

Sets object-lock retention or legal hold on an object version.

Scope: `write`. Send an `Idempotency-Key` header.

Path parameters:

- `bucket_id`

Body:

- `key` (string, required)
- `version_id` (string)
- `retention_mode` (string): One of `GOVERNANCE`, `COMPLIANCE`.
- `retain_until` (string)
- `bypass_governance` (boolean)
- `legal_hold` (boolean)

Example:

```sh
curl -X PUT "https://api.pantechdynamics.com/public/v1/buckets/bkt_06gk3x9tq7m2v8r4y1c5d0zp8w/objects/lock" \
  -H "Authorization: Bearer $PANTECH_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
    "key": "key"
  }'
```

Response `200`:

```json
{
  "ok": true
}
```

Errors:

- `401`: `UNAUTHENTICATED`: the request has no API key, or the key is mistyped, revoked or expired, or its creator has left the organization. Send `Authorization: Bearer PAN_…` with a valid key; create one in the console under Organization › API keys.
- `429`: `RATE_LIMITED`: this API key, verified user or organization used its request budget for the current window, or this address exceeded an IP/failed-auth limit. Wait `Retry-After` seconds, then retry. For authenticated quota denials, `RateLimit-Scope` identifies the denying quota and `RateLimit-Reset` reports its remaining window in seconds.
## Restore a previous object version or remove a delete marker

```http
POST /public/v1/buckets/{bucket_id}/objects/restore-version
```

Restores a historical object version as the current latest version, or removes a delete marker to undelete a soft-deleted versioned object.

Scope: `write`. Send an `Idempotency-Key` header.

Path parameters:

- `bucket_id`

Body:

- `key` (string, required)
- `version_id` (string)

Example:

```sh
curl -X POST "https://api.pantechdynamics.com/public/v1/buckets/bkt_06gk3x9tq7m2v8r4y1c5d0zp8w/objects/restore-version" \
  -H "Authorization: Bearer $PANTECH_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
    "key": "key"
  }'
```

Response `200`:

```json
{
  "key": "key",
  "action": "copied_version",
  "restored_version_id": "restored-version-id",
  "version_id": "version-id",
  "etag": "etag",
  "last_modified": "last-modified"
}
```

Errors:

- `401`: `UNAUTHENTICATED`: the request has no API key, or the key is mistyped, revoked or expired, or its creator has left the organization. Send `Authorization: Bearer PAN_…` with a valid key; create one in the console under Organization › API keys.
- `429`: `RATE_LIMITED`: this API key, verified user or organization used its request budget for the current window, or this address exceeded an IP/failed-auth limit. Wait `Retry-After` seconds, then retry. For authenticated quota denials, `RateLimit-Scope` identifies the denying quota and `RateLimit-Reset` reports its remaining window in seconds.
## Set an object's public or private visibility

```http
PUT /public/v1/buckets/{bucket_id}/objects/visibility
```

Toggles an individual object between private and public read access without changing bucket-wide rules.

Scope: `write`. Send an `Idempotency-Key` header.

Path parameters:

- `bucket_id`

Body:

- `key` (string, required)
- `version_id` (string)
- `public` (boolean, required)

Example:

```sh
curl -X PUT "https://api.pantechdynamics.com/public/v1/buckets/bkt_06gk3x9tq7m2v8r4y1c5d0zp8w/objects/visibility" \
  -H "Authorization: Bearer $PANTECH_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
    "key": "key",
    "public": true
  }'
```

Response `200`:

```json
{
  "key": "key",
  "public": true,
  "object_public": true,
  "public_source": "private",
  "public_url": "public-url"
}
```

Errors:

- `401`: `UNAUTHENTICATED`: the request has no API key, or the key is mistyped, revoked or expired, or its creator has left the organization. Send `Authorization: Bearer PAN_…` with a valid key; create one in the console under Organization › API keys.
- `429`: `RATE_LIMITED`: this API key, verified user or organization used its request budget for the current window, or this address exceeded an IP/failed-auth limit. Wait `Retry-After` seconds, then retry. For authenticated quota denials, `RateLimit-Scope` identifies the denying quota and `RateLimit-Reset` reports its remaining window in seconds.
## List in-progress multipart uploads

```http
GET /public/v1/buckets/{bucket_id}/objects/multipart
```

Lists active in-progress multipart uploads in the bucket so abandoned uploads can be inspected and aborted.

Scope: `read`.

Path parameters:

- `bucket_id`

Example:

```sh
curl "https://api.pantechdynamics.com/public/v1/buckets/bkt_06gk3x9tq7m2v8r4y1c5d0zp8w/objects/multipart" \
  -H "Authorization: Bearer $PANTECH_API_KEY"
```

Response `200`:

```json
{
  "uploads": [
    {
      "key": "key",
      "upload_id": "upload-id",
      "initiated": "initiated"
    }
  ]
}
```

Errors:

- `401`: `UNAUTHENTICATED`: the request has no API key, or the key is mistyped, revoked or expired, or its creator has left the organization. Send `Authorization: Bearer PAN_…` with a valid key; create one in the console under Organization › API keys.
- `429`: `RATE_LIMITED`: this API key, verified user or organization used its request budget for the current window, or this address exceeded an IP/failed-auth limit. Wait `Retry-After` seconds, then retry. For authenticated quota denials, `RateLimit-Scope` identifies the denying quota and `RateLimit-Reset` reports its remaining window in seconds.
## Start a multipart upload

```http
POST /public/v1/buckets/{bucket_id}/objects/multipart/start
```

Initiates a multipart upload and reports whether parts upload directly or via chunked streaming.

Scope: `write`. Send an `Idempotency-Key` header.

Path parameters:

- `bucket_id`

Body:

- `key` (string, required)
- `content_type` (string)
- `cache_control` (string)
- `content_disposition` (string)
- `metadata` (object)
- `total_size` (integer)
- `public` (boolean)

Example:

```sh
curl -X POST "https://api.pantechdynamics.com/public/v1/buckets/bkt_06gk3x9tq7m2v8r4y1c5d0zp8w/objects/multipart/start" \
  -H "Authorization: Bearer $PANTECH_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
    "key": "key"
  }'
```

Response `200`:

```json
{
  "upload_id": "upload-id",
  "mode": "mode",
  "part_size_bytes": 1
}
```

Errors:

- `401`: `UNAUTHENTICATED`: the request has no API key, or the key is mistyped, revoked or expired, or its creator has left the organization. Send `Authorization: Bearer PAN_…` with a valid key; create one in the console under Organization › API keys.
- `429`: `RATE_LIMITED`: this API key, verified user or organization used its request budget for the current window, or this address exceeded an IP/failed-auth limit. Wait `Retry-After` seconds, then retry. For authenticated quota denials, `RateLimit-Scope` identifies the denying quota and `RateLimit-Reset` reports its remaining window in seconds.
## Sign a direct upload URL for one multipart part

```http
POST /public/v1/buckets/{bucket_id}/objects/multipart/sign-part
```

Returns a short-lived signed PUT URL for uploading one part directly to the bucket.

Scope: `write`. Send an `Idempotency-Key` header.

Path parameters:

- `bucket_id`

Body:

- `key` (string, required)
- `upload_id` (string, required)
- `part_number` (integer, required): At least 1.

Example:

```sh
curl -X POST "https://api.pantechdynamics.com/public/v1/buckets/bkt_06gk3x9tq7m2v8r4y1c5d0zp8w/objects/multipart/sign-part" \
  -H "Authorization: Bearer $PANTECH_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
    "key": "key",
    "upload_id": "upload-id",
    "part_number": 1
  }'
```

Response `200`:

```json
{
  "direct": true,
  "url": "https://x.serial-console.pantechdynamics.com/…",
  "expires_in_seconds": 1
}
```

Errors:

- `401`: `UNAUTHENTICATED`: the request has no API key, or the key is mistyped, revoked or expired, or its creator has left the organization. Send `Authorization: Bearer PAN_…` with a valid key; create one in the console under Organization › API keys.
- `429`: `RATE_LIMITED`: this API key, verified user or organization used its request budget for the current window, or this address exceeded an IP/failed-auth limit. Wait `Retry-After` seconds, then retry. For authenticated quota denials, `RateLimit-Scope` identifies the denying quota and `RateLimit-Reset` reports its remaining window in seconds.
## Batch-sign direct upload URLs for multiple multipart parts

```http
POST /public/v1/buckets/{bucket_id}/objects/multipart/sign-parts
```

Returns short-lived signed PUT URLs for up to 100 multipart parts in a single request.

Scope: `write`. Send an `Idempotency-Key` header.

Path parameters:

- `bucket_id`

Body:

- `key` (string, required)
- `upload_id` (string, required)
- `part_numbers` (array of integer, required): At most 100 items.

Example:

```sh
curl -X POST "https://api.pantechdynamics.com/public/v1/buckets/bkt_06gk3x9tq7m2v8r4y1c5d0zp8w/objects/multipart/sign-parts" \
  -H "Authorization: Bearer $PANTECH_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
    "key": "key",
    "upload_id": "upload-id",
    "part_numbers": [
      1
    ]
  }'
```

Response `200`:

```json
{
  "parts": [
    {
      "part_number": 1,
      "url": "https://x.serial-console.pantechdynamics.com/…"
    }
  ],
  "expires_in_seconds": 1
}
```

Errors:

- `401`: `UNAUTHENTICATED`: the request has no API key, or the key is mistyped, revoked or expired, or its creator has left the organization. Send `Authorization: Bearer PAN_…` with a valid key; create one in the console under Organization › API keys.
- `429`: `RATE_LIMITED`: this API key, verified user or organization used its request budget for the current window, or this address exceeded an IP/failed-auth limit. Wait `Retry-After` seconds, then retry. For authenticated quota denials, `RateLimit-Scope` identifies the denying quota and `RateLimit-Reset` reports its remaining window in seconds.
## Upload one multipart part

```http
PUT /public/v1/buckets/{bucket_id}/objects/multipart/part
```

Uploads one part of an active multipart upload.

Scope: `write`. Send an `Idempotency-Key` header.

Path parameters:

- `bucket_id`

Query parameters:

- `key` (string, required)
- `upload_id` (string, required)
- `part_number` (integer, required): At least 1.

Example:

```sh
curl -X PUT "https://api.pantechdynamics.com/public/v1/buckets/bkt_06gk3x9tq7m2v8r4y1c5d0zp8w/objects/multipart/part?key=key&upload_id=upload-id&part_number=1" \
  -H "Authorization: Bearer $PANTECH_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)"
```

Response `200`:

```json
{
  "part_number": 1,
  "etag": "etag"
}
```

Errors:

- `401`: `UNAUTHENTICATED`: the request has no API key, or the key is mistyped, revoked or expired, or its creator has left the organization. Send `Authorization: Bearer PAN_…` with a valid key; create one in the console under Organization › API keys.
- `429`: `RATE_LIMITED`: this API key, verified user or organization used its request budget for the current window, or this address exceeded an IP/failed-auth limit. Wait `Retry-After` seconds, then retry. For authenticated quota denials, `RateLimit-Scope` identifies the denying quota and `RateLimit-Reset` reports its remaining window in seconds.
## Complete a multipart upload

```http
POST /public/v1/buckets/{bucket_id}/objects/multipart/complete
```

Assembles uploaded parts into the final object.

Scope: `write`. Send an `Idempotency-Key` header.

Path parameters:

- `bucket_id`

Body:

- `key` (string, required)
- `upload_id` (string, required)
- `parts` (array of object, required)
  - `part_number` (integer, required): At least 1.
  - `etag` (string, required)

Example:

```sh
curl -X POST "https://api.pantechdynamics.com/public/v1/buckets/bkt_06gk3x9tq7m2v8r4y1c5d0zp8w/objects/multipart/complete" \
  -H "Authorization: Bearer $PANTECH_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
    "key": "key",
    "upload_id": "upload-id",
    "parts": [
      {
        "part_number": 1,
        "etag": "etag"
      }
    ]
  }'
```

Response `200`:

```json
{
  "key": "key",
  "etag": "etag",
  "version_id": "version-id",
  "last_modified": "2026-10-03T09:30:00Z",
  "public": true,
  "object_public": true,
  "public_source": "private",
  "public_url": "public-url"
}
```

Errors:

- `401`: `UNAUTHENTICATED`: the request has no API key, or the key is mistyped, revoked or expired, or its creator has left the organization. Send `Authorization: Bearer PAN_…` with a valid key; create one in the console under Organization › API keys.
- `429`: `RATE_LIMITED`: this API key, verified user or organization used its request budget for the current window, or this address exceeded an IP/failed-auth limit. Wait `Retry-After` seconds, then retry. For authenticated quota denials, `RateLimit-Scope` identifies the denying quota and `RateLimit-Reset` reports its remaining window in seconds.
## Abort a multipart upload

```http
POST /public/v1/buckets/{bucket_id}/objects/multipart/abort
```

Cancels an in-progress multipart upload and discards uploaded parts.

Scope: `write`. Send an `Idempotency-Key` header.

Path parameters:

- `bucket_id`

Body:

- `key` (string, required)
- `upload_id` (string, required)

Example:

```sh
curl -X POST "https://api.pantechdynamics.com/public/v1/buckets/bkt_06gk3x9tq7m2v8r4y1c5d0zp8w/objects/multipart/abort" \
  -H "Authorization: Bearer $PANTECH_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
    "key": "key",
    "upload_id": "upload-id"
  }'
```

Response `204`: Upload aborted.

Errors:

- `401`: `UNAUTHENTICATED`: the request has no API key, or the key is mistyped, revoked or expired, or its creator has left the organization. Send `Authorization: Bearer PAN_…` with a valid key; create one in the console under Organization › API keys.
- `429`: `RATE_LIMITED`: this API key, verified user or organization used its request budget for the current window, or this address exceeded an IP/failed-auth limit. Wait `Retry-After` seconds, then retry. For authenticated quota denials, `RateLimit-Scope` identifies the denying quota and `RateLimit-Reset` reports its remaining window in seconds.
## Get bucket CORS rules

```http
GET /public/v1/buckets/{bucket_id}/cors
```

Returns the bucket's cross-origin resource sharing rules.

Scope: `read`.

Path parameters:

- `bucket_id`

Example:

```sh
curl "https://api.pantechdynamics.com/public/v1/buckets/bkt_06gk3x9tq7m2v8r4y1c5d0zp8w/cors" \
  -H "Authorization: Bearer $PANTECH_API_KEY"
```

Response `200`:

```json
{
  "rules": [
    {
      "id": "id",
      "allowed_origins": [
        "allowed-origins"
      ],
      "allowed_methods": [
        "allowed-methods"
      ],
      "allowed_headers": [
        "allowed-headers"
      ],
      "expose_headers": [
        "expose-headers"
      ],
      "max_age_seconds": 1
    }
  ]
}
```

Errors:

- `401`: `UNAUTHENTICATED`: the request has no API key, or the key is mistyped, revoked or expired, or its creator has left the organization. Send `Authorization: Bearer PAN_…` with a valid key; create one in the console under Organization › API keys.
- `429`: `RATE_LIMITED`: this API key, verified user or organization used its request budget for the current window, or this address exceeded an IP/failed-auth limit. Wait `Retry-After` seconds, then retry. For authenticated quota denials, `RateLimit-Scope` identifies the denying quota and `RateLimit-Reset` reports its remaining window in seconds.
## Replace bucket CORS rules

```http
PUT /public/v1/buckets/{bucket_id}/cors
```

Replaces the bucket's cross-origin resource sharing rules.

Scope: `write`. Send an `Idempotency-Key` header.

Path parameters:

- `bucket_id`

Body:

- `rules` (array of object, required)
  - `id` (string, required)
  - `allowed_origins` (array of string, required)
  - `allowed_methods` (array of string, required)
  - `allowed_headers` (array of string, required)
  - `expose_headers` (array of string, required)
  - `max_age_seconds` (integer, required): At least 0.

Example:

```sh
curl -X PUT "https://api.pantechdynamics.com/public/v1/buckets/bkt_06gk3x9tq7m2v8r4y1c5d0zp8w/cors" \
  -H "Authorization: Bearer $PANTECH_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
    "rules": [
      {
        "id": "id",
        "allowed_origins": [
          "allowed-origins"
        ],
        "allowed_methods": [
          "GET"
        ],
        "allowed_headers": [
          "allowed-headers"
        ],
        "expose_headers": [
          "expose-headers"
        ],
        "max_age_seconds": 0
      }
    ]
  }'
```

Response `200`:

```json
{
  "rules": [
    {
      "id": "id",
      "allowed_origins": [
        "allowed-origins"
      ],
      "allowed_methods": [
        "allowed-methods"
      ],
      "allowed_headers": [
        "allowed-headers"
      ],
      "expose_headers": [
        "expose-headers"
      ],
      "max_age_seconds": 1
    }
  ]
}
```

Errors:

- `401`: `UNAUTHENTICATED`: the request has no API key, or the key is mistyped, revoked or expired, or its creator has left the organization. Send `Authorization: Bearer PAN_…` with a valid key; create one in the console under Organization › API keys.
- `429`: `RATE_LIMITED`: this API key, verified user or organization used its request budget for the current window, or this address exceeded an IP/failed-auth limit. Wait `Retry-After` seconds, then retry. For authenticated quota denials, `RateLimit-Scope` identifies the denying quota and `RateLimit-Reset` reports its remaining window in seconds.
## Get bucket lifecycle rules

```http
GET /public/v1/buckets/{bucket_id}/lifecycle
```

Returns the bucket's expiration and cleanup rules.

Scope: `read`.

Path parameters:

- `bucket_id`

Example:

```sh
curl "https://api.pantechdynamics.com/public/v1/buckets/bkt_06gk3x9tq7m2v8r4y1c5d0zp8w/lifecycle" \
  -H "Authorization: Bearer $PANTECH_API_KEY"
```

Response `200`:

```json
{
  "rules": [
    {
      "id": "id",
      "prefix": "prefix",
      "enabled": true,
      "expiration_days": 1,
      "noncurrent_expiration_days": 1,
      "abort_incomplete_multipart_days": 1,
      "expired_object_delete_marker": true
    }
  ]
}
```

Errors:

- `401`: `UNAUTHENTICATED`: the request has no API key, or the key is mistyped, revoked or expired, or its creator has left the organization. Send `Authorization: Bearer PAN_…` with a valid key; create one in the console under Organization › API keys.
- `429`: `RATE_LIMITED`: this API key, verified user or organization used its request budget for the current window, or this address exceeded an IP/failed-auth limit. Wait `Retry-After` seconds, then retry. For authenticated quota denials, `RateLimit-Scope` identifies the denying quota and `RateLimit-Reset` reports its remaining window in seconds.
## Replace bucket lifecycle rules

```http
PUT /public/v1/buckets/{bucket_id}/lifecycle
```

Replaces the bucket's expiration and cleanup rules.

Scope: `write`. Send an `Idempotency-Key` header.

Path parameters:

- `bucket_id`

Body:

- `rules` (array of object, required)
  - `id` (string, required)
  - `prefix` (string, required)
  - `enabled` (boolean, required)
  - `expiration_days` (integer, required): At least 1.
  - `noncurrent_expiration_days` (integer, required): At least 0.
  - `abort_incomplete_multipart_days` (integer, required): At least 0.
  - `expired_object_delete_marker` (boolean, required)

Example:

```sh
curl -X PUT "https://api.pantechdynamics.com/public/v1/buckets/bkt_06gk3x9tq7m2v8r4y1c5d0zp8w/lifecycle" \
  -H "Authorization: Bearer $PANTECH_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
    "rules": [
      {
        "id": "id",
        "prefix": "prefix",
        "enabled": true,
        "expiration_days": 1,
        "noncurrent_expiration_days": 0,
        "abort_incomplete_multipart_days": 0,
        "expired_object_delete_marker": true
      }
    ]
  }'
```

Response `200`:

```json
{
  "rules": [
    {
      "id": "id",
      "prefix": "prefix",
      "enabled": true,
      "expiration_days": 1,
      "noncurrent_expiration_days": 1,
      "abort_incomplete_multipart_days": 1,
      "expired_object_delete_marker": true
    }
  ]
}
```

Errors:

- `401`: `UNAUTHENTICATED`: the request has no API key, or the key is mistyped, revoked or expired, or its creator has left the organization. Send `Authorization: Bearer PAN_…` with a valid key; create one in the console under Organization › API keys.
- `429`: `RATE_LIMITED`: this API key, verified user or organization used its request budget for the current window, or this address exceeded an IP/failed-auth limit. Wait `Retry-After` seconds, then retry. For authenticated quota denials, `RateLimit-Scope` identifies the denying quota and `RateLimit-Reset` reports its remaining window in seconds.
## Get bucket tags

```http
GET /public/v1/buckets/{bucket_id}/tags
```

Returns key-value tags set on the bucket.

Scope: `read`.

Path parameters:

- `bucket_id`

Example:

```sh
curl "https://api.pantechdynamics.com/public/v1/buckets/bkt_06gk3x9tq7m2v8r4y1c5d0zp8w/tags" \
  -H "Authorization: Bearer $PANTECH_API_KEY"
```

Response `200`:

```json
{
  "tags": [
    {
      "key": "key",
      "value": "value"
    }
  ]
}
```

Errors:

- `401`: `UNAUTHENTICATED`: the request has no API key, or the key is mistyped, revoked or expired, or its creator has left the organization. Send `Authorization: Bearer PAN_…` with a valid key; create one in the console under Organization › API keys.
- `429`: `RATE_LIMITED`: this API key, verified user or organization used its request budget for the current window, or this address exceeded an IP/failed-auth limit. Wait `Retry-After` seconds, then retry. For authenticated quota denials, `RateLimit-Scope` identifies the denying quota and `RateLimit-Reset` reports its remaining window in seconds.
## Replace bucket tags

```http
PUT /public/v1/buckets/{bucket_id}/tags
```

Replaces key-value tags on the bucket.

Scope: `write`. Send an `Idempotency-Key` header.

Path parameters:

- `bucket_id`

Body:

- `tags` (array of object, required)
  - `key` (string, required)
  - `value` (string, required)

Example:

```sh
curl -X PUT "https://api.pantechdynamics.com/public/v1/buckets/bkt_06gk3x9tq7m2v8r4y1c5d0zp8w/tags" \
  -H "Authorization: Bearer $PANTECH_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
    "tags": [
      {
        "key": "key",
        "value": "value"
      }
    ]
  }'
```

Response `200`:

```json
{
  "tags": [
    {
      "key": "key",
      "value": "value"
    }
  ]
}
```

Errors:

- `401`: `UNAUTHENTICATED`: the request has no API key, or the key is mistyped, revoked or expired, or its creator has left the organization. Send `Authorization: Bearer PAN_…` with a valid key; create one in the console under Organization › API keys.
- `429`: `RATE_LIMITED`: this API key, verified user or organization used its request budget for the current window, or this address exceeded an IP/failed-auth limit. Wait `Retry-After` seconds, then retry. For authenticated quota denials, `RateLimit-Scope` identifies the denying quota and `RateLimit-Reset` reports its remaining window in seconds.
## Get bucket default object-lock retention

```http
GET /public/v1/buckets/{bucket_id}/object-lock
```

Returns default retention settings for an object-lock bucket.

Scope: `read`.

Path parameters:

- `bucket_id`

Example:

```sh
curl "https://api.pantechdynamics.com/public/v1/buckets/bkt_06gk3x9tq7m2v8r4y1c5d0zp8w/object-lock" \
  -H "Authorization: Bearer $PANTECH_API_KEY"
```

Response `200`:

```json
{
  "enabled": true,
  "mode": "mode",
  "days": 1,
  "years": 1
}
```

Errors:

- `401`: `UNAUTHENTICATED`: the request has no API key, or the key is mistyped, revoked or expired, or its creator has left the organization. Send `Authorization: Bearer PAN_…` with a valid key; create one in the console under Organization › API keys.
- `429`: `RATE_LIMITED`: this API key, verified user or organization used its request budget for the current window, or this address exceeded an IP/failed-auth limit. Wait `Retry-After` seconds, then retry. For authenticated quota denials, `RateLimit-Scope` identifies the denying quota and `RateLimit-Reset` reports its remaining window in seconds.
## Set bucket default object-lock retention

```http
PUT /public/v1/buckets/{bucket_id}/object-lock
```

Sets default retention settings for an object-lock bucket.

Scope: `write`. Send an `Idempotency-Key` header.

Path parameters:

- `bucket_id`

Body:

- `enabled` (boolean, required)
- `mode` (string, required): One of `GOVERNANCE`, `COMPLIANCE`.
- `days` (integer, required): At least 1.
- `years` (integer, required): At least 0.

Example:

```sh
curl -X PUT "https://api.pantechdynamics.com/public/v1/buckets/bkt_06gk3x9tq7m2v8r4y1c5d0zp8w/object-lock" \
  -H "Authorization: Bearer $PANTECH_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
    "enabled": true,
    "mode": "GOVERNANCE",
    "days": 1,
    "years": 0
  }'
```

Response `200`:

```json
{
  "enabled": true,
  "mode": "mode",
  "days": 1,
  "years": 1
}
```

Errors:

- `401`: `UNAUTHENTICATED`: the request has no API key, or the key is mistyped, revoked or expired, or its creator has left the organization. Send `Authorization: Bearer PAN_…` with a valid key; create one in the console under Organization › API keys.
- `429`: `RATE_LIMITED`: this API key, verified user or organization used its request budget for the current window, or this address exceeded an IP/failed-auth limit. Wait `Retry-After` seconds, then retry. For authenticated quota denials, `RateLimit-Scope` identifies the denying quota and `RateLimit-Reset` reports its remaining window in seconds.
## List shared buckets

```http
GET /public/v1/buckets/shared
```

Lists buckets shared with your organization by other Pantech organizations.

Scope: `read`.

Example:

```sh
curl "https://api.pantechdynamics.com/public/v1/buckets/shared" \
  -H "Authorization: Bearer $PANTECH_API_KEY"
```

Response `200`:

```json
{
  "data": [
    {}
  ],
  "next_cursor": "eyJhdCI6IjIwMjYtMTAtMDNUMDk6MzA6MDBaIiwiaWQiOiJ2bV8wNmdrIn0"
}
```

Errors:

- `401`: `UNAUTHENTICATED`: the request has no API key, or the key is mistyped, revoked or expired, or its creator has left the organization. Send `Authorization: Bearer PAN_…` with a valid key; create one in the console under Organization › API keys.
- `429`: `RATE_LIMITED`: this API key, verified user or organization used its request budget for the current window, or this address exceeded an IP/failed-auth limit. Wait `Retry-After` seconds, then retry. For authenticated quota denials, `RateLimit-Scope` identifies the denying quota and `RateLimit-Reset` reports its remaining window in seconds.
## List bucket shares

```http
GET /public/v1/buckets/{bucket_id}/shares
```

Lists active cross-organization shares configured on a bucket.

Scope: `read`.

Path parameters:

- `bucket_id`

Example:

```sh
curl "https://api.pantechdynamics.com/public/v1/buckets/bkt_06gk3x9tq7m2v8r4y1c5d0zp8w/shares" \
  -H "Authorization: Bearer $PANTECH_API_KEY"
```

Response `200`:

```json
{
  "data": [
    {}
  ],
  "next_cursor": "eyJhdCI6IjIwMjYtMTAtMDNUMDk6MzA6MDBaIiwiaWQiOiJ2bV8wNmdrIn0"
}
```

Errors:

- `401`: `UNAUTHENTICATED`: the request has no API key, or the key is mistyped, revoked or expired, or its creator has left the organization. Send `Authorization: Bearer PAN_…` with a valid key; create one in the console under Organization › API keys.
- `429`: `RATE_LIMITED`: this API key, verified user or organization used its request budget for the current window, or this address exceeded an IP/failed-auth limit. Wait `Retry-After` seconds, then retry. For authenticated quota denials, `RateLimit-Scope` identifies the denying quota and `RateLimit-Reset` reports its remaining window in seconds.
## Share bucket with another organization

```http
POST /public/v1/buckets/{bucket_id}/shares
```

Grants another organization read_only, write_only, or read_write access to this bucket or specific key prefixes.

Scope: `write`. Send an `Idempotency-Key` header.

Path parameters:

- `bucket_id`

Body:

- `grantee_organization_id` (string, required)
- `permissions` (string, required): One of `read_only`, `write_only`, `read_write`.
- `prefixes` (array of string)
- `expires_at` (string)

Example:

```sh
curl -X POST "https://api.pantechdynamics.com/public/v1/buckets/bkt_06gk3x9tq7m2v8r4y1c5d0zp8w/shares" \
  -H "Authorization: Bearer $PANTECH_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
    "grantee_organization_id": "grantee-organization-id",
    "permissions": "read_only"
  }'
```

Response `201`:

```json
{}
```

Errors:

- `401`: `UNAUTHENTICATED`: the request has no API key, or the key is mistyped, revoked or expired, or its creator has left the organization. Send `Authorization: Bearer PAN_…` with a valid key; create one in the console under Organization › API keys.
- `429`: `RATE_LIMITED`: this API key, verified user or organization used its request budget for the current window, or this address exceeded an IP/failed-auth limit. Wait `Retry-After` seconds, then retry. For authenticated quota denials, `RateLimit-Scope` identifies the denying quota and `RateLimit-Reset` reports its remaining window in seconds.
## Revoke a bucket share

```http
DELETE /public/v1/buckets/{bucket_id}/shares/{share_id}
```

Revokes another organization's cross-account access to this bucket.

Scope: `write`. Send an `Idempotency-Key` header.

Path parameters:

- `bucket_id`
- `share_id`

Example:

```sh
curl -X DELETE "https://api.pantechdynamics.com/public/v1/buckets/bkt_06gk3x9tq7m2v8r4y1c5d0zp8w/shares/id_06gk3x9tq7m2v8r4y1c5d0zp8w" \
  -H "Authorization: Bearer $PANTECH_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)"
```

Response `204`: Share revoked.

Errors:

- `401`: `UNAUTHENTICATED`: the request has no API key, or the key is mistyped, revoked or expired, or its creator has left the organization. Send `Authorization: Bearer PAN_…` with a valid key; create one in the console under Organization › API keys.
- `429`: `RATE_LIMITED`: this API key, verified user or organization used its request budget for the current window, or this address exceeded an IP/failed-auth limit. Wait `Retry-After` seconds, then retry. For authenticated quota denials, `RateLimit-Scope` identifies the denying quota and `RateLimit-Reset` reports its remaining window in seconds.
## List bucket event notifications

```http
GET /public/v1/buckets/{bucket_id}/notifications
```

Lists object event notification rules configured on this bucket.

Scope: `read`.

Path parameters:

- `bucket_id`

Example:

```sh
curl "https://api.pantechdynamics.com/public/v1/buckets/bkt_06gk3x9tq7m2v8r4y1c5d0zp8w/notifications" \
  -H "Authorization: Bearer $PANTECH_API_KEY"
```

Response `200`:

```json
{
  "data": [
    {}
  ],
  "next_cursor": "eyJhdCI6IjIwMjYtMTAtMDNUMDk6MzA6MDBaIiwiaWQiOiJ2bV8wNmdrIn0"
}
```

Errors:

- `401`: `UNAUTHENTICATED`: the request has no API key, or the key is mistyped, revoked or expired, or its creator has left the organization. Send `Authorization: Bearer PAN_…` with a valid key; create one in the console under Organization › API keys.
- `429`: `RATE_LIMITED`: this API key, verified user or organization used its request budget for the current window, or this address exceeded an IP/failed-auth limit. Wait `Retry-After` seconds, then retry. For authenticated quota denials, `RateLimit-Scope` identifies the denying quota and `RateLimit-Reset` reports its remaining window in seconds.
## Create a bucket notification rule

```http
POST /public/v1/buckets/{bucket_id}/notifications
```

Subscribes a webhook endpoint or function to object created or removed events in this bucket.

Scope: `write`. Send an `Idempotency-Key` header.

Path parameters:

- `bucket_id`

Body:

- `name` (string, required)
- `events` (array of string, required)
- `prefix` (string)
- `suffix` (string)
- `target_type` (string, required): One of `webhook`, `function`.
- `target_id` (string, required)
- `enabled` (boolean)

Example:

```sh
curl -X POST "https://api.pantechdynamics.com/public/v1/buckets/bkt_06gk3x9tq7m2v8r4y1c5d0zp8w/notifications" \
  -H "Authorization: Bearer $PANTECH_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "web-1",
    "events": [
      "object.created"
    ],
    "target_type": "webhook",
    "target_id": "target-id"
  }'
```

Response `201`:

```json
{}
```

Errors:

- `401`: `UNAUTHENTICATED`: the request has no API key, or the key is mistyped, revoked or expired, or its creator has left the organization. Send `Authorization: Bearer PAN_…` with a valid key; create one in the console under Organization › API keys.
- `429`: `RATE_LIMITED`: this API key, verified user or organization used its request budget for the current window, or this address exceeded an IP/failed-auth limit. Wait `Retry-After` seconds, then retry. For authenticated quota denials, `RateLimit-Scope` identifies the denying quota and `RateLimit-Reset` reports its remaining window in seconds.
## Update a bucket notification rule

```http
PATCH /public/v1/buckets/{bucket_id}/notifications/{notification_id}
```

Updates events, prefix/suffix filters, or enabled state of a notification rule.

Scope: `write`. Send an `Idempotency-Key` header.

Path parameters:

- `bucket_id`
- `notification_id`

Body:

- `events` (array of string)
- `prefix` (string)
- `suffix` (string)
- `enabled` (boolean)

Example:

```sh
curl -X PATCH "https://api.pantechdynamics.com/public/v1/buckets/bkt_06gk3x9tq7m2v8r4y1c5d0zp8w/notifications/id_06gk3x9tq7m2v8r4y1c5d0zp8w" \
  -H "Authorization: Bearer $PANTECH_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{}'
```

Response `200`:

```json
{}
```

Errors:

- `401`: `UNAUTHENTICATED`: the request has no API key, or the key is mistyped, revoked or expired, or its creator has left the organization. Send `Authorization: Bearer PAN_…` with a valid key; create one in the console under Organization › API keys.
- `429`: `RATE_LIMITED`: this API key, verified user or organization used its request budget for the current window, or this address exceeded an IP/failed-auth limit. Wait `Retry-After` seconds, then retry. For authenticated quota denials, `RateLimit-Scope` identifies the denying quota and `RateLimit-Reset` reports its remaining window in seconds.
## Delete a bucket notification rule

```http
DELETE /public/v1/buckets/{bucket_id}/notifications/{notification_id}
```

Deletes an object notification rule.

Scope: `write`. Send an `Idempotency-Key` header.

Path parameters:

- `bucket_id`
- `notification_id`

Example:

```sh
curl -X DELETE "https://api.pantechdynamics.com/public/v1/buckets/bkt_06gk3x9tq7m2v8r4y1c5d0zp8w/notifications/id_06gk3x9tq7m2v8r4y1c5d0zp8w" \
  -H "Authorization: Bearer $PANTECH_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)"
```

Response `204`: Notification rule deleted.

Errors:

- `401`: `UNAUTHENTICATED`: the request has no API key, or the key is mistyped, revoked or expired, or its creator has left the organization. Send `Authorization: Bearer PAN_…` with a valid key; create one in the console under Organization › API keys.
- `429`: `RATE_LIMITED`: this API key, verified user or organization used its request budget for the current window, or this address exceeded an IP/failed-auth limit. Wait `Retry-After` seconds, then retry. For authenticated quota denials, `RateLimit-Scope` identifies the denying quota and `RateLimit-Reset` reports its remaining window in seconds.
## List bucket custom domains

```http
GET /public/v1/buckets/{bucket_id}/domains
```

Lists custom domain bindings and static website settings on a bucket.

Scope: `read`.

Path parameters:

- `bucket_id`

Example:

```sh
curl "https://api.pantechdynamics.com/public/v1/buckets/bkt_06gk3x9tq7m2v8r4y1c5d0zp8w/domains" \
  -H "Authorization: Bearer $PANTECH_API_KEY"
```

Response `200`:

```json
{
  "data": [
    {}
  ],
  "next_cursor": "eyJhdCI6IjIwMjYtMTAtMDNUMDk6MzA6MDBaIiwiaWQiOiJ2bV8wNmdrIn0"
}
```

Errors:

- `401`: `UNAUTHENTICATED`: the request has no API key, or the key is mistyped, revoked or expired, or its creator has left the organization. Send `Authorization: Bearer PAN_…` with a valid key; create one in the console under Organization › API keys.
- `429`: `RATE_LIMITED`: this API key, verified user or organization used its request budget for the current window, or this address exceeded an IP/failed-auth limit. Wait `Retry-After` seconds, then retry. For authenticated quota denials, `RateLimit-Scope` identifies the denying quota and `RateLimit-Reset` reports its remaining window in seconds.
## Attach a custom domain to a bucket

```http
POST /public/v1/buckets/{bucket_id}/domains
```

Binds a custom hostname with a Certificate Manager TLS certificate and static website settings.

Scope: `write`. Send an `Idempotency-Key` header.

Path parameters:

- `bucket_id`

Body:

- `hostname` (string, required)
- `certificate_id` (string, required)
- `index_document` (string)
- `error_document` (string)
- `spa_mode` (boolean)
- `cache_ttl_seconds` (integer): At least 0.

Example:

```sh
curl -X POST "https://api.pantechdynamics.com/public/v1/buckets/bkt_06gk3x9tq7m2v8r4y1c5d0zp8w/domains" \
  -H "Authorization: Bearer $PANTECH_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
    "hostname": "db-7k2q9x4m1a.af-abj-2.db.pantechdynamics.com",
    "certificate_id": "cert_06gk3x9tq7m2v8r4y1c5d0zp8w"
  }'
```

Response `201`:

```json
{}
```

Errors:

- `401`: `UNAUTHENTICATED`: the request has no API key, or the key is mistyped, revoked or expired, or its creator has left the organization. Send `Authorization: Bearer PAN_…` with a valid key; create one in the console under Organization › API keys.
- `429`: `RATE_LIMITED`: this API key, verified user or organization used its request budget for the current window, or this address exceeded an IP/failed-auth limit. Wait `Retry-After` seconds, then retry. For authenticated quota denials, `RateLimit-Scope` identifies the denying quota and `RateLimit-Reset` reports its remaining window in seconds.
## Update a bucket custom domain

```http
PATCH /public/v1/buckets/{bucket_id}/domains/{domain_id}
```

Updates the TLS certificate or static website routing/cache settings on a custom domain.

Scope: `write`. Send an `Idempotency-Key` header.

Path parameters:

- `bucket_id`
- `domain_id`

Body:

- `certificate_id` (string)
- `index_document` (string)
- `error_document` (string)
- `spa_mode` (boolean)
- `cache_ttl_seconds` (integer): At least 0.

Example:

```sh
curl -X PATCH "https://api.pantechdynamics.com/public/v1/buckets/bkt_06gk3x9tq7m2v8r4y1c5d0zp8w/domains/dom_06gk3x9tq7m2v8r4y1c5d0zp8w" \
  -H "Authorization: Bearer $PANTECH_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{}'
```

Response `200`:

```json
{}
```

Errors:

- `401`: `UNAUTHENTICATED`: the request has no API key, or the key is mistyped, revoked or expired, or its creator has left the organization. Send `Authorization: Bearer PAN_…` with a valid key; create one in the console under Organization › API keys.
- `429`: `RATE_LIMITED`: this API key, verified user or organization used its request budget for the current window, or this address exceeded an IP/failed-auth limit. Wait `Retry-After` seconds, then retry. For authenticated quota denials, `RateLimit-Scope` identifies the denying quota and `RateLimit-Reset` reports its remaining window in seconds.
## Detach a bucket custom domain

```http
DELETE /public/v1/buckets/{bucket_id}/domains/{domain_id}
```

Detaches a custom domain from a bucket.

Scope: `write`. Send an `Idempotency-Key` header.

Path parameters:

- `bucket_id`
- `domain_id`

Example:

```sh
curl -X DELETE "https://api.pantechdynamics.com/public/v1/buckets/bkt_06gk3x9tq7m2v8r4y1c5d0zp8w/domains/dom_06gk3x9tq7m2v8r4y1c5d0zp8w" \
  -H "Authorization: Bearer $PANTECH_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)"
```

Response `204`: Custom domain deleted.

Errors:

- `401`: `UNAUTHENTICATED`: the request has no API key, or the key is mistyped, revoked or expired, or its creator has left the organization. Send `Authorization: Bearer PAN_…` with a valid key; create one in the console under Organization › API keys.
- `429`: `RATE_LIMITED`: this API key, verified user or organization used its request budget for the current window, or this address exceeded an IP/failed-auth limit. Wait `Retry-After` seconds, then retry. For authenticated quota denials, `RateLimit-Scope` identifies the denying quota and `RateLimit-Reset` reports its remaining window in seconds.
