Create a new master key and split it into shares
admin_password required | string Admin password for key management |
admin_username required | string Admin username for key management |
min_shares required | integer <int64> Minimum number of shares required to reconstruct the key |
total_shares required | integer <int64> Total number of shares to create |
{- "admin_password": "admin_password123!",
- "admin_username": "admin",
- "min_shares": 3,
- "total_shares": 5
}
{- "admin_username": "admin",
- "shares": [
- "EXAMPLEA5ZKwDn8Zotr3B+d+F+UzrcJ1Yhl2rU0",
- "EXAMPLEB5ZKwDn8Zotr3B+d+F+UzrcJ1Yhl2rU1",
- "EXAMPLEC5ZKwDn8Zotr3B+d+F+UzrcJ1Yhl2rU2"
]
}
Create a secret
authorized_members required | Array of integers <int64> [ items <int64 > ] Members IDs authorized to access the secret |
authorized_roles required | Array of integers <int64> [ items <int64 > ] Role IDs authorized to access the secret |
path required | string >= 2 characters Base64 encoded secret's path |
value required | string The secret value |
{- "authorized_members": [
- 5091348230372323000,
- 633220121447532700,
- 2121356811434194700
], - "authorized_roles": [
- 2782797484439170000,
- 2748161521337896000,
- 5585384301853113000
], - "path": "L2N1c3RvbWVycy9nb29nbGUvYXBpX2tleQ==",
- "value": "SECRET_API_KEY123"
}
Retrieve a secret's information
path required | string >= 2 characters Example: L2N1c3RvbWVycy9nb29nbGUvYXBpX2tleQ== Base64 encoded secret's path |
{- "authorized_members": [
- {
- "created_at": "2025-06-30T12:00:00Z",
- "updated_at": "2025-06-30T15:00:00Z",
- "username": "alice"
}, - {
- "created_at": "2025-06-30T12:00:00Z",
- "updated_at": "2025-06-30T15:00:00Z",
- "username": "alice"
}, - {
- "created_at": "2025-06-30T12:00:00Z",
- "updated_at": "2025-06-30T15:00:00Z",
- "username": "alice"
}
], - "authorized_roles": [
- {
- "id": 1,
- "name": "admin"
}, - {
- "id": 1,
- "name": "admin"
}, - {
- "id": 1,
- "name": "admin"
}
], - "created_at": "2025-06-30T12:00:00Z",
- "owner": {
- "created_at": "2025-06-30T12:00:00Z",
- "updated_at": "2025-06-30T15:00:00Z",
- "username": "alice"
}, - "path": "customers/google/api_key",
- "updated_at": "2025-06-30T15:00:00Z"
}
[- {
- "created_at": "2025-06-30T12:00:00Z",
- "updated_at": "2025-06-30T15:00:00Z",
- "username": "alice"
}, - {
- "created_at": "2025-06-30T12:00:00Z",
- "updated_at": "2025-06-30T15:00:00Z",
- "username": "alice"
}, - {
- "created_at": "2025-06-30T12:00:00Z",
- "updated_at": "2025-06-30T15:00:00Z",
- "username": "alice"
}, - {
- "created_at": "2025-06-30T12:00:00Z",
- "updated_at": "2025-06-30T15:00:00Z",
- "username": "alice"
}
]
Create a new user
password required | string Password (hashed or plain depending on implementation) |
username required | string >= 3 characters Username of the new user |
{- "password": "s3cr3t",
- "username": "alice"
}
{- "id": 2,
- "username": "alice"
}
Authenticate a user with username and password
password required | string Password |
username required | string Username |
{- "password": "s3cr3t",
- "username": "alice"
}
{- "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
- "username": "alice"
}