GET
/
me
JavaScript
import Tembo from '@tembo-io/sdk';

const client = new Tembo({
  apiKey: 'My API Key',
});

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

console.log(me.orgId);
{
  "orgId": "123e4567-e89b-12d3-a456-426614174000",
  "userId": "456e7890-e89b-12d3-a456-426614174001"
}

Response

200 - application/json

Successfully retrieved user information

orgId
string<uuid> | null
required

Organization ID for the authenticated user

Example:

"123e4567-e89b-12d3-a456-426614174000"

userId
string<uuid> | null
required

User ID for the authenticated user

Example:

"456e7890-e89b-12d3-a456-426614174001"