/v1/asset-buckets/{uid}/access-keysCreates an S3 access key scoped to this bucket, for use with any S3-compatible client (AWS
CLI, SDKs, rclone and so on). Point the client at endpoint and region, and use bucket
as the bucket name.
The secret_access_key appears only in this response. Store it securely, because it
cannot be retrieved again.
The key starts in provisioning while it is granted on storage, and becomes active when
the operation finishes. Poll Get an operation with
operation_id before using the key. If provisioning fails the key's status is failed.
The bucket must be ready. Requires the secrets manage 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.
Request body
namestringRequiredLabel for the key. Leading and trailing spaces are trimmed.
permissionsarray of stringsWhat the key may do. Case-insensitive, duplicates are ignored. Defaults to all
four (read, write, list, delete) when omitted or empty.
One ofreadwritelistdelete
Response
The key was created and its provisioning operation was queued. The response includes the one-time secret_access_key.
successbooleanRequiredtrue when the request succeeded.
messagestringRequiredHuman-readable status message.
dataobjectShow attributesHide 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.
secret_access_keystringRequiredThe S3 secret access key. Shown only once.
operation_idstringRequiredID of the operation that provisions the key. Pass it to Get an operation.
operation_statusstringRequiredStatus of the operation when it was queued. Always queued.
events_urlstringRequiredPath of the operation's progress event stream.
Errors
| Status | Meaning |
|---|---|
400 | Validation failed. Possible messages: invalid request (malformed JSON or missing name), name is required, unsupported permission "<value>", at least one permission is required (only blank entries were sent). |
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. |
409 | The bucket is not ready. |
Errors use the standard error format.