The Relixir Developer API allows you to programmatically access and manage your CMS content. Use it to integrate Relixir with your existing workflows, build custom integrations, or automate content management.Documentation Index
Fetch the complete documentation index at: https://docs.relixir.ai/llms.txt
Use this file to discover all available pages before exploring further.
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.RequestExampleResponse
Get Item by Slug
Get Item by Slug
Get a content item by its slug. This is useful when you know the URL slug but not the item ID. Searches across all collections by default, or within a specific collection if Path Parameters
Query Parameters
ExampleResponse
collection_id is provided.Request| Parameter | Type | Description |
|---|---|---|
slug | string | The URL slug of the item |
| Parameter | Type | Description |
|---|---|---|
collection_id | UUID | Optional. Filter to a specific collection |
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 |
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 |
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.
