The workspace's credit
GET
/creditThe workspace's prepaid credit, which paid recruiting draws down: what is available now and what is held for spend not yet confirmed, this month's spend and the monthly spend limit (the spend only for someone who may see billing), how recruiting is paid (by Jean, with one price from credit, or through the workspace's own connected panel account), and the address of the billing page where an admin adds credit. A card is entered on the payment provider's page from there, never through a tool. Spends nothing. (The MCP tool get_credit.)
Scope studies:read · Credential a workspace API key (jean_sk_…, make one in the Jean app) or an OAuth access token. See scopes.
curl --fail-with-body "https://app.jeantechnologies.com/api/v1/credit" \
-H "Authorization: Bearer $JEAN_API_KEY"
Response · 200
| Field | Type | Required | Notes |
|---|---|---|---|
billingOn | boolean | yes | |
recruitsThrough | "jean", "own account", "own account, not billed" | yes | jean: Jean recruits the people and takes one price from credit. own account: the workspace recruits on its own connected panel account, which pays the panel; what Jean charges for recruiting comes from credit. own account, not billed: billing is off and the own account pays everything. |
availableMinor | integer or null | yes | |
heldMinor | integer or null | yes | Held for spend asked of the panel and not yet confirmed. |
spentThisMonthMinor | integer or null | yes | Null for someone who may not see billing. |
spendLimitMinor | integer or null | yes | |
maySeeBilling | boolean | yes | Whether the caller may manage billing: add credit, see spend, history and receipts. Owners and admins. |
billingPageUrl | string | yes | |
ownAccount | object or null | yes | |
ownAccount.label | string | yes | |
ownAccount.balanceMinor | integer or null | yes | |
autoRefill | object or null | yes | Automatic refill of credit from the saved card, as an admin set it on the billing page. Null with billing off. Read only: it is set on the billing page. |
autoRefill.on | boolean | yes | |
autoRefill.belowMinor | integer | yes | When credit available falls below this, a refill is made. |
autoRefill.amountMinor | integer | yes | What one refill adds, charged to the saved card. |
autoRefill.monthCapMinor | integer | yes | The most automatic refills add in one calendar month (UTC). |
autoRefill.addedThisMonthMinor | integer | yes | Added by automatic refills this month, with any refill on its way. |
autoRefill.refillOnItsWay | boolean | yes | |
autoRefill.offBecause | string or null | yes | Why it switched itself off, when a refill failed; null otherwise. |
The full response schema
{
"type": "object",
"properties": {
"billingOn": {
"type": "boolean"
},
"recruitsThrough": {
"type": "string",
"enum": [
"jean",
"own account",
"own account, not billed"
],
"description": "jean: Jean recruits the people and takes one price from credit. own account: the workspace recruits on its own connected panel account, which pays the panel; what Jean charges for recruiting comes from credit. own account, not billed: billing is off and the own account pays everything."
},
"availableMinor": {
"anyOf": [
{
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
{
"type": "null"
}
]
},
"heldMinor": {
"anyOf": [
{
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
{
"type": "null"
}
],
"description": "Held for spend asked of the panel and not yet confirmed."
},
"spentThisMonthMinor": {
"anyOf": [
{
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
{
"type": "null"
}
],
"description": "Null for someone who may not see billing."
},
"spendLimitMinor": {
"anyOf": [
{
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
{
"type": "null"
}
]
},
"maySeeBilling": {
"type": "boolean",
"description": "Whether the caller may manage billing: add credit, see spend, history and receipts. Owners and admins."
},
"billingPageUrl": {
"type": "string"
},
"ownAccount": {
"anyOf": [
{
"type": "object",
"properties": {
"label": {
"type": "string"
},
"balanceMinor": {
"anyOf": [
{
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
{
"type": "null"
}
]
}
},
"required": [
"label",
"balanceMinor"
],
"additionalProperties": false
},
{
"type": "null"
}
]
},
"autoRefill": {
"anyOf": [
{
"type": "object",
"properties": {
"on": {
"type": "boolean"
},
"belowMinor": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991,
"description": "When credit available falls below this, a refill is made."
},
"amountMinor": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991,
"description": "What one refill adds, charged to the saved card."
},
"monthCapMinor": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991,
"description": "The most automatic refills add in one calendar month (UTC)."
},
"addedThisMonthMinor": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991,
"description": "Added by automatic refills this month, with any refill on its way."
},
"refillOnItsWay": {
"type": "boolean"
},
"offBecause": {
"description": "Why it switched itself off, when a refill failed; null otherwise.",
"type": [
"string",
"null"
]
}
},
"required": [
"on",
"belowMinor",
"amountMinor",
"monthCapMinor",
"addedThisMonthMinor",
"refillOnItsWay",
"offBecause"
],
"additionalProperties": false
},
{
"type": "null"
}
],
"description": "Automatic refill of credit from the saved card, as an admin set it on the billing page. Null with billing off. Read only: it is set on the billing page."
}
},
"required": [
"billingOn",
"recruitsThrough",
"availableMinor",
"heldMinor",
"spentThisMonthMinor",
"spendLimitMinor",
"maySeeBilling",
"billingPageUrl",
"ownAccount",
"autoRefill"
],
"additionalProperties": false
}
Errors
| Status | Meaning |
|---|---|
400 | The request is not valid: the body is not JSON, a field is wrong (listed in errors), or a required Idempotency-Key is missing. |
401 | No key or token, or one that is wrong, expired or revoked. |
403 | The key or connection lacks the scope this operation needs. scope names it. |
404 | No such address, or no study (or conversation) with that id in this workspace. Another workspace's id is answered the same way. |
409 | The study is not in a state that allows this (the detail says what to do instead), or the Idempotency-Key was used with a different request. |
429 | Too many requests from this key or connection, or the workspace has reached its hourly or daily limit for model calls (title "Workspace model limit reached", window says which). Retry-After says when to try again. |
503 | The language model is not available. Try again later. |
Every error is application/problem+json, the same shape on every endpoint.