Retrieve authors and posts by author
cURL
curl --request GET \ --url https://api.example.com/authors
GET /authors
page
perPage
sort
name
curl -X GET "https://api.skayle.ai/v1/authors" \ -H "Authorization: Bearer YOUR_API_KEY"
{ "data": [ { "id": "author_abc123", "type": "author", "attributes": { "name": "John Doe", "slug": "john-doe", "bio": "Technical writer and developer advocate", "avatar": "https://cdn.skayle.io/avatars/john.jpg", "postCount": 12 } }, { "id": "author_def456", "type": "author", "attributes": { "name": "Jane Smith", "slug": "jane-smith", "bio": "Senior content strategist", "avatar": "https://cdn.skayle.io/avatars/jane.jpg", "postCount": 8 } } ], "meta": { "total": 5 } }
GET /authors/{id} GET /authors/slug/{slug}
{ "data": { "id": "author_abc123", "type": "author", "attributes": { "name": "John Doe", "slug": "john-doe", "bio": "Technical writer and developer advocate", "avatar": "https://cdn.skayle.io/avatars/john.jpg", "email": "john@example.com", "social": { "twitter": "johndoe", "linkedin": "johndoe" }, "postCount": 12 } } }
GET /authors/{id}/posts GET /authors/slug/{slug}/posts
curl -X GET "https://api.skayle.ai/v1/authors/slug/john-doe/posts?perPage=10" \ -H "Authorization: Bearer YOUR_API_KEY"