pub.techne.draft.commons.grantProviderAllowance
Grant an allowance of paid provider (Jev, or Claude for venue research and the short line) calls beyond a daily cap, for an intentional batch (a backfill), valid until `expiresAt`, with a required reason. Recorded on the rules runner under the caller's DID: only an operator's DID may grant, never the shared token (refused with Forbidden); the daily cap stays the runaway-loop guard and nothing else raises it. Calls past the cap are reserved from live grants, oldest expiry first; a grant that expires or is used up stops adding. Forwarded to the runner's POST /v1/provider/grants. Operator only. The credential is `Authorization: Bearer <credential>`: an atproto service-auth JWT signed by a DID the commons root names as an operator (a pub.techne.draft.operator record; `aud` = the Commons API's service-account DID, not the commons root's, `lxm` = this method), or the Commons API's APICOOP_OPERATOR_TOKEN. Without one the call is refused with AuthRequired; with one that is not an operator's, Forbidden; when the Commons API can check neither, NotConfigured. Typed to confirm: the call needs `confirm` = `calls` in digits (see `confirm`), or it is refused with ConfirmationRequired.
Details · procedure
| Kind | procedure |
|---|---|
| Authority | commons.draft.techne.pub |
| Commit rev | 3n3iob3iwlo2u |
| Indexed |
Procedure
procedure · POSTInput
application/jsonbudget
stringWhich daily budget it extends; `shared` when absent.
default: "shared"knownValues: shared | own | research | summary
Calls granted.
minimum: 1maximum: 1000000
confirm
string`calls` typed again, in digits (`3000`, not `3,000` or `03000`). Byte for byte: same case, no added spaces. The call is refused with ConfirmationRequired before it does anything when this is missing or does not match.
maxLength: 1000
When the grant stops adding, at most 31 days ahead.
Why (required): e.g. the cutover backfill.
maxLength: 1000
Output
application/jsonErrors
InvalidRequest
No description in schema.
ConfirmationRequired
`confirm` is missing or is not exactly what this action is confirmed with (see `confirm`). Nothing was done.
UpstreamFailed
No description in schema.
AuthRequired
No description in schema.
Forbidden
No description in schema.
NotConfigured
No description in schema.