Skip to main content
GET
/
tags
Tags
curl --request GET \
  --url https://api.example.com/tags

List Tags

GET /tags

Query Parameters

ParameterTypeDefaultDescription
pageinteger1Page number
perPageinteger50Items per page
sortstringnameSort field

Example Request

curl -X GET "https://api.skayle.ai/v1/tags" \
  -H "Authorization: Bearer YOUR_API_KEY"

Example Response

{
  "data": [
    {
      "id": "tag_abc123",
      "type": "tag",
      "attributes": {
        "name": "JavaScript",
        "slug": "javascript",
        "postCount": 23
      }
    },
    {
      "id": "tag_def456",
      "type": "tag",
      "attributes": {
        "name": "React",
        "slug": "react",
        "postCount": 18
      }
    }
  ],
  "meta": {
    "total": 45
  }
}

Get Tag

GET /tags/{id}

Get Posts by Tag

GET /tags/{id}/posts
GET /tags/slug/{slug}/posts
Returns paginated posts with the specified tag.

Example Request

curl -X GET "https://api.skayle.ai/v1/tags/slug/javascript/posts?perPage=10" \
  -H "Authorization: Bearer YOUR_API_KEY"