Skip to main content
PUT
Create or replace an agent's credit alert rule

Authorizations

Authorization
string
header
required

Authorization: Bearer <token> where <token> is either a neo_sk_<env>_<secret> API key (service account) or a Microsoft Entra ID access token (dashboard user).

Path Parameters

agent_id
string
required

Body

application/json

A daily credit alert rule for one agent.

disable_agent
boolean
required

Also turn the agent off when it goes over its cap.

enabled
boolean
required

Whether the rule is checked.

multiplier
number
required

The daily cap as a multiple of the agent's average day, above 1 and at most 100. 1.3 means 30% above the average. The average covers the agent's last 7 days with credits within the last 30 days.

recipients
string[]
required

Email addresses that receive the alert.

notify_admins
boolean
default:true

Also send the alert to the account's active owners and admins. True when left out. Turn it off only when recipients names at least one address.

Response

Success.

data
SavedCreditAlertRule · object
required
meta
object
required