Get current user

Get the authenticated user, including their available teams and theme.

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 scalar = new Scalar({
  bearerAuth: "<YOUR_BEARER_TOKEN_HERE>",
});

async function run() {
  const result = await scalar.authentication.getv1AuthMe();

  console.log(result);
}

run();
{
  "uid": "string",
  "createdAt": 0,
  "updatedAt": 0,
  "email": "hello@example.com",
  "theme": "string",
  "activeTeamId": "string",
  "hasGithub": false,
  "teams": [
    {
      "uid": "string",
      "name": "string",
      "imageUri": "string"
    }
  ]
}