Docs
Reddit

Overview

Connect Reddit accounts, scopes, subreddits, flairs, and post capabilities.

Onepostly maps Reddit into the same /v1/* surface as other platforms. This section covers Reddit-only behavior.

In this section

PageTopics
PostsText, link, image, gallery, video; title / subreddit / flair; schedule; remote delete
InsightsScore, upvote ratio, comment count

Cross-platform API flow: Media, Webhooks.

Connect

  1. Dashboard → Connections → connect Reddit
  2. Approve scopes in the Reddit consent screen
  3. Resolve connectionId with your API key:
curl https://api.onepostly.com/v1/connections \
  -H "x-api-key: op_YOUR_KEY"

Use the matching row’s id (where platform is "reddit") as connectionId.

After OAuth, connection metadata includes:

FieldMeaning
usernameReddit username

Subreddits API

Every post targets a community. List communities the connected account is subscribed to:

curl https://api.onepostly.com/v1/connections/CONNECTION_ID/reddit/subreddits \
  -H "x-api-key: op_YOUR_KEY"
{
  "connectionId": "…",
  "platform": "reddit",
  "subreddits": [
    {
      "name": "test",
      "title": "testing",
      "subscribers": 12345,
      "nsfw": false,
      "iconUrl": null
    }
  ],
  "fetchedAt": "…"
}

Flairs API

Many communities require link flair. List templates:

curl https://api.onepostly.com/v1/connections/CONNECTION_ID/reddit/subreddits/test/flairs \
  -H "x-api-key: op_YOUR_KEY"
{
  "connectionId": "…",
  "platform": "reddit",
  "subreddit": "test",
  "flairs": [{ "id": "…", "text": "Discussion", "textEditable": false }],
  "fetchedAt": "…"
}

Pass the chosen id as destinations[].flairId when creating a post.

OAuth scopes

ScopeUsed for
identityProfile
submitCreate posts
readComments / listings / insights
mysubredditsSubscribed communities
editDelete own posts / comments
historyHistory access
voteUpvote / clear vote (like)
saveSave / unsave (bookmark)
flairAssign link flair

OAuth 2.0 authorization code. Connected accounts stay usable while refresh tokens remain valid.

Register redirect URI:

{API}/v1/connections/oauth/reddit/callback

Capabilities

ActionSupportedNotes
Create postYesPOST /v1/posts
Text-only (self)YesmediaKind: "text" without link
LinkYesmediaKind: "text" + destinations[].link
ImageYes
Multi-imageYesGallery, 2–20 images
VideoYesRequires destinations[].thumbnailUrl poster
Stories / thread / quoteNo
ScheduleYesscheduledFor + timezone
Remote deleteYesDELETE …/destinations/:id
CommentsYesList / create / delete
Like / unlikeYesMaps to upvote / clear vote
BookmarkYesSave / unsave
InsightsYesScore, comment count, upvote ratio (no impressions/reach)

Known limitations

  • destinations[].title and destinations[].subreddit are required
  • Subreddit rules (karma, age, flair) are enforced by Reddit — failed submits surface as publish errors
  • Video posts need a separate poster image URL (thumbnailUrl)
  • Reddit API access may require Reddit’s commercial / Data Access approval

See also