Pinter
ENID
Quotas & Usage
View as Markdown

Submit Budget / Token Quota Expansion Request

POST/api/governance/quotas/requests

Overview

Allows teams or users approaching their monthly quota threshold to request budget expansion from administrators.

Authentication & Headers

  • Auth: Bearer Token
  • Required Header: API-Version: 1

Parameters & Request Body Fields

  • additional_tokens (integer, required): Number of additional tokens requested.
  • reason (string, required): Business rationale for the quota expansion.

Request body

application/json

requested_amountnumberrequired
reasonstring | null
{
  "requested_amount": 0,
  "reason": "string"
}

Responses

201 Budget request ticket created

400 Bad Request - The request parameters or headers are invalid (e.g. unsupported API-Version).

401 Unauthorized - Missing, invalid, or expired JWT Bearer token.

403 Forbidden - Insufficient role permissions or resource access denied by RBAC policy.

404 Not Found - The requested resource ID was not found.

422 Validation Error

detailobject[]
detail[].locstring | integer[]required
detail[].msgstringrequired
detail[].typestringrequired
detail[].inputobject
detail[].ctxobject
{
  "detail": [
    {
      "loc": [
        null
      ],
      "msg": "string",
      "type": "string",
      "input": null,
      "ctx": {}
    }
  ]
}

Example

curl -X POST "$PINTER_URL/api/governance/quotas/requests" \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"requested_amount":0,"reason":"string"}'