Skip to main content

The workspace's credit

GET/credit

The 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​

FieldTypeRequiredNotes
billingOnbooleanyes
recruitsThrough"jean", "own account", "own account, not billed"yesjean: 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.
availableMinorinteger or nullyes
heldMinorinteger or nullyesHeld for spend asked of the panel and not yet confirmed.
spentThisMonthMinorinteger or nullyesNull for someone who may not see billing.
spendLimitMinorinteger or nullyes
maySeeBillingbooleanyesWhether the caller may manage billing: add credit, see spend, history and receipts. Owners and admins.
billingPageUrlstringyes
ownAccountobject or nullyes
ownAccount.labelstringyes
ownAccount.balanceMinorinteger or nullyes
autoRefillobject or nullyesAutomatic 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.onbooleanyes
autoRefill.belowMinorintegeryesWhen credit available falls below this, a refill is made.
autoRefill.amountMinorintegeryesWhat one refill adds, charged to the saved card.
autoRefill.monthCapMinorintegeryesThe most automatic refills add in one calendar month (UTC).
autoRefill.addedThisMonthMinorintegeryesAdded by automatic refills this month, with any refill on its way.
autoRefill.refillOnItsWaybooleanyes
autoRefill.offBecausestring or nullyesWhy 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​

StatusMeaning
400The request is not valid: the body is not JSON, a field is wrong (listed in errors), or a required Idempotency-Key is missing.
401No key or token, or one that is wrong, expired or revoked.
403The key or connection lacks the scope this operation needs. scope names it.
404No such address, or no study (or conversation) with that id in this workspace. Another workspace's id is answered the same way.
409The 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.
429Too 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.
503The language model is not available. Try again later.

Every error is application/problem+json, the same shape on every endpoint.

API overview · OpenAPI document