// Replace API_KEY with your api key
curl --location 'https://api.supahub.com/api/v1/posts?limit=10&page=1' \
--header 'Authorization: Bearer API_KEY'
GET
method
/posts
path

Query Parameters

Below are the query parameters available for customizing the response:
id
string | undefined
Unique identifier for filtering specific post(s).
Search term for filtering posts.
boardId
string
Filter posts by the board they are associated with.
statusId
string | undefined
Filter posts based on their status.
postedById
string | undefined
Filter posts by the user who posted them.
sortBy
top | latest
default:"latest"
Sort posts by ‘top’ or ‘latest’.
limit
1-100
default:"10"
Number of posts retrieved per request.
page
1-n
default:"1"
Pagination sequence number.
// Replace API_KEY with your api key
curl --location 'https://api.supahub.com/api/v1/posts?limit=10&page=1' \
--header 'Authorization: Bearer API_KEY'