Credit ledger
Every credit added and spent.
Headers
The endpoints on this page take these headers. Each endpoint's curl shows the ones it sends.
| Name | In | Type | Required | Description |
|---|---|---|---|---|
Ken-Version | header | string, one of: 2026-11-02, 1.1 | optional | The API version, a date in YYYY-MM-DD form. 1.1 is another name for the first dated version. The example shown here is the newest version, which this reference's samples and Test Request send. Leave it out to use your API key's pinned version. Keys created in the Kenso app are pinned to the newest version; keys minted by the CLI login are not. A key with no pinned version and no header gets the legacy shape where the path has one, and 404 where the path exists only in this version. A date that is not a version answers 400 unsupported_version; any other value that is not a version is treated as legacy. |
X-Ken-Workspace-Id | header | integer (int64) | optional | The id of the workspace to act in. Leave it out when your API key reaches only one workspace. When the key reaches more than one, a request without this header answers 400 workspace_required. A workspace you are not a member of answers 404 not_found. |
List credit ledger lines
/v1/credits/ledgercredit-ledger.list- Permission
- The
billingpermission - Rate limit
- 12,000 requests a minute per API key
Lists the lines on the workspace's credit account, newest first: charges, refunds, grants, expiries and adjustments. A parent or standalone workspace also sees the lines of its white-label client workspaces, and workspaceId on each line names the workspace that caused it. A white-label client workspace sees only its own lines.
Optional filters:
fromandto: instants in UTC, both inclusive.action: credit actions, comma-separated, such asemail_found,web_scrape. A line matches any.campaignId: the lines of one campaign.category: spend categories, comma-separated. A line matches any of them:infrastructure,ai,data,sending,callingoradded_expired. A refund or write-off belongs to its charge's category.trigger: what started the work, comma-separated:person,ken,workflow,campaign_scheduleorrenewal. A line matches any.actorUserId: the lines a member started.contactId,accountId: the lines for one contact or account.listId,workflowId: the lines for one list or workflow, older workflow lines included.chatId: the lines of one Ken chat, its Ken run included. An unknown chat gives an empty page.runId: every line of one run (a line'srun.id), 1 to 100 characters.q: text, 2 to 200 characters, case-insensitive. Matches a line's description as shown, title, web URL, or the name of its contact, account, list, workflow, Ken chat or campaign.
Filters combine with AND. limit is from 1 to 200, and the default is 50.
Errors:
400 validation_failed: a filter,limitorcursoris invalid, orfromis afterto.error.detailsnames the field.
Requires the billing permission.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
limit | query | integer (int32) | optional | The page size, from 1 to 200. The default is 50. |
cursor | query | string | optional | The nextCursor of the previous page. Omit it for the first page. |
from | query | string (date-time) | optional | Only lines created at or after this instant, in UTC. |
to | query | string (date-time) | optional | Only lines created at or before this instant, in UTC. |
action | query | string | optional | Only lines of these credit actions, comma-separated, such as email_found,web_scrape. A line matches any of them. |
campaignId | query | integer (int64) | optional | Only lines of this campaign. |
category | query | string | optional | Only lines in these spend categories, comma-separated: infrastructure, ai, data, sending, calling or added_expired. A refund or write-off belongs to its charge's category. |
trigger | query | string | optional | Only lines started this way, comma-separated: person, ken, workflow, campaign_schedule or renewal. A line matches any of them. |
actorUserId | query | integer (int64) | optional | Only lines this member started. |
contactId | query | integer (int64) | optional | Only lines for this contact. |
accountId | query | integer (int64) | optional | Only lines for this account. |
listId | query | integer (int64) | optional | Only lines for this list. |
workflowId | query | integer (int64) | optional | Only lines of this workflow, older lines that named it only in their description included. |
chatId | query | integer (int64) | optional | Only lines of this Ken chat: the chat itself and its Ken run. |
runId | query | string | optional | Only the lines of this run (a line's run.id), 1 to 100 characters. |
q | query | string | optional | Text search, 2 to 200 characters, case-insensitive: a line's description as shown, title, web URL, or the name of its contact, account, list, workflow, Ken chat or campaign. |
curl -X GET "https://api.ken.so/v1/credits/ledger?limit=50" \
-H "Authorization: Bearer $KENSO_API_KEY" \
-H "Ken-Version: 2026-11-02" \
-H "X-Ken-Workspace-Id: $KENSO_WORKSPACE_ID"Response 200
data is a list of CreditLedgerEntry. Each item has these fields. The response also carries pagination.
Show the 33 response fields and an example
The fields and an example are also on this endpoint's Markdown page.
More in Workspace and account:Your accountWorkspacesSandboxesMembersPermission templatesAccess requestsCreditsCredit estimatesCredit rate cardCredit savingsCredit savings rowsCredit spendWhite-label brandsCLI loginBug reportsAll resources