Skip to main content
GET
Credit Transactions returns your workspace’s credit ledger, newest first. Each malware scan’s charge carries its scan_id in reference_id, so you can match every charge to the scan that caused it.

Authentication

Send your API key as Authorization: Bearer enc_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.

Request

string
Only the rows that paid for this unit of work, such as a malware scan’s scan_id.
string
Only charges from this origin: api (an API key), dashboard, bulk, or ai_chat.
string
Only one API key’s charges.
string
Only one transaction type, such as usage.
integer
default:"100"
Rows per page.
integer
default:"0"
Rows to skip.

Example request

Find the charge for one malware scan:

Example response

This route returns the ledger object directly, without the {success, result, message} envelope.

Response

object[]
The ledger rows.
integer
How many rows match, across all pages.
object[]
The API keys that appear in the ledger, each with id and name, for labelling api rows.
A repeated scan of the same content is free, so it adds no row.