Create Usage Limits Policy
Create a new usage limits policy to control total usage (cost or tokens) over a period.
POST
Documentation Index
Fetch the complete documentation index at: https://portkey-docs-migration-04-ai-tools.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Authorizations
Body
application/json
Array of conditions that define which requests the policy applies to
Minimum array length:
1Array of group by fields that define how usage is aggregated
Minimum array length:
1Policy type
Available options:
cost, tokens Maximum usage allowed
Required range:
x >= 0Policy name
Maximum string length:
255Example:
"Monthly Cost Limit"
Threshold at which to send alerts. Must be less than credit_limit.
Required range:
x >= 0Reset period. If not provided, limit is cumulative.
Available options:
monthly, weekly Workspace ID or slug. Required if not using API key authentication.
Organization ID. Required if not using API key authentication.

