curl --request GET \
--url https://partner-api.ochy-prod.com/settings/low-credit-alerts \
--header 'Authorization: Bearer <token>'import requests
url = "https://partner-api.ochy-prod.com/settings/low-credit-alerts"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://partner-api.ochy-prod.com/settings/low-credit-alerts', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"applicable": true,
"scopeType": "organization",
"scopeId": "org_abc123",
"enabled": true,
"threshold": 100,
"webhookUrl": "https://client.example.com/webhooks/ochy-credits",
"updatedAt": "2026-10-05T10:45:00Z"
}Get low-credit alert settings
Returns the low-credit alert configuration for the credit scope of your API key
(personal or organization). When the scope has unlimited credits, alerts do not apply:
the response has applicable: false and reason: unlimited.
See low-credit alerts for how alerts are delivered.
curl --request GET \
--url https://partner-api.ochy-prod.com/settings/low-credit-alerts \
--header 'Authorization: Bearer <token>'import requests
url = "https://partner-api.ochy-prod.com/settings/low-credit-alerts"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://partner-api.ochy-prod.com/settings/low-credit-alerts', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"applicable": true,
"scopeType": "organization",
"scopeId": "org_abc123",
"enabled": true,
"threshold": 100,
"webhookUrl": "https://client.example.com/webhooks/ochy-credits",
"updatedAt": "2026-10-05T10:45:00Z"
}Authorizations
Recommended. Pass your API key as a Bearer token in the Authorization header: Authorization: Bearer YOUR_API_KEY.
Response
Current low-credit alert settings.
false when the scope has unlimited credits: alerts do not apply.
true
Present when applicable is false.
unlimited Credit scope of the API key.
personal, organization "organization"
Identifier of the credit scope the API key draws from.
"org_abc123"
true
100
Omitted when no URL is saved.
"https://client.example.com/webhooks/ochy-credits"
When the settings were last saved (ISO 8601 UTC). Omitted when never saved.
"2026-10-05T10:45:00Z"