Skip to main content

Responses & Errors

All Portal API responses use Content-Type: application/json. This page describes the common response shapes, error format, and status codes.

Success responses​

CodeHTTP StatusDescription
200OKResource retrieved or list returned
201CreatedResource created; response body contains the new entity
204No ContentResource deleted; no response body

Single-resource example:

{
"id": "a1b2c3d4-...",
"name": "my-bucket",
"createdAt": "2025-06-15T10:30:00Z"
}

Error responses​

All errors return a JSON object with a single message field:

{
"message": "Human-readable error description"
}
CodeHTTP StatusDescription
400Bad RequestMalformed body, missing required field, or invalid parameter
401UnauthorizedX-Api-Key header is missing, or the token is invalid or expired
403ForbiddenToken lacks the endpoint's required permission (Missing permission <name>), tenant mismatch, disabled tenant, or required component not enabled
404Not FoundResource does not exist
409ConflictDuplicate name or constraint violation (e.g. bucket not empty on delete)
500Internal Server ErrorUnexpected server failure — retry after a short delay

Pagination​

List endpoints accept page and pageSize query parameters:

  • page — page number, starting at 1 (default: 1)
  • pageSize — items per page, max 100 (default: 20)
curl -s -H "X-Api-Key: atp_YOUR_TOKEN_HERE" \
"https://api-portal.aur.lu/api/v1/tenants/YOUR_TENANT_ID/buckets?page=2&pageSize=10"

Paginated responses wrap items with metadata:

{
"items": [
{ "name": "bucket-a", "..." : "..." },
{ "name": "bucket-b", "..." : "..." }
],
"totalCount": 42,
"page": 2,
"pageSize": 10
}