/v1/asset-buckets/{uid}/access-keysReturns 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
uidstringRequiredThe bucket's uid.
Headers
X-Workspace-SlugstringRequiredSlug of the workspace the request acts on. You can also pass it as the workspace_slug query parameter.
Response
The bucket's access keys.
successbooleanRequiredtrue when the request succeeded.
messagestringRequiredHuman-readable status message.
dataarray of objectsShow item attributesHide item attributes
uidstringRequiredUnique identifier of the access key. Use it to revoke the key.
bucket_uidstringRequiredUID of the bucket the key is scoped to.
namestringRequiredLabel you gave the key.
access_key_idstringRequiredS3 access key ID. Starts with RPTY.
permissionsarray of stringsRequiredWhat the key may do in the bucket.
One ofreadwritelistdelete
statusstringRequiredprovisioning until the grant is applied on storage, then active.
One ofprovisioningactiverevokedfailed
endpointstringRequiredS3 endpoint to point your client at.
regionstringRequiredS3 region to configure in your client.
bucketstringRequiredS3 bucket name to use with the key (same as the bucket's s3_bucket_name).
created_atstring (date-time)RequiredWhen 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
| Status | Meaning |
|---|---|
401 | The API key is missing, invalid, expired or revoked. |
403 | You cannot access the workspace, your role does not allow this action, or the account is suspended. |
404 | The bucket does not exist in this workspace. |
Errors use the standard error format.