Skip to main content
GET
/
v1beta
/
me
TypeScript
import { Factify } from "@factify/sdk";

const factify = new Factify({
  bearerAuth: "<YOUR_BEARER_TOKEN_HERE>",
});

async function run() {
  const result = await factify.users.getMe();

  console.log(result);
}

run();
{
  "user": {
    "email": "jsmith@example.com",
    "id": "user_01h2xcejqtf2nbrexx3vqjhp41",
    "name": "<string>",
    "family_name": "<string>",
    "given_name": "<string>",
    "profile_image_url": "<string>"
  },
  "organizations": [
    {
      "created_at": "2023-11-07T05:31:56Z",
      "id": "org_01h2xcejqtf2nbrexx3vqjhp41",
      "name": "Acme Corporation",
      "logo_image_url": "<string>"
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer , where is your auth token.

Response

Success

GetMeResponse contains the authenticated user's profile.

user
user · object
required

The authenticated user.

organizations
Organization · object[]

Organizations the user is a member of.