Endpoint
Authentication
This endpoint requires Bearer token authentication. Include your API key in the Authorization header:Path Parameters
The unique identifier of the organization. The API key must have access to this organization.Example:
org_123The unique identifier of the post to retrieve.Example:
post_123Query Parameters
Filter by status. The post will only be returned if it matches one of the specified statuses.Options:
draft | publishedDefault: ["published"] (only return if post is published)Examples:- Single value:
?status=published - Multiple values:
?status=draft&status=published
Filter by content type. The post will only be returned if it matches one of the specified content types.Options:
changelog | linkedin_postDefault: All content typesExamples:- Single value:
?contentType=changelog - Multiple values:
?contentType=changelog&contentType=linkedin_post
Response
The post object if found and matches the filter criteria, otherwise
null.Examples
Response Examples
200 Success - Post Found
200 Success - Post Not Found
- Not Found Scenarios
The
post field will be null in the following cases:- The post ID does not exist
- The post exists but belongs to a different organization
- The post exists but doesn’t match the status filter (e.g., requesting a draft post when
status=published) - The post exists but doesn’t match the content type filter
{ "post": null } rather than a 404 error in these cases.400 Bad Request
401 Unauthorized
403 Forbidden
503 Service Unavailable
Status Codes
| Code | Description |
|---|---|
| 200 | Request successful - check the post field to determine if a post was found |
| 400 | Invalid path params or query parameters |
| 401 | Missing or invalid API key |
| 403 | Forbidden - API key does not have access to the specified organization |
| 503 | Authentication service unavailable |
Notes
- This endpoint returns a 200 status code even when the post is not found. Check if
postisnullto determine if the post exists and matches your filters - The default behavior is to only return
publishedposts unless you explicitly specify thestatusquery parameter - To retrieve a post regardless of status, include both values:
?status=draft&status=published - The API key must belong to the organization specified in the path, otherwise a 403 error will be returned
- The post must exist within the specified organization and match all query filters to be returned