automate.ax/reddit:
automations/watch-reddit.automation.ts
identity so it can label the account, then adds the least Reddit scopes required by your deployed actions and triggers. Reddit issues one-hour access tokens and permanent refresh tokens.
Content and IDs
Reddit fullnames include a type prefix: posts uset3_, comments use t1_, private messages use t4_, and subreddits use t5_. Actions that accept postId, contentId, parentId, or message IDs require these fullnames. Normalized records also expose the provider’s short ID.
List actions return pageInfo.after. Pass it as the next action’s after input. Provider timestamps become JavaScript Date values.
Trigger polling
Reddit does not provide Data API webhooks. Automate.ax polls the required listing once per minute, creates an initial baseline, and emits only records first observed afterward. A trigger added to an already shared poll also starts from its own baseline, so it does not replay older records. New-post, new-comment, and broad subreddit triggers share one poll per Reddit account and subreddit. Inbox and moderation triggers use separate polls so a missing moderation permission cannot stall public subreddit events. Each poll reads up to 1,000 of the newest records in a demanded listing; events beyond that safety bound between polls can be missed.Safety and provider behavior
Automate.ax does not expose voting actions because Reddit prohibits automated vote and karma manipulation. Send private messages only after the recipient explicitly consents. Reddit validation errors are returned as action failures, polling and trigger setup honor provider retry delays, and unsafe submissions are not automatically replayed after ambiguous failures.Exports
redditcontains the packaged Reddit actions and triggers.redditAccount("name")selects a named Reddit connection.
Triggers
Actions
- Get profile
- Get subreddit
- List posts
- Search posts
- Get post
- List comments
- Create text post
- Create link post
- Create comment
- Edit content
- Delete content
- Save content
- Unsave content
- Report content
- Hide posts
- Unhide posts
- Subscribe to subreddit
- Unsubscribe from subreddit
- List inbox
- Mark messages read
- Mark messages unread
- Send private message
- Reply to message
- List mod queue
- Approve content
- Remove content
- Lock content
- Unlock content
- List post flairs
- Set post flair