> ## Documentation Index
> Fetch the complete documentation index at: https://studio.chat-atp.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# OAuth userinfo

> Retrieve the authorized ChatATP Studio user's identity claims

Returns identity claims for the user who granted the OAuth consent. The access token must include the `users:read` scope.

```bash cURL theme={null}
curl https://chatatp-agent-builder-backend.onrender.com/oauth/userinfo/ \
  -H "Authorization: Bearer $CHATATP_ACCESS_TOKEN"
```

```json theme={null}
{
  "sub": "42",
  "id": 42,
  "email": "person@example.com",
  "email_verified": true,
  "name": "Person Example",
  "given_name": "Person",
  "family_name": "Example",
  "picture": "https://cdn.example.com/avatar.png"
}
```

Use `sub` as the stable external identity key. Email addresses can change and should not be used as the primary identifier.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.