Licensing
Soda Cloud API Licensing Endpoints
This endpoint returns the number of SPUs your organization consumed over a period.
Both bounds are inclusive whole days and any time component is discarded:
from: Optional. Defaults to the first day of the current calendar month.to: Optional. Defaults to today.
Only organizations on SPU-based licensing accumulate consumption. Any other organization is refused with a 400 organisation_not_on_spu_plan error, so a zero total always means nothing was consumed over the period.
Authentication
User authentication required: true
This endpoint accepts authentication via API keys in the Basic authentication header, or a pre-authenticated token in HTTP cookie token. Cookie sessions extend automatically on each request.
Authorization
Users must have global role permission MANAGE_ORGANISATION_SETTINGS to execute this call.
Tags
Licensing
Rate limiting
60 requests/60 seconds
Successful response
Bad request
Unauthorized
Forbidden
Too many requests
Internal server error
GET /api/v1/licensing/spuConsumption HTTP/1.1
Host: cloud.soda.io
Authorization: Basic username:password
Accept: */*
{
"from": "2026-01-01T00:00:00.000Z",
"spusConsumed": 1,
"to": "2026-01-01T00:00:00.000Z"
}This endpoint returns the SPUs your organization consumed over a period, per dataset, ordered by consumption with the largest consumer first.
Both bounds are inclusive whole days and any time component is discarded. The period may span at most 92 days:
from: Optional. Defaults to the first day of the current calendar month.to: Optional. Defaults to today.cursor: Omit for the first page. Pass the previous response'snextCursor, with the same other parameters, to continue after its last item. Cursors are opaque; invalid cursors return 400.size: Number of datasets per page, from 1 to 1000, default 100.
Every page repeats spusConsumed, the same total /api/v1/licensing/spuConsumption returns for the period, and unattributedSpus, the part of it that is not tied to any dataset. The datasets of all pages plus unattributedSpus add up to spusConsumed, unless the datasets alone exceed it, for example over a day whose total is not recorded yet. unattributedSpus is then 0. An absent nextCursor marks the last page.
A dataset that has since been deleted is still listed, by id, without a dataset or datasource name.
Only organizations on SPU-based licensing accumulate consumption. Any other organization is refused with a 400 organisation_not_on_spu_plan error.
Authentication
User authentication required: true
This endpoint accepts authentication via API keys in the Basic authentication header, or a pre-authenticated token in HTTP cookie token. Cookie sessions extend automatically on each request.
Authorization
Users must have global role permission MANAGE_ORGANISATION_SETTINGS to execute this call.
Tags
Licensing
Rate limiting
60 requests/60 seconds
Successful response
Total over the whole period and every dataset, not over this page.
The part of spusConsumed that is not tied to any dataset, over the whole period. It is not part of content.
Bad request
Unauthorized
Forbidden
Too many requests
Internal server error
GET /api/v1/licensing/spuConsumption/datasets HTTP/1.1
Host: cloud.soda.io
Authorization: Basic username:password
Accept: */*
{
"content": [
{
"datasetId": "text",
"datasetName": "text",
"datasourceName": "text",
"spusConsumed": 1
}
],
"from": "2026-01-01T00:00:00.000Z",
"nextCursor": "text",
"spusConsumed": 1,
"to": "2026-01-01T00:00:00.000Z",
"unattributedSpus": 1
}This endpoint returns the licensing plan your organization is on, along with the limits that plan grants.
Use it to find out what your organization is entitled to before a tool or pipeline decides what it may do. It reports the limits only, not how much of them is already used: pair it with /api/v1/licensing/spuConsumption for the SPUs consumed over a period.
An organization that is on no plan at all is answered with a 404 licensing_not_found error, so a 200 always carries a plan.
Authentication
User authentication required: true
This endpoint accepts authentication via API keys in the Basic authentication header, or a pre-authenticated token in HTTP cookie token. Cookie sessions extend automatically on each request.
Authorization
Users must have global role permission MANAGE_ORGANISATION_SETTINGS to execute this call.
Tags
Licensing
Rate limiting
60 requests/60 seconds
Successful response
Only set while the organization is on the trial plan.
Unauthorized
Forbidden
Not found
Too many requests
Internal server error
GET /api/v1/organisation/licensing HTTP/1.1
Host: cloud.soda.io
Authorization: Basic username:password
Accept: */*
{
"plan": "trial",
"planFeatures": {
"activeChecks": 1,
"authorUsers": 1,
"concurrentScans": 1,
"datasetCount": 1,
"prepaidSPUs": 1,
"users": 1
},
"subscription": {
"endDate": "2026-01-01T00:00:00.000Z",
"startDate": "2026-01-01T00:00:00.000Z"
},
"trialExpirationTime": "2026-01-01T00:00:00.000Z"
}Last updated
Was this helpful?
