Skip to content

CMS API

Manage categories, tags, post-tag assignments, and post revisions for Astro publishing environments.

Prefix: /api/cms

Endpoints

Categories

MethodPathDescriptionRole
GET/categoriesList categories for the current environmentEditor+
GET/categories/{id}Get category detailsEditor+
POST/categoriesCreate a new categoryEditor+
PUT/categories/{id}Update a categoryEditor+
DELETE/categories/{id}Delete a categoryEditor+

Tags

MethodPathDescriptionRole
GET/tagsList tags for the current environmentEditor+
GET/tags/{id}Get tag detailsEditor+
POST/tagsCreate a new tagEditor+
PUT/tags/{id}Update a tagEditor+
DELETE/tags/{id}Delete a tagEditor+

Post-Tag Assignments

MethodPathDescriptionRole
GET/posts/{id}/tagsList tags assigned to a postEditor+
POST/posts/{id}/tagsAssign tags to a postEditor+
DELETE/posts/{id}/tags/{tag_id}Remove a tag from a postEditor+

Post Revisions

MethodPathDescriptionRole
GET/posts/{id}/revisionsList revisions for a postEditor+
GET/revisions/{id}Get revision detailsEditor+

UniSync Documentation