Read a tag
Read one tag: the pages carrying it, and the display metadata set for it.
GET https://sitepaste.com/api/v1/public/sites/{siteId}/tags/{slug}
Requires the content scope.
Usage
curl "https://sitepaste.com/api/v1/public/sites/default/tags/guide" \
-H "Authorization: Bearer $TOKEN"
Authorizations
| Header | Type | Required | Description |
|---|---|---|---|
| Authorization | string | Yes | Bearer token (Authorization: Bearer sp_...). Created in the dashboard under Account > Tokens. See authentication. |
Response
200 OK with the same record the collection lists and PATCH answers with.
{
"slug": "guide",
"title": "Guides",
"description": "How-to articles",
"pageCount": 12
}
A tag exists while a page carries it or while it has a title or description, so a tag with neither is a 404. Setting a title or description with PATCH brings such a tag into being.