Skip to main content

Overview

The Skayle API provides programmatic access to your content. Use it to:
  • Fetch posts, categories, tags, and authors
  • Build custom frontends
  • Integrate with other services
  • Automate content workflows

Base URL

https://api.skayle.ai/v1

Response Format

All responses follow JSON:API specification:
{
  "data": { ... },
  "meta": { ... },
  "links": { ... }
}

HTTP Status Codes

CodeDescription
200Success
201Created
400Bad Request
401Unauthorized
403Forbidden
404Not Found
429Rate Limited
500Server Error

Error Responses

Errors follow JSON:API error format:
{
  "errors": [
    {
      "status": "401",
      "title": "Unauthorized",
      "detail": "Invalid or missing API key"
    }
  ]
}

Pagination

List endpoints support pagination:
GET /posts?page=2&perPage=20
Pagination info is in the meta and links objects:
{
  "meta": {
    "total": 100,
    "page": 2,
    "perPage": 20,
    "totalPages": 5
  },
  "links": {
    "self": "/posts?page=2",
    "first": "/posts?page=1",
    "prev": "/posts?page=1",
    "next": "/posts?page=3",
    "last": "/posts?page=5"
  }
}
Use the include parameter to fetch related resources:
GET /posts?include=author,categories,tags
Related resources appear in the included array.

Sparse Fieldsets

Request only specific fields:
GET /posts?fields[post]=title,slug,excerpt

Next Steps