POST
/v1/buckets/{bucketId}/keysCreate bucket keyCreates a new access key for the given bucket. The secretAccessKey field is returned exactly once in this response and is never stored — copy it immediately.
Parameters
bucketIdstringpathrequiredRequest body
application/json
object
namestringDisplay name for the key. Generated if omitted.
rolestringrequiredAccess role for the key: "read" or "read_write".
{
"name": "string",
"role": "read"
}Responses
object
dataobjectrequiredShow child attributes
accessKeyIdstringrequiredbucketNamestringrequiredcreatedAtstring · date-timerequiredendpointstringrequiredidstringrequirednamestringrequiredrolestringrequiredsecretAccessKeystringrequiredtypestringrequiredvalueHintstringrequired{
"data": {
"accessKeyId": "string",
"bucketName": "string",
"createdAt": "2026-06-09T00:00:00Z",
"endpoint": "string",
"id": "string",
"name": "string",
"role": "read",
"secretAccessKey": "string",
"type": "bucketKey",
"valueHint": "string"
}
}object
errorobjectrequiredShow child attributes
codestringrequiredhintstringmessagestringrequired{
"error": {
"code": "string",
"hint": "string",
"message": "string"
}
}object
errorobjectrequiredShow child attributes
codestringrequiredhintstringmessagestringrequired{
"error": {
"code": "string",
"hint": "string",
"message": "string"
}
}object
errorobjectrequiredShow child attributes
codestringrequiredhintstringmessagestringrequired{
"error": {
"code": "string",
"hint": "string",
"message": "string"
}
}object
errorobjectrequiredShow child attributes
codestringrequiredhintstringmessagestringrequired{
"error": {
"code": "string",
"hint": "string",
"message": "string"
}
}