List Member Credits
GET
https://api.youvico.com/api/workspace/members/credits- Rate Limit
- Default
Lists each member's credit limit and usage in the current cycle. To match a member, compare id with List Members.
Example
curl 'https://api.youvico.com/api/workspace/members/credits' \
-H 'Authorization: Bearer YOUR_API_KEY'
{
"data": [
{
"id": "3d9f1c52-7e4a-4b8e-9f2d-6a1b0c8e5d47",
"creditLimitMode": "INHERIT",
"fixedCreditLimit": 0,
"currentCreditLimit": 500,
"usedCredits": 120,
"reservedCredits": 50
}
]
}
Request
curl -X GET 'https://api.youvico.com/api/workspace/members/credits' \
-H 'Authorization: Bearer YOUR_API_KEY'
Response200 OK
{
"data": [
{
"id": "3d9f1c52-7e4a-4b8e-9f2d-6a1b0c8e5d47",
"creditLimitMode": "INHERIT",
"fixedCreditLimit": 0,
"currentCreditLimit": 500,
"usedCredits": 120,
"reservedCredits": 50
}
]
}
Request
No parameters.
Response
Returns 200 OK.
dataarrayMember credits
data[].idstringWorkspace member ID
Example: 3d9f1c52-7e4a-4b8e-9f2d-6a1b0c8e5d47
data[].creditLimitModestringCredit limit mode. See Credit Limit Modes
Possible values: INHERITFIXEDUNLIMITED
Example: INHERIT
data[].fixedCreditLimitnumberMember credit limit. Applies only with FIXED
Example: 0
data[].currentCreditLimitnumber?Credit limit in effect. null means no limit
Example: 500
data[].usedCreditsnumberCredits used in the current cycle
Example: 120
data[].reservedCreditsnumberCredits reserved by running AI jobs
Example: 50
Credit Limit Modes
| Mode | Limit in effect |
|---|---|
INHERIT | The workspace's default credit limit, or null if it has none |
FIXED | fixedCreditLimit |
UNLIMITED | null |