Get current user
Get the authenticated user, including their available teams and theme.
OAuth scopes
- platform:read
Responses
- application/json
- application/json
- application/json
- application/json
- application/json
- application/json
- application/json
Request Example for get/v1/auth/me
import Scalar from '@scalar/sdk';
const client = new Scalar({
bearerAuth: process.env['BEARER_AUTH'], // defaults to the BEARER_AUTH env var
});
const user = await client.authentication.listCurrentUser();
console.log(user);
{
"uid": "UakgbKJ5m9gl0JDMbcJqL",
"createdAt": 1735689600,
"updatedAt": 1735689600,
"email": "alex@example.com",
"theme": "default",
"activeTeamId": "GakgbKJ5m9gl0JDMbcJqL",
"hasGithub": true,
"teams": [
{
"uid": "UakgbKJ5m9gl0JDMbcJqL",
"name": "Acme API",
"imageUri": "https://example.com/alex.png"
}
]
}