Skip to content

AI assistance capability and allowance (any member)

GET
/organizations/current/ai-assistance
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.

X-Invogi-Organization
string format: uuid

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.

Capability

Media typeapplication/json
object
version
required
string
Allowed value: invogi.ai-assistance.v1
policyVersion
required
string
mode
required
string
Allowed values: OFF EVALUATION PILOT GA ENTERPRISE
reason
required
string | null
Allowed values: ROLLOUT_OFF NOT_ENROLLED SUBSCRIPTION_INACTIVE PLAN_NOT_ELIGIBLE TASK_NOT_ENABLED TASK_PAUSED PROCESSING_DISABLED ROLE_NOT_PERMITTED ALLOWANCE_EXHAUSTED PRICE_ALLOWANCE_EXHAUSTED SERVICE_LIMIT
message
required
string | null
processingEnabled
required
boolean
canRequest
required

Signed-in Analyst

boolean
allowance
required
object
period
required
string
Allowed values: MONTH LIFETIME
total
required
integer
committed
required
integer
reserved
required

Units held by preparations still running

integer
remaining
required
integer
priceDocuments
required

Subset of the total, not additional to it

object
total
required
integer
committed
required
integer
reserved
required
integer
remaining
required
integer
resetsAt
required

First instant of the next UTC month; null for a lifetime evaluation

string | null format: date-time
tasks
required
Array<object>
object
task
required
string
Allowed values: DATA_PROFILE_MAPPING FINDING_RESOLUTION SUPPLIER_REPLY PRICE_SCHEDULE PAYMENT_RUN STATEMENT_CLOSE VALUE_REPORT FINDING_FILTERS
available
required
boolean
reason
required
string | null
Allowed values: ROLLOUT_OFF NOT_ENROLLED SUBSCRIPTION_INACTIVE PLAN_NOT_ELIGIBLE TASK_NOT_ENABLED TASK_PAUSED PROCESSING_DISABLED ROLE_NOT_PERMITTED ALLOWANCE_EXHAUSTED PRICE_ALLOWANCE_EXHAUSTED SERVICE_LIMIT
message
required
string | null

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

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: NOT_FOUND UNAUTHORIZED FORBIDDEN INVALID_REQUEST CONFLICT RATE_LIMITED USAGE_LIMIT_EXCEEDED PROCESSING_FAILED
message
required
string
request_id
required
string
details

Optional stable, content-free context, e.g. {reason, resets_at, preparation_id}.

object
key
additional properties
One of:
string

Example

{
"error": {
"code": "NOT_FOUND"
}
}