Skip to main content
GET
/
whoami
JavaScript
import CompaniesSocial from '@alloy.rest/companies.social';

const client = new CompaniesSocial({
  apiKey: process.env['COMPANIES_SOCIAL_API_KEY'], // This is the default and can be omitted
});

const whoami = await client.whoami.retrieve();

console.log(whoami.id);
{
  "id": "<string>",
  "email": "<string>",
  "name": "<string>",
  "plan": "<string>",
  "createdAt": "<string>"
}

Authorizations

x-api-key
string
header
required

API key for authentication

Response

Current authenticated user

id
string
required
email
string
required
name
string
required
plan
string
required
createdAt
string
required