Base URL
Authentication
All API requests require authentication using an API key. Include your API key in theAuthorization header:
Creating an API Key
- Go to Settings → Developer API in your Relixir dashboard
- Click Create API key
- Give your key a descriptive name (e.g., “Production API Key”)
- Copy the key immediately - it will only be shown once
Interactive Documentation
Full interactive API documentation with request/response examples is available at:API Reference
Explore the full API with Swagger UI
Endpoints
Collections
List Collections
List Collections
Returns all internal (Relixir-owned) CMS collections for your organization.RequestQuery Parameters
ExampleResponse
| Parameter | Type | Default | Description |
|---|---|---|---|
limit | integer | 100 | Maximum number of collections (1-500) |
offset | integer | 0 | Number of collections to skip |
Get Collection
Get Collection
Get details of a specific collection by ID.RequestExample
Content Items
List Items
List Items
Returns content items with optional filters.RequestQuery Parameters
ExampleResponse
| Parameter | Type | Description |
|---|---|---|
collection_id | UUID | Filter by collection |
status | string | Filter by status: draft, published, archived |
limit | integer | Maximum items to return (1-500, default: 100) |
offset | integer | Number of items to skip |
Get Item
Get Item
Get a specific content item by ID.Request
Create Item
Create Item
Create a new content item in a collection.RequestRequest Body
ExampleResponse (201 Created)
| Field | Type | Required | Description |
|---|---|---|---|
collection_id | UUID | Yes | Collection to add the item to |
slug | string | Yes | URL slug (must be unique in collection) |
title | string | No | Item title |
body | string | No | Main content (HTML or Markdown) |
meta_description | string | No | SEO meta description |
thumbnail_url | string | No | Featured image URL |
extra_fields | object | No | Custom fields as key-value pairs |
publish_immediately | boolean | No | If true, publish after creation |
Update Item
Update Item
Update an existing content item.RequestRequest BodyAll fields are optional. Only include fields you want to update.
Example
| Field | Type | Description |
|---|---|---|
slug | string | URL slug |
title | string | Item title |
body | string | Main content |
meta_description | string | SEO description |
thumbnail_url | string | Featured image URL |
extra_fields | object | Custom fields |
Delete Item
Delete Item
Delete a content item and all its revisions.RequestExampleResponse: 204 No Content
Publish Item
Publish Item
Publish a content item, creating a new revision.RequestExampleResponse
Error Handling
The API uses standard HTTP status codes:| Status | Description |
|---|---|
200 | Success |
201 | Created |
204 | No Content (successful deletion) |
400 | Bad Request - Invalid parameters |
401 | Unauthorized - Invalid or missing API key |
403 | Forbidden - API key missing required scope |
404 | Not Found - Resource doesn’t exist |
409 | Conflict - e.g., duplicate slug |
500 | Server Error |
Rate Limits
- 1000 requests per minute per API key
- 100 requests per second burst limit
429 Too Many Requests response.
API Key Scopes
API keys have the following scopes by default:| Scope | Description |
|---|---|
collections:read | Read collection information |
items:read | Read content items |
items:write | Create, update, delete, and publish items |
Currently, all scopes are granted by default when creating an API key. Granular scope management will be available in a future update.
