Post Mate icon

Post Mate

Schedule posts, generate captions and manage social media across 13 networks

Actions19

Post → Approve

AI-generated

Summary

Approves a Post Mate post that is awaiting review (status pending_approval) by sending a POST request to the Post Mate API's approve endpoint for the given post ID.

Inputs

  • Post ID (required) — ID of the post to approve. It is inserted into the request path as /api/v1/posts/{postId}/approve. The post should be in pending_approval status, as the operation's label says.

Output shape

One output item per input item. Each item's json holds the Post Mate API's JSON response to the approve call, typically the updated post.

The node sends no request body and does not filter the response. The exact response fields aren't defined in the node source. If the API returns an error, such as an unknown ID or a post that is not pending approval, the node throws. With Continue On Fail enabled, it instead emits an item containing {error: message}. Approving may also trigger a post.approved webhook if one is registered. That event exists in the Webhook resource's event list, but this node's code doesn't confirm it fires.

Examples

Example 1: Approve a post after a reviewer clicks an approval link or sends a Slack response.

Resource: Post; Operation: Approve; Post ID: ={{ $json.postId }}

Example 2: Approve a specific post identified earlier in the workflow, such as one returned by Get Many with the Pending Approval status filter.

Resource: Post; Operation: Approve; Post ID: ={{ $json.id }}

Links

Discussion