Get an object cache's credentials

Get the S3 keys clients use with the object cache, and its endpoint URLs. You can get them again at any time.

GET https://{availability_zone}.betterstackcloud.com/v1/object-proxies/{id}/credentials
id string required

The ID of the object cache.

Authorization string required

Bearer $TOKEN

200 OK
{
  "access_key_id": "123456789",
  "secret_access_key": "example",
  "endpoints": [
    "example"
  ],
  "previous_access_key_id": "123456789",
  "rotating_until": "2026-07-01T12:00:00.000Z",
  "usage": "example"
}

Returns the keys and endpoint URLs as one object.

access_key_id string

The access key ID.

secret_access_key string

The secret access key.

endpoints array of strings

The endpoint URLs, an HTTP URL in each attached network and the public HTTPS URL when public_access is on.

previous_access_key_id string or null

The previous access key ID, which keeps working until rotating_until, or null when no rotation is in progress.

rotating_until datetime or null

When the previous key stops working, or null when no rotation is in progress. In ISO 8601 format, such as 2026-07-01T12:00:00Z.

usage string

An example command for the AWS CLI. Clients must use path-style addressing.