Create Access Key

Create a new access key / secret key pair for your account.
EndpointMethodAdmin Required
/api/v1/users/accessKeysPOSTNo

Creates an access key pair for the authenticated user. You choose both halves of the pair; Alarik does not generate them. The new key can use every bucket you own, on the S3 API and on this Internal API alike, from the moment the call returns.

Request Body

accessKey
string required
The access key ID. Must be unique across the whole system.
secretKey
string required
The secret. Stored, never returned by any later call - keep it.
description
string
Optional label of at most 500 characters. Surrounding whitespace is trimmed; an empty value is stored as null.
expirationDate
string
Optional ISO 8601 timestamp after which the key stops authenticating. Omit for a key that never expires.

Example

{
    "accessKey": "AKIAIOSFODNN7EXAMPLE",
    "secretKey": "wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY",
    "description": "CI deploy key",
    "expirationDate": "2025-07-15T00:00:00Z"
}

Response

{
    "id": "3FA85F64-5717-4562-B3FC-2C963F66AFA6",
    "accessKey": "AKIAIOSFODNN7EXAMPLE",
    "description": "CI deploy key",
    "createdAt": "2025-01-15T10:30:00Z",
    "expirationDate": "2025-07-15T00:00:00Z"
}

Errors

StatusReason
400Validation failed (empty accessKey or secretKey, description longer than 500 characters)
409An access key with this ID already exists