# Reddit - who does this OAuth app speak as? API

> Exchanges a Reddit OAuth2 refresh token and reads the account it belongs to over Reddit's documented API: username, suspension state, verified email, karma, account age and the token's scopes. Reads only -- it creates nothing. The access token and the supplied secrets are never returned or logged.

Category: [Social Media APIs](https://upapi.io/apis/social-media) · Last updated 2026-11-02

## How to call it

- Endpoint: `POST https://api.upapi.io/reddit-oauth-me.get`, key in the `X-Api-Key` header, JSON body.
- Cost: 4 weighted units per call.
- Timeout: 60 seconds.
- Cache: none; every call runs the operation.
- Try it without writing code: https://app.upapi.io/try/reddit-oauth-me.get

```bash
curl -X POST https://api.upapi.io/reddit-oauth-me.get \
  -H 'Content-Type: application/json' \
  -H 'x-api-key: YOUR_API_KEY' \
  -d '{ "clientId": "example", "userAgent": "example", "clientSecret": "example", "refreshToken": "example" }'
```

## Request parameters

- `clientId` (string, required) — Reddit app client id
- `proxyUrl` (string) — Optional exit IP. Omit for the worker's default egress -- the OAuth lane has no per-account IP requirement of its own.
- `userAgent` (string, required) — The User-Agent this request is made with, sent verbatim. REQUIRED and never defaulted: Reddit's API rules ask for a descriptive UA that names the app and its contact, and a shared default would put every caller of this worker behind one identity.
- `clientSecret` (string, required) — Reddit app client secret. Never logged.
- `refreshToken` (string, required) — OAuth2 refresh token for the account. Never logged, never returned.
- `expectedUsername` (string) — When given, the call FAILS unless Reddit reports this exact username. Use it whenever the credentials were looked up by account, so a mis-filed token is a loud refusal rather than a silent identity swap.

## Response fields

- `id` (string, required) — Reddit's own account id (the t2 id, without the prefix)
- `name` (string, required) — The Reddit username these credentials speak as
- `scopes` (array, required) — The OAuth scopes this token carries, sorted. A caller planning to comment should see 'submit' here; its absence is why an otherwise-valid token will be refused at the write.
- `created` (number, required) — Account creation time, epoch seconds UTC
- `elapsedMs` (integer, required)
- `fetchedAt` (string, required)
- `linkKarma` (integer, required)
- `isSuspended` (boolean, required)
- `commentKarma` (integer, required)
- `hasVerifiedEmail` (boolean, required)
- `tokenExpiresInSec` (integer, required) — Lifetime Reddit gave the access token that was minted for this call. Reported so a caller can reason about how long a token is good for; the token itself is never returned.

## Example request and response

The example response is generated from the published output schema: it shows the shape and field names, not values from a recorded call.

```json
{
  "clientId": "example",
  "userAgent": "example",
  "clientSecret": "example",
  "refreshToken": "example"
}
```

```json
{
  "id": "example",
  "name": "example",
  "scopes": [
    "example"
  ],
  "created": 1,
  "elapsedMs": 1,
  "fetchedAt": "example",
  "linkKarma": 1,
  "isSuspended": false,
  "commentKarma": 1,
  "hasVerifiedEmail": false,
  "tokenExpiresInSec": 1
}
```

## Frequently asked questions

### How much does the Reddit - who does this OAuth app speak as? API cost per call?

Each call spends 4 weighted units of your plan's monthly quota. Full pricing is at https://upapi.io/pricing.

### How do I authenticate to the Reddit - who does this OAuth app speak as? API?

Send your key in the X-Api-Key header. A free guest key is available without creating an account.

### Are Reddit - who does this OAuth app speak as? API responses cached?

No — every call runs the operation live; responses are not cached.

## More Social Media APIs

- [Reddit - post a comment as a registered app](https://upapi.io/apis/social-media/reddit-oauth-post-comment)
- [Check Reddit Account Health](https://upapi.io/apis/social-media/reddit-check-account-health)
- [Scrape Reddit Post & Comments](https://upapi.io/apis/social-media/reddit-scrape-post)
- [Search Reddit Posts](https://upapi.io/apis/social-media/reddit-search-posts)
- [Check Reddit Comment Visibility](https://upapi.io/apis/social-media/reddit-check-comment-visibility)
- [Get Subreddit Info](https://upapi.io/apis/social-media/reddit-subreddit-info)
- [Get Trending Reddit Posts](https://upapi.io/apis/social-media/reddit-get-trending)
- [Instagram Check Account](https://upapi.io/apis/social-media/instagram-check-account)
