A
ApostropheCMS REST API
Details
- URL
-
https://<your-apostrophe-site>/api/v1 - Spec
- https://raw.githubusercontent.com/apostrophecms/apostrophecms-openapi/main/apostrophecms-openapi.yaml
- Docs
- https://apostrophecms.com/docs/reference/api/rest-api-reference.html
Authentication
In your own ApostropheCMS project, configure an API key in modules/@apostrophecms/express/index.js under the apiKeys option. The docs show an example like apiKeys: { myTestKey: { role: 'admin' } }. See Authentication and API Explorer. This is project-defined rather than minted from a hosted developer console.
Use an existing ApostropheCMS user account in your own project and create a token by calling the login route POST /api/v1/@apostrophecms/login/login with username and password. The response includes a token that is then sent as Authorization: Bearer <token>. See Login module reference, Authentication, and the headless CMS guide.