Median

GET /me

Updated Oct 1, 20261 minute read

Who am I

The person behind an OAuth token, where the session is bound, and everywhere else it could be. Token-only: a key is an organization, not a person. org is null for a fresh account that has not created one yet.

Part of Account.

Responses

StatusDescription
200The person and their organizations.
400The request is malformed, and the message names the field.
401The bearer token is missing, revoked, or expired.
429Too many requests. Wait the seconds in Retry-After. Limits depend on the plan. See rate limits.

200 body

FieldTypeRequiredDescription
namestringNo
orgobject | nullNo
orgsobject[]No
orgs[].idstringNo
orgs[].namestringNo
orgs[].slugstringNo
orgs[].role"owner" | "admin" | "member"No

Example request

curl https://api.median.sh/v1/me \
  -H "Authorization: Bearer $BEARER_AUTH"

Still need help?

    Esc