Users API
Manage users and permissions.
WARNING
User management endpoints require admin privileges.
List Users
http
GET /api/v1/usersResponse
json
{
"data": [
{
"id": "usr_abc123",
"username": "john",
"email": "john@example.com",
"role": "developer",
"created_at": "2025-01-15T10:00:00Z",
"last_login": "2025-01-15T12:00:00Z"
}
]
}Get User
http
GET /api/v1/users/:idCreate User
http
POST /api/v1/usersRequest Body
json
{
"username": "jane",
"email": "jane@example.com",
"password": "secure-password",
"role": "developer"
}Roles
| Role | Description |
|---|---|
admin | Full access to all features |
developer | Deploy, view services, manage alerts |
viewer | Read-only access |
Update User
http
PATCH /api/v1/users/:idDelete User
http
DELETE /api/v1/users/:idGet Current User
http
GET /api/v1/users/meUpdate Password
http
POST /api/v1/users/me/passwordjson
{
"current_password": "old-password",
"new_password": "new-secure-password"
}API Keys
List API Keys
http
GET /api/v1/users/me/api-keysCreate API Key
http
POST /api/v1/users/me/api-keysjson
{
"name": "CI/CD Key",
"scopes": ["read", "deploy"],
"expires_at": "2025-12-31T23:59:59Z"
}Revoke API Key
http
DELETE /api/v1/users/me/api-keys/:id