---
title: "Read OpenID Connect userinfo"
method: GET
path: "/api/oauth/userinfo"
tags: ["OAuth"]
---

# Read OpenID Connect userinfo

`GET /api/oauth/userinfo`

## Request

- Base URL: `https://git.cafe`
- URL: `https://git.cafe/api/oauth/userinfo`
- Auth: none required

Returns the signed-in person's claims that the connection's OpenID Connect consent shares (`sub`, and the `profile` and `email` claims when approved), for any live access token the connection issued. Returns 404 while ID tokens are not configured.

## Response `200`

Response for status 200

- object
  - `sub` string, required
  - `preferred_username` string
  - `name` string
  - `picture` string, uri
  - `profile` string, uri
  - `email` string
  - `email_verified` boolean

## Other responses

- `401`: Response for status 401
- `429`: A rate limit is exhausted. Wait Retry-After seconds; the value is a hint, so back off on a repeat 429.

---

[API](https://skmtc.dev/gitcafe/apis/git-cafe-api.md) - [All operations](https://skmtc.dev/gitcafe/apis/git-cafe-api/llms.txt) - [OpenAPI document](https://skmtc.dev/gitcafe/apis/git-cafe-api/revisions/9fa233d2986d?raw)
