Powered by Mintlify
Auto-generate your docs
Fetch details about the authenticated organization.
getUserDetails(): Promise<any>
GET https://api.pindo.io/orgs/self/
data
orgs
{ "data": { "orgs": [ { "name": "your-org-name" } ] } }
import { PindoSMS } from 'pindo-sms'; const pindo = new PindoSMS('your-api-token'); const result = await pindo.getUserDetails(); console.log(result.data.orgs);
try { const result = await pindo.getUserDetails(); } catch (err) { console.error('Failed to fetch user details:', err.message); }