Welcome to the API documentation. This API allows you to interact with your posts.
For any questions, pls reach out: [email protected]
All endpoints require the following headers:
| Header | Description |
|---|---|
Authorization |
Bearer <API_TOKEN> |
Retrieve a paginated list of posts.
| Method | Endpoint | Query Parameters | Description |
|---|---|---|---|
| GET | /posts |
page (optional, default: 1) |
Page number for pagination. |
limit (optional, default: 10) |
Number of posts per page. |
GET <https://api.guifordb.com/posts?page=1&limit=10>
Authorization: Bearer your_api_token
async function getAllPosts() {
const response = await fetch("<https://api.guifordb.com/posts?page=1&limit=10>", {
headers: {
Authorization: `Bearer YOUR_API_TOKEN`,
}
});
}