QRdx
HelpGuidesDevelopersReact librarySelf-hosting

Get the token's user

The id, name, email and avatar of the user who authorized the token.

Tokens only: a browser session gets 401.

GET
/me

Authorization

oauth2 profile:read
headerAuthorizationBearer <token>

An OAuth 2.0 access token, sent as Authorization: Bearer <token>. Register an app in Settings → Developers, send the user through authorization (PKCE S256), then exchange the code for a token. Access tokens last 1 hour; refresh tokens 30 days. Step by step.

Scope: profile:read

Response Body

The user

application/json
  1. response
data*
Example Request
curl -X GET 'https://api.qrdx.dev/v1/me'
Example Response
{  "data": {    "id": "user_8f3k2m1n0p9q",    "name": "Ada Lovelace",    "email": "ada@example.com",    "image": null  }}

Last updated on