Base URL
All API access is over HTTPS and is accessed from theapi.marblecms.com domain. All data is sent and received as JSON.
:resource is the specific resource you want to interact with (e.g., posts, categories, tags, authors).
Authentication
Marble authenticates API requests using API keys. You can create and manage API keys from your workspace dashboard under Settings > API Keys. Include your API key in theAuthorization header of every request:
Response Format
All responses are returned as JSON. Successful responses include the requested data, while errors include anerror field with details.
All timestamps are in UTC ISO 8601 format:
YYYY-MM-DDTHH:MM:SSZError Handling
The API uses conventional HTTP response codes to indicate the success or failure of a request:| Code | Description |
|---|---|
200 | Success |
400 | Bad Request - Invalid parameters |
401 | Unauthorized - Invalid or missing API key |
404 | Not Found - Resource doesn’t exist |
429 | Too Many Requests - Rate limit exceeded |
500 | Internal Server Error |