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" }
Get information about the current authenticated user
Successfully retrieved user information
Organization ID for the authenticated user
"123e4567-e89b-12d3-a456-426614174000"
User ID for the authenticated user
"456e7890-e89b-12d3-a456-426614174001"
Was this page helpful?