AI assistance capability and allowance (any member)
const url = 'https://api.invogi.com/v1/organizations/current/ai-assistance';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.invogi.com/v1/organizations/current/ai-assistance \ --header 'Authorization: Bearer <token>'Authoritative, versioned capability for the current workspace under ai-assistance-policy@1: effective mode (OFF, EVALUATION, PILOT, GA, ENTERPRISE), per-task availability with stable reasons, and the shared allowance with its price-document subset (committed, reserved and remaining successful preparations, and the exact UTC reset time; evaluation allowances are lifetime and never reset). Viewers can read it but cannot generate. Internal spending limits, operator allowlists and other users’ jobs are never exposed. Hiding a control in the UI is not enforcement: every generation route applies the same policy.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Header Parameters
Section titled “Header Parameters”For a Clerk session, selects a workspace in which the user has an active membership. If omitted, the remembered accessible workspace is used. API keys remain bound to their own workspace and cannot select another tenant.
Responses
Section titled “Responses”Capability
object
Signed-in Analyst
object
Units held by preparations still running
Subset of the total, not additional to it
object
First instant of the next UTC month; null for a lifetime evaluation
object
Example
{ "version": "invogi.ai-assistance.v1", "policyVersion": "ai-assistance-policy@1", "mode": "PILOT", "reason": null, "message": null, "processingEnabled": true, "canRequest": true, "allowance": { "period": "MONTH", "total": 200, "committed": 12, "reserved": 1, "remaining": 187, "priceDocuments": { "total": 20, "committed": 2, "reserved": 0, "remaining": 18 }, "resetsAt": "2026-12-01T00:00:00.000Z" }, "tasks": [ { "task": "DATA_PROFILE_MAPPING", "available": true, "reason": null, "message": null }, { "task": "PRICE_SCHEDULE", "available": false, "reason": "TASK_NOT_ENABLED", "message": "This assistant is not enabled for this workspace yet. Continue with the manual workflow." } ]}Missing or invalid API key