Skip to main content
GET
Get low-credit alert settings

Authorizations

Authorization
string
header
required

Recommended. Pass your API key as a Bearer token in the Authorization header: Authorization: Bearer YOUR_API_KEY.

Response

Current low-credit alert settings.

applicable
boolean

false when the scope has unlimited credits: alerts do not apply.

Example:

true

reason
enum<string>

Present when applicable is false.

Available options:
unlimited
scopeType
enum<string>

Credit scope of the API key.

Available options:
personal,
organization
Example:

"organization"

scopeId
string

Identifier of the credit scope the API key draws from.

Example:

"org_abc123"

enabled
boolean
Example:

true

threshold
integer
Example:

100

webhookUrl
string<uri>

Omitted when no URL is saved.

Example:

"https://client.example.com/webhooks/ochy-credits"

updatedAt
string<date-time>

When the settings were last saved (ISO 8601 UTC). Omitted when never saved.

Example:

"2026-10-05T10:45:00Z"