Auth

Connect a Stored Reddit Session

Store your Reddit session server-side, encrypted (AES-256-GCM, a key held only by the API process), against your account. After this, any write (comment, submit, vote, DM, profile) that sends no cookies of its own acts as the stored session, so an agent never carries your cookies. The cookies are checked against Reddit before they are stored; a logged-out jar is refused. Free. Cost: Free per call.

post/api/reddit/session

Request

  • Base URL: https://api.redditapis.com
  • URL: https://api.redditapis.com/api/reddit/session
  • Auth: HTTP bearer

Request body

reddit_sessionstring required

The reddit_session cookie, from POST /api/reddit/login or your own browser

loidstring required

The loid cookie

csrf_tokenstring

The csrf_token cookie. Store it too if you will vote, DM or edit the profile with the stored session: those writes need it.

token_v2string

The token_v2 cookie, when your session has one

Response

Successful response.

object required

Changes

No recorded changes to this operation across all 1 revision of this API.