Reddit

Communication Script app credentials

Read and post to Reddit from any Windmill script, flow or app.

Set up in 3 steps

1

Create a script app

At reddit.com/prefs/apps, create an app of type script. Note its client id — the string under the app name — and its secret.

2

Add the resource in Windmill

Open Resources, add a resource of type reddit, and fill clientId, clientSecret, and the username and password of the account the scripts should act as. Set userAgent to something identifying, as Reddit requires.

3

Run your first script

Fork any script below and read a subreddit before posting anything.

Scripts

Building blocks, if none of the projects above fit. Fork one, run it, or call it as a step inside your own flow.

Flows

Multi-step workflows that already wire Reddit to something else.

All flows →

Resource type

reddit — the shape of the credential every script on this page expects.

View raw schema →
FieldTypeRequiredWhat it is
clientIdstringYesThe client ID for the Reddit app
clientSecretstringYesThe client secret for the Reddit app
passwordstringYesThe password for the Reddit account.
userAgentstringNoThe user agent to use for the Reddit API requests.
usernamestringYesThe username for the Reddit account.

Questions

Why does it need my account password?

A script app authenticates with the password grant, exchanging these four fields for a short-lived token on every run. It only works for the one account that owns the app.

My calls are rejected or rate-limited hard

Reddit blocks generic user agents. Set userAgent to something that identifies your app and account, in the form platform:appname:version (by /u/username).

Does two-factor authentication work?

Not with the password grant. Use an account without it for automation.

Are my credentials stored on the hub?

Never. They live only in your own Windmill workspace, encrypted at rest.