v53

latestOpenAPI 3.1.0raw.githubusercontent.com2026-08-041,1941,9384.1 MB
cloudfs filesystems

Rotate the metadata token

Issues a new metadata access token for the filesystem and returns the full filesystem, including the new meta_token and credential-bearing meta_url. The previous token stops authenticating immediately; the metadata database and S3 bucket are unchanged. The request takes no body. Allowed while the filesystem is ready or needs_format; otherwise returns a 409. Retrying with the same Idempotency-Key within 24 hours replays the original response — including the same token — instead of rotating again.

post/storage/cloudfs/{id}/actions/rotate-meta-token

Path parameters

idstring uuid required

CloudFS filesystem ID

Headers

Idempotency-Keystring required

Unique key that makes the request idempotent (1-255 characters: letters, numbers, _, and -). Retrying with the same key within 24 hours replays the original response (marked with an Idempotent-Replayed: true header) instead of repeating the action. Reusing a key with a different request returns a 422; sending a key while the original request is still being processed returns a 409.

Response

New metadata token issued; the response includes the new meta_token and credential-bearing meta_url

Example response

{
  "data": {
    "created_at": "2026-07-14T21:42:01Z",
    "id": "550e8400-e29b-41d4-a716-446655440000",
    "meta_token": "cloudfs_tok_0123456789abcdef0123456789abcdef",
    "meta_url": "postgres://fs_0123456789abcdef@us-east-1.telnyxcloudfs.com:5432/fs_0123456789abcdef?sslmode=require",
    "name": "agent-fs",
    "record_type": "cloudfs",
    "region": "us-east-1",
    "s3_bucket": "cloudfs-fs-0123456789abcdef",
    "s3_endpoint": "https://us-east-1.telnyxcloudstorage.com",
    "status": "ready",
    "updated_at": "2026-07-14T21:42:01Z"
  }
}