Content Type
- Success:
Content-Type: application/json - Errors:
Content-Type: application/json(same as success; distinguish by HTTP status code)
Success Responses
List Endpoints (Collections)
These list endpoints use this shape: List workspaces, List products, List items, List properties.| Field | Type | Description |
|---|---|---|
items | array | Array of resource objects for the current page |
count | integer | Number of items in this response (page size) |
count is the length of items, not the total number of resources. Use pagination parameters to request more pages.
Single Resource Endpoints
Endpoints that return one resource (e.g. get workspace by ID, get product by ID) return the resource object directly:Common Resource Fields
Many resources include:id: UUID, stable unique identifier; use this for API calls.readable_id: Human-readable identifier (e.g.ws-001,prod-abc); is changeable inside Poelis.
Error Responses
When the request fails, the API returns a JSON error body and a non-2xx status code. Structure:| Field | Type | Description |
|---|---|---|
error | string | Machine-readable code (e.g. validation_error) |
message | string | Error message |
details | object | Optional; extra context (e.g. field, retry_after) |
details may be omitted for some errors. Always check the HTTP status code and error for handling logic. See Status Codes and Error Handling for all codes and examples.
Response Headers
X-Request-ID: Unique ID for the request. Include it when contacting support about an error.Retry-After: Present on429 Too Many Requests; seconds to wait before retrying (e.g."60").X-RateLimit-Limit,X-RateLimit-Remaining,X-RateLimit-Reset: Present on all responses; on 429,X-RateLimit-Remainingis"0"andX-RateLimit-Resetis the Unix timestamp (seconds) when the window resets.