pages
6 endpoints.
A page's content comes back as the block tree the editor stores. An integration that wants prose usually wants the ticket routes and the link between them instead.
get/api/pages#
curl https://api.shairelabs.com/api/pages \
-H "Authorization: Bearer $SHAIRE_TOKEN"idstring · uuid*workspaceIdstring · uuid*parentIdstring · uuid | null*titlestring*iconstring | null*coverobject | null*kindstring*uploadpresetvaluestring*urlstring | null*pathstring*positionstring*createdAtstring*updatedAtstring*post/api/pages#
titlestring*parentIdstring · uuid | nullcontentobject | nulltypestring*doccontentunknown[]afterIdstring · uuid | nullcurl https://api.shairelabs.com/api/pages \
-X POST \
-H "Authorization: Bearer $SHAIRE_TOKEN" \
-H "Content-Type: application/json" \
-d '{"title":"example"}'idstring · uuid*workspaceIdstring · uuid*parentIdstring · uuid | null*titlestring*iconstring | null*coverobject | null*kindstring*uploadpresetvaluestring*urlstring | null*pathstring*positionstring*createdAtstring*updatedAtstring*contentobject | null*typestring*doccontentunknown[]delete/api/pages/{id}#
idstring*curl https://api.shairelabs.com/api/pages/$PAGE_ID \
-X DELETE \
-H "Authorization: Bearer $SHAIRE_TOKEN"post/api/pages/{id}/move#
idstring*parentIdstring · uuid | null*afterIdstring · uuid | nullcurl https://api.shairelabs.com/api/pages/$PAGE_ID/move \
-X POST \
-H "Authorization: Bearer $SHAIRE_TOKEN" \
-H "Content-Type: application/json" \
-d '{"parentId":"00000000-0000-0000-0000-000000000000"}'idstring · uuid*workspaceIdstring · uuid*parentIdstring · uuid | null*titlestring*iconstring | null*coverobject | null*kindstring*uploadpresetvaluestring*urlstring | null*pathstring*positionstring*createdAtstring*updatedAtstring*contentobject | null*typestring*doccontentunknown[]get/api/pages/{pageId}/versions#
pageIdstring*curl https://api.shairelabs.com/api/pages/$PAGE_PAGEID/versions \
-H "Authorization: Bearer $SHAIRE_TOKEN"idstring · uuid*pageIdstring · uuid*titlestring*capturedAtstring*authorobject | null*idstring · uuid*namestring*post/api/pages/{pageId}/versions/{versionId}/restore#
pageIdstring*versionIdstring*curl https://api.shairelabs.com/api/pages/$PAGE_PAGEID/versions/$VERSION_VERSIONID/restore \
-X POST \
-H "Authorization: Bearer $SHAIRE_TOKEN"idstring · uuid*workspaceIdstring · uuid*parentIdstring · uuid | null*titlestring*iconstring | null*coverobject | null*kindstring*uploadpresetvaluestring*urlstring | null*pathstring*positionstring*createdAtstring*updatedAtstring*contentobject | null*typestring*doccontentunknown[]