API reference / posts
List posts
GET
/v1/postsPermission posts:readReturns paginated list of posts in the workspace, with optional status and channel filtering.
Headers
AuthorizationstringREQUIREDBearer followed by your API key.
Foxli-WorkspacestringTarget workspace ID. Required if account owns or admins more than one workspace.
Query parameters
workspace_idstringAlternative way to pass workspace ID.
statusstringchannel_idstringfromstringtostringtagstringlimitintegerMax number of items to return (max 50, default 20).
cursorstringPagination cursor string from previous response.
Errors
400
workspace_requiredInvalid request parameters or missing workspace context.401
invalid_api_keyMissing, invalid, or revoked API key.curl https://api.foxli.app/v1/posts \ -H "Authorization: Bearer $FOXLI_API_KEY" \ -H "Foxli-Workspace: ws_brand_primary"
Response200 OK
{
"success": true
}