Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.getpg.ai/llms.txt

Use this file to discover all available pages before exploring further.

Get Organization Credits

Retrieve credit usage information for your organization. Returns remaining credits across different categories. Permission: org_settings:read
curl -X GET "https://api.getpg.ai/public-api/v1/organization/credits" \
  -H "x-api-key: your_api_key"
{
  "organization_id": "org_8b0ad...",
  "credit_remaining": {
    "enrichment": 500,
    "ai_generation": 1200,
    "contact_discovery": 300
  }
}
{
  "error": {
    "type": "authorization_error",
    "code": "forbidden",
    "message": "You do not have permission to access this resource. Required scope: org_settings:read"
  }
}