Every current team member's credit spend in a range, highest first, with their credit cap. Matches the Team Member Spending card on the account usage page. Requires the key's member to be a team owner or admin. A member's figures equal GET /usage/breakdown with that member's id as memberIds. Returns usage_breakdown_unavailable (409) until the workspace's usage history has been indexed.
Authorization
bearerAuth usage:readIn: header
Scope: usage:read
Query Parameters
"month"Value in
- "week"
- "month"
- "quarter"
- "year"
- "all"
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/usage/members"{ "range": "week", "data": [ { "userId": "string", "name": "string", "email": "string", "role": "string", "credits": 0, "creditsSpent": 0, "creditsRefunded": 0, "runs": 0, "monthlyLimit": 0, "limitPeriod": "monthly", "usedThisMonth": 0 } ]}{ "error": { "code": "string", "message": "string", "requestId": "string" }}{ "error": { "code": "string", "message": "string", "requestId": "string" }}{ "error": { "code": "string", "message": "string", "requestId": "string" }}{ "error": { "code": "string", "message": "string", "requestId": "string" }}{ "error": { "code": "string", "message": "string", "requestId": "string" }}List Library folders GET
Every Library folder of the workspace, newest first, with who made it. Guests get 403 forbidden. Free.
List spend per metadata value GET
Credits per value of one metadata key given at POST /processes, net of refunds: with metadata.client on every start, key=client is the cost per client. Covers the processes the key's member can read (the whole workspace for owners and admins). Values are returned as text. Up to 500 values, highest spend first.