Overview
Programmatically manage your Makeswift sites, pages, locales, and routes.
betaThe Makeswift REST API allows you to programmatically manage your Makeswift resources. Use it to automate workflows, integrate with external systems, or build custom tooling.
Base URL
All API requests should be made to:
Authentication
Authenticate requests by including an App API key in the x-api-key header:
See the Authentication guide to learn how to create an app and get your API key.
Resources
Response format
All responses return JSON. Successful responses include an object field indicating the resource type:
List endpoints return paginated results:
Pagination
List endpoints support cursor-based pagination using the following query parameters:
To paginate through results:
- Make an initial request without the
startingAfterparameter - If
hasMoreistrue, use theidof the last item indataas thestartingAfterparameter for the next request - Repeat until
hasMoreisfalse
Rate Limits
The API implements rate limiting per authentication credential (API key or Bearer token) to ensure fair usage and protect service stability. Rate limits may be adjusted over time.
Errors
The API uses standard HTTP status codes and returns consistent error responses:
400 Bad Request
Returned when the request body or query parameters are invalid.
401 Unauthorized
Returned when the API key is missing or invalid.
403 Forbidden
Returned when the API key is valid but lacks permission to access the resource.
404 Not Found
Returned when the requested resource doesn’t exist.
409 Conflict
Returned when attempting to create a resource that already exists.
429 Too Many Requests
Returned when the rate limit is exceeded.