Tags
List tags
Get a paginated list of tags with post counts
Path Parameters
workspaceId*string
Workspace identifier
Query Parameters
limit?string
Number of tags per page
Default
"10"page?string
Page number for pagination
Default
"1"include?string
Related resources to include (e.g., posts)
Response Body
application/json
application/json
application/json
curl -X GET "https://api.astracms.dev/v1/my-workspace/tags"{
"tags": [
{
"id": "clx3y5a7c9e1g3i5k7m9o",
"name": "JavaScript",
"slug": "javascript",
"description": "JavaScript programming",
"count": {
"posts": 42
}
}
],
"pagination": {
"limit": 10,
"currentPage": 1,
"nextPage": 2,
"previousPage": null,
"totalPages": 5,
"totalItems": 48
}
}{
"error": "string",
"details": null,
"message": "string"
}{
"error": "string",
"details": null,
"message": "string"
}Last updated on