> ## 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.

# Organization

> View organization settings and credit usage

## Get Organization Credits

Retrieve credit usage information for your organization. Returns remaining credits across different categories.

**Permission:** `org_settings:read`

<RequestExample>
  ```bash cURL theme={null}
  curl -X GET "https://api.getpg.ai/public-api/v1/organization/credits" \
    -H "x-api-key: your_api_key"
  ```
</RequestExample>

<ResponseExample>
  ```json 200 theme={null}
  {
    "organization_id": "org_8b0ad...",
    "credit_remaining": {
      "enrichment": 500,
      "ai_generation": 1200,
      "contact_discovery": 300
    }
  }
  ```
</ResponseExample>

<ResponseExample>
  ```json 403 theme={null}
  {
    "error": {
      "type": "authorization_error",
      "code": "forbidden",
      "message": "You do not have permission to access this resource. Required scope: org_settings:read"
    }
  }
  ```
</ResponseExample>
