> Documentation index: https://docs.zernio.com/llms.txt. Every page is also Markdown: add .md to its URL.

# Get the signed-in user API Reference

Who authorized the access token (OpenID Connect userinfo claims). Only an OAuth access token is accepted: an API key answers 401. `email` and `email_verified` need the `email` scope; a claim with no value is left out. Also answers POST.


## GET /oauth/userinfo

**Get the signed-in user**

Who authorized the access token (OpenID Connect userinfo claims). Only an OAuth access token is accepted: an API key answers 401. `email` and `email_verified` need the `email` scope; a claim with no value is left out. Also answers POST.


### Responses

#### 200: The user.

**Response Body:**

- **sub** (required) `string`: Stable Zernio user id.
- **name** `string`: No description
- **picture** `string` (uri): No description
- **email** `string` (email): With the email scope.
- **email_verified** `boolean`: With the email scope.

#### 401: `invalid_token`: missing, expired or revoked token, or not an OAuth access token.

**Response Body:**

- **error** (required) `string`: invalid_request, invalid_client, invalid_grant, invalid_scope, invalid_target, unsupported_grant_type, invalid_client_metadata, invalid_redirect_uri, invalid_token, too_many_requests or server_error.
- **error_description** `string`: Human-readable detail.

---


# Related Schema Definitions

## OAuthError

Error body of the OAuth endpoints (RFC 6749 section 5.2).

### Properties

- **error** (required) `string`: invalid_request, invalid_client, invalid_grant, invalid_scope, invalid_target, unsupported_grant_type, invalid_client_metadata, invalid_redirect_uri, invalid_token, too_many_requests or server_error.
- **error_description** `string`: Human-readable detail.