RedRover Logo

Posts

Approve a Post

Approves a post our team wrote and sent for your review. Approved content goes onto the schedule.

POST/posts/{id}/approve
Scope: posts:writeAI Connector Tool: redrover_approve_post

Headers

  • AuthorizationstringRequired

    Bearer followed by an rr_live_ API key or a connected app's access token. See Authentication.

  • X-Workspace-IdstringRequired

    The workspace to act on, from List Workspaces.

    UUID

Path Parameters

  • idstringRequired

    The post ID from List Posts. Content waiting for approval has a UUID; scheduled content has a number.

Response

200 The post.

  • dataobjectRequired
    Show 15 Child Fields
    • idstringRequired

      Content ID. Content waiting for your approval has a UUID; scheduled content has a number

    • typestringRequired

      post or comment

      one of post, comment

    • statusstringRequired

      Where it stands

      one of draft, pending_approval, approved, scheduled, posted, failed, cancelled

    • titlestringRequired

      Post title. Null for comments

      nullable

    • bodystringRequired

      The text

      nullable

    • subredditstringRequired

      Subreddit, without r/

      nullable

    • flairstringRequired

      Post flair. Posts only

      nullable

    • threadUrlstringRequired

      Comments only: the thread the comment replies in

      nullable

    • scheduledForstringRequired

      When it is due to go live

      nullable

    • postedAtstringRequired

      When it went live

      nullable

    • urlstringRequired

      The live link once posted

      nullable

    • upvotesnumberRequired

      Upvotes once posted

      nullable

    • commentCountnumberRequired

      Replies once posted

      nullable

    • failureReasonstringRequired

      Why it failed or was removed, when it did

      nullable

    • canChangebooleanRequired

      Whether you can still edit, reschedule or cancel it

Errors

Every error uses the error envelope.

  • 404No post with this ID in the workspace
  • 409The post is not waiting for approval, or is already approved
  • 401The Authorization header is missing, or the key is invalid or revoked
  • 403The key lacks the endpoint's scope, or cannot reach the workspace
  • 429More than 120 requests in a minute. Wait for Retry-After seconds
  • 500Something went wrong on our side
curl -X POST "https://app.tryredrover.com/api/public/v1/posts/3c9a1f2e-7b4d-4e8a-9f61-2d5c8b7a0e14/approve" \
  -H "Authorization: Bearer $REDROVER_API_KEY" \
  -H "X-Workspace-Id: $REDROVER_WORKSPACE_ID"
200 Response
{
  "data": {
    "id": "3c9a1f2e-7b4d-4e8a-9f61-2d5c8b7a0e14",
    "type": "post",
    "status": "approved",
    "title": "What we learned shipping a weekly changelog for a year",
    "body": "We started writing a public changelog every Friday. Here is what changed for us...",
    "subreddit": "startups",
    "flair": "Lessons Learned",
    "threadUrl": null,
    "scheduledFor": null,
    "postedAt": null,
    "url": null,
    "upvotes": null,
    "commentCount": null,
    "failureReason": null,
    "canChange": true
  }
}