Skip to content

Get the credits overview

GET/v1/organization/{orgId}/learning/workspace/credits

US Region: https://public-api.sessionboard.com · EU Region: https://public-api-eu.sessionboard.com

The Credits overview: whether credits are on for the workspace, the organization's credit types (the ones picked in setup first, marked chosen), credit issued by type, the 25 latest claims, events whose credit claiming is open, the credit goals per type and suggested goals (what a learner earned in the last 12 months, median and top quarter). Amounts are never added across credit types. Reads only. Requires read:learning; refused for a key restricted to particular events. Also at GET /v1/learning/workspace/credits.

Request example

Terminal window
curl --request GET \
--url 'https://public-api.sessionboard.com/v1/organization/{orgId}/learning/workspace/credits' \
--header 'x-access-token: <api-token>'

Try it

Authorization

Your token stays in this page. It is sent only to the region above and is never saved; it is gone when you leave or reload the page.

Path parameters
GET

Authorizations

  • x-access-tokenstringheader

    Organization API token. Generate from Organization Settings → API Tokens.

  • AuthorizationBearer <token>headeror

    OAuth 2.1 access token. Obtained via the OAuth PKCE flow at /oauth/token.

Send one of these. See Authentication.

Path parameters

  • orgIdstringpathrequired

    Your organization ID. Any other organization returns 404.

Responses

200application/json

OK

  • successboolean
  • payloadLearningCreditsOverview
    Show child attributes
    • enabledboolean

      Whether credits are on for the workspace.

    • doorstring
      Allowed values
      "associations", "companies"
    • typesobject[]

      Up to 100 credit types, those picked in setup first.

      Show child attributes
      • idstring<uuid>
      • keystring
      • namestring
      • unitstring
      • incrementstring

        Smallest step credit is rounded down to

      • chosenboolean
    • totalsobject[]

      Live credit claimed by credit type, largest first.

      Show child attributes
      • credit_type_idstring<uuid> | null
      • namestring | null
      • amountnumber
      • claimsinteger
      • peopleinteger
    • recentobject[]

      The 25 latest live claims.

      Show child attributes
      • idstring<uuid>
      • amountnumber
      • claimed_atstring<date-time>
      • methodstring
        Allowed values
        "earned", "admin_granted", "imported", "self_reported"
      • credit_typestring | null
      • personstring | null
      • emailstring | null
      • person_idstring<uuid> | null
      • lesson_idstring<uuid> | null
      • activitystring | null

        The course or session title.

      • has_certificateboolean
    • claim_sitesobject[]

      Up to 20 events whose credit claiming is open.

      Show child attributes
      • idstring<uuid>
      • event_idinteger
      • event_namestring
      • claiming_enabledboolean
    • goalsobject[]

      Credit goals, one per credit type.

      Show child attributes
      • credit_type_idstring<uuid> | null
      • credit_typestring | null
      • amountnumber
      • cycle_monthsinteger
    • goal_suggestionsobject[]

      What a learner earned of each type in the last 12 months, rounded up to a quarter.

      Show child attributes
      • credit_type_idstring<uuid>
      • mediannumber
      • p75number
      • peopleinteger

401

Missing, invalid or expired token.

403application/json

  • SCOPE_REQUIRED — the token lacks read:learning (reads) or write:learning (writes). Legacy tokens with no scopes cannot write.
  • ORG_WIDE_TOKEN_REQUIRED — the token is restricted to particular events: "The Learning workspace covers every event and learner in the organization, so this API key (restricted to particular events) cannot use it. Use a key without an event restriction."
  • FEATURE_NOT_ENABLED (feature: lessons_credits) — Learning is not on for the organization.
  • FORBIDDEN — the token's user is not an active member of the organization, or lacks the Lessons permission the operation needs.

Gateway errors carry error (a code) and message. Errors from Learning itself carry status, success: false, message, name, and sometimes code (and feature or paused_at).

  • errorstring | object

    The gateway's error code (SCOPE_REQUIRED, ORG_WIDE_TOKEN_REQUIRED, NOT_FOUND, …).

  • messagestring
  • statusinteger
  • successboolean
  • namestring
  • codestring

    FEATURE_NOT_ENABLED, AGENT_WRITES_PAUSED, …

  • featurestring
  • paused_atstring<date-time>

404application/json

orgId is not your organization (error: NOT_FOUND, message: Organization not found).

Gateway errors carry error (a code) and message. Errors from Learning itself carry status, success: false, message, name, and sometimes code (and feature or paused_at).

  • errorstring | object

    The gateway's error code (SCOPE_REQUIRED, ORG_WIDE_TOKEN_REQUIRED, NOT_FOUND, …).

  • messagestring
  • statusinteger
  • successboolean
  • namestring
  • codestring

    FEATURE_NOT_ENABLED, AGENT_WRITES_PAUSED, …

  • featurestring
  • paused_atstring<date-time>

429application/json

  • The token's request limit (100 requests per 15 minutes per bucket by default — see Rate Limiting). Wait Retry-After seconds.
  • QUOTA_EXCEEDED (writes) — the token's daily write quota (10,000 a day). Resets at midnight UTC.

Gateway errors carry error (a code) and message. Errors from Learning itself carry status, success: false, message, name, and sometimes code (and feature or paused_at).

  • errorstring | object

    The gateway's error code (SCOPE_REQUIRED, ORG_WIDE_TOKEN_REQUIRED, NOT_FOUND, …).

  • messagestring
  • statusinteger
  • successboolean
  • namestring
  • codestring

    FEATURE_NOT_ENABLED, AGENT_WRITES_PAUSED, …

  • featurestring
  • paused_atstring<date-time>
  • Retry-Afterintegerheader

    Seconds to wait before retrying.

Response examples

{
"success": true,
"payload": {
"enabled": true,
"door": "associations",
"types": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"key": "<string>",
"name": "<string>",
"unit": "<string>",
"increment": "<string>",
"chosen": true
}
],
"totals": [
{
"credit_type_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"amount": 123.45,
"claims": 123,
"people": 123
}
],
"recent": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"amount": 123.45,
"claimed_at": "2026-01-15T09:30:00Z",
"method": "earned",
"credit_type": "<string>",
"person": "<string>",
"email": "<string>",
"person_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"lesson_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"activity": "<string>",
"has_certificate": true
}
],
"claim_sites": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"event_id": 123,
"event_name": "<string>",
"claiming_enabled": true
}
],
"goals": [
{
"credit_type_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"credit_type": "<string>",
"amount": 123.45,
"cycle_months": 123
}
],
"goal_suggestions": [
{
"credit_type_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"median": 123.45,
"p75": 123.45,
"people": 123
}
]
}
}