Skip to content

List bucket access keys

GET/v1/asset-buckets/{uid}/access-keys

Returns the bucket's S3 access keys, newest first. Revoked keys are not included. Secret access keys are never returned, only the access_key_id.

Requires the secrets read permission (owner, admin or developer role).

Authentication

Send your API key as Authorization: Bearer <token>. The request is scoped to the workspace in X-Workspace-Slug.

Path parameters

uidstringRequired

The bucket's uid.

Headers

X-Workspace-SlugstringRequired

Slug of the workspace the request acts on. You can also pass it as the workspace_slug query parameter.

Response

200

The bucket's access keys.

successbooleanRequired

true when the request succeeded.

messagestringRequired

Human-readable status message.

dataarray of objects
Show item attributes
uidstringRequired

Unique identifier of the access key. Use it to revoke the key.

bucket_uidstringRequired

UID of the bucket the key is scoped to.

namestringRequired

Label you gave the key.

access_key_idstringRequired

S3 access key ID. Starts with RPTY.

permissionsarray of stringsRequired

What the key may do in the bucket.

One ofreadwritelistdelete

statusstringRequired

provisioning until the grant is applied on storage, then active.

One ofprovisioningactiverevokedfailed

endpointstringRequired

S3 endpoint to point your client at.

regionstringRequired

S3 region to configure in your client.

bucketstringRequired

S3 bucket name to use with the key (same as the bucket's s3_bucket_name).

created_atstring (date-time)Required

When the key was created.

revoked_atstring (date-time)

When the key was revoked. Omitted for keys that are not revoked.

last_used_atstring (date-time)

When the key was last used. Omitted if it has never been used.

Errors

StatusMeaning
401The API key is missing, invalid, expired or revoked.
403You cannot access the workspace, your role does not allow this action, or the account is suspended.
404The bucket does not exist in this workspace.

Errors use the standard error format.