Credits
The credits left in your workspace.
GET
apiKeyheader
AuthorizationBearer <token>An API key from the dashboard: Authorization: Bearer sapi_….
The answer.
application/json- response
balance*integerCredits available to this API key's workspace.
Format
int64import { SocialAPI } from "@socialapihq/sdk";const client = new SocialAPI({ apiKey: process.env.SOCIALAPI_API_KEY });const answer = await client.account.getCredits();Example Response
{ "balance": 319668}