Skip to content
Endless Documentation
Members

Get member credits

GET
/organizations/{organization_id}/members/{user_id}/credits

Get member credits. Scoped to the organization named by organization_id, and the user named by user_id.

Authorization

headerAuthorizationBearer <esk_live_…>

A workspace API key created in workspace settings. It acts as the member who created it, narrowed to its abilities, projects and credit limit. Each operation names the ability it needs.

Scope: members:read

Path Parameters

organization_id*string
Match^org_
user_id*string
Match^user_

Header Parameters

Endless-Api-Version?string

Pin the caller to an API major (1). Omit to accept the current version. A major this deployment cannot serve is refused with 400 unsupported_api_version.

Response Body

OK

application/json
  1. response
available*number
org_available*number
org_used*number
org_total*number
user_used*number
team_used*number
spending_limit*number|null
spending_limit_source*|null
spending_limit_remaining*number|null
usage_cycle_start*string|null
usage_cycle_end*string|null
chat_fallback?
Default
{  "eligible": false,  "can_start": false,  "resets_at": null}
Example Request
curl -X GET 'https://api.endless.app/organizations/org_abc123/members/user_abc123/credits'
Example Response
{  "available": 0,  "org_available": 0,  "org_used": 0,  "org_total": 0,  "user_used": 0,  "team_used": 0,  "spending_limit": 0,  "spending_limit_source": "user",  "spending_limit_remaining": 0,  "usage_cycle_start": "string",  "usage_cycle_end": "string",  "chat_fallback": {    "eligible": false,    "can_start": false,    "resets_at": null  }}