Skip to main content
GET
This endpoint returns the current credit balance for the organization associated with the authenticated user. Credits are used for various enrichment operations within the platform.

Authentication

This endpoint requires authentication. The organization ID is automatically determined from the authenticated session.

Request

This endpoint does not require any request parameters. The organization is identified automatically from the authentication context.

Response

integer
required
The current credit balance for the organization. This is a non-negative integer representing the total available credits. Example: 1500
string
required
The unique identifier of the organization whose balance was retrieved. Example: org_2abc123def456

Credit Usage

Credits are consumed when performing enrichment operations:

Credit Sources

Credits can be added to an organization through several sources:

Error Codes

Notes

  • The balance is calculated as the sum of all credit transactions (additions minus consumptions) for the organization
  • Balance can be zero but never negative - the system prevents operations that would result in negative balance
  • New organizations receive a signup bonus upon first access