User-related API environment
Production user-related API docs
These pages describe the Production user-related API stack.
Use production OAuth credentials, production API base URLs, and production app URLs when following this documentation.
Need to test before going live? Switch to the Pre-live docs using the environment switcher above.
Get post liked state
Returns whether the authenticated user currently likes the post. This lightweight endpoint avoids loading the full post payload for simple like-state checks.
Path Parameters
id number required
Unique numeric post ID to check liked state for
Responses
- 200
- 401
- 404
Like state retrieved successfully
application/json
Schema
Example (from schema)
Example
Schema
liked boolean
true when the post is liked by the current user
{
"liked": true
}
{
"liked": true
}
User not authenticated
Post not found
Loading...