# generated: '2026-08-29' # method: searched # source: https://docs.soda.io/reference/soda-apis/rest-api/ — assembled from the OpenAPI 3.1.0 # documents Soda publishes inline on each REST API reference page (16 pages, 103 operations, # zero conflicting definitions). Ownership: info.title 'Soda Cloud API v4', servers # https://cloud.soda.io + https://cloud.us.soda.io — Soda's own hosts. openapi: 3.1.0 info: title: Soda Cloud API v4 — Licensing version: v1 description: The Licensing surface of the Soda Cloud v4 public REST API — 1 operation(s). Harvested verbatim from the OpenAPI documents Soda publishes at https://docs.soda.io/reference/soda-apis/rest-api/. contact: name: Soda url: https://www.soda.io servers: - description: Cloud EU url: https://cloud.soda.io - description: Cloud US url: https://cloud.us.soda.io security: - basicAuthApiKey: [] - cookieToken: [] tags: - name: Licensing description: Soda Cloud API Licensing Endpoints paths: /api/v1/licensing/spuConsumption: get: description: '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; others always read zero. ## 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' operationId: GET/api/v1/licensing/spuConsumption parameters: - in: query name: from schema: type: string format: date-time - in: query name: to schema: type: string format: date-time responses: '200': content: application/json: schema: type: object $ref: '#/components/schemas/PublicApiSpuConsumptionResponse' description: Successful response '400': content: application/json: schema: type: object $ref: '#/components/schemas/ErrorResponse' description: Bad request '401': content: application/json: schema: type: object $ref: '#/components/schemas/ErrorResponse' description: Unauthorized '403': content: application/json: schema: type: object $ref: '#/components/schemas/ErrorResponse' description: Forbidden '429': content: application/json: schema: type: object $ref: '#/components/schemas/ErrorResponse' description: Too many requests '500': content: application/json: schema: type: object $ref: '#/components/schemas/ErrorResponse' description: Internal server error summary: Get SPU consumption tags: - Licensing components: securitySchemes: basicAuthApiKey: scheme: basic type: http cookieToken: in: cookie name: token type: apiKey schemas: ErrorResponse: type: object properties: code: type: string message: type: string PublicApiSpuConsumptionResponse: type: object properties: from: type: string format: date-time spusConsumed: type: integer format: int64 to: type: string format: date-time