Get the current account profile
Returns your identity in the organization authorized by your credential.
GET
Returns your identity in the organization authorized by your credential. The ID remains stable across reconnects and display-name changes. Removing and re-adding your membership creates a new ID.
apiKeyheader
x-api-key<token>Success
application/json- response
id*stringOpaque identity for your organization membership
name*stringYour display name
nickname*stringYour display name and organization name
import { createClient } from "samva";
const samva = createClient({ apiKey: process.env.SAMVA_API_KEY! });
const result = await samva.organizations.getProfile({});Example Response
{
"id": "string",
"name": "string",
"nickname": "string"
}