{"openapi":"3.0.3","info":{"title":"Binadox External API","version":"1.0.0","description":"The Binadox external API: cloud and SaaS cost data for the workspace that owns the token.\n\n## Authentication\n\nEvery request needs an API token in the `Authorization` header, using the `ApiToken` scheme:\n\n```\nAuthorization: ApiToken <your-token>\n```\n\nGenerate a token in the Binadox UI under workspace settings. The token identifies the workspace, so no organization id appears in these paths.\n\n## Scope\n\nThis document covers exactly the paths an API token may reach. The gateway enforces that list (`security.api-token.allowed-paths`) and answers `403` for anything else, including endpoints that exist and would otherwise work for a session user. Terraform, proxy and MCP tokens are separate token types with their own allow-lists and are not documented here.\n\n## Pagination\n\nPaginated endpoints take `page` (zero-based) and `size`, and return a Spring page envelope where the rows are in `content`. Omitting `size` returns the unpaged result set.\n\n## Errors\n\nEvery non-2xx response, from the gateway and from the services behind it, is the same object -- see the `ErrorResponse` schema. `error` is a stable sentence fixed per status rather than derived from the failure, so it never narrates internal state to a caller that has not authenticated; `stackTrace` is always empty.\n\n| Status | Meaning | Retry |\n|---|---|---|\n| `401` | Missing, malformed or expired token. Carries `WWW-Authenticate: ApiToken`. | No, fix the token |\n| `403` | Valid token, but the path is outside its allow-list or the workspace lacks access. | No |\n| `404` | No such endpoint, or the resource does not exist in this workspace. | No |\n| `500` | The request could not be completed. | Once, with backoff |\n\n## Versioning and deprecation\n\nThe API version is `info.version` in this document. A breaking change -- a field removed, a type narrowed, a status repurposed -- ships under a new major version and a new path prefix, and the previous prefix keeps answering for the whole notice period below. Additive changes (a new field, a new optional parameter, a new endpoint) do not bump the major version, so a client must ignore unknown fields rather than reject them.\n\nAn operation being withdrawn carries [RFC 8594](https://www.rfc-editor.org/rfc/rfc8594) headers before it disappears:\n\n```\nDeprecation: Sun, 01 Mar 2026 00:00:00 GMT\nSunset: Tue, 01 Sep 2026 00:00:00 GMT\nLink: <https://prod.binadox.com/openapi.json>; rel=\"successor-version\"\n```\n\n`Deprecation` is the point from which the operation is discouraged, `Sunset` the date it stops answering. The minimum interval between them is **six months**. A client that watches for `Sunset` on responses it already receives needs no other notification channel.\n\n## Rate limits\n\nThere is currently **no published rate limit** on this API and no `RateLimit` headers are sent. Callers should still be conservative: poll no more often than the underlying data changes, and back off on `500`.\n\nIf limits are introduced they will be announced through the mechanism above and advertised in-band with [RFC 9331](https://www.rfc-editor.org/rfc/rfc9331) `RateLimit` headers plus `Retry-After` on `429`, so a client already honouring those headers needs no change.\n","contact":{"name":"Binadox","email":"sales@binadox.com","url":"https://www.binadox.com/contact-us/"}},"servers":[{"url":"https://prod.binadox.com","description":"Binadox API"}],"security":[{"ApiToken":[]}],"tags":[{"name":"External Cloud Billing","description":"External cloud billing reports and drill-down endpoints"},{"name":"External Finance","description":"Finance reports, invoices and payment evidence for the calling workspace"},{"name":"External IaC Callback","description":"Callback endpoint for CI jobs that analyse infrastructure-as-code changes"},{"name":"External Pricing","description":"Public cloud virtual-machine list prices. Served from the shared public catalogue, so results are identical for every workspace."},{"name":"External Provisioning Scenarios","description":"Discover and execute user-provisioning scenarios"},{"name":"External SaaS Utilization","description":"Application and account utilization reports. All endpoints are paginated; omit size to receive the full result set."}],"paths":{"/api/1/organizations/pricing/callback/analyze_iaac":{"post":{"tags":["External IaC Callback"],"summary":"Submit an IaC plan for cost analysis","operationId":"analyzeIaac","description":"Accepts a Terraform plan produced by a VCS pipeline and queues it for cost analysis. Called by the Binadox CI action rather than interactively; the result is delivered back to the pull request, not returned in the response.","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnalyzeIaacActionRequest"}}}},"responses":{"200":{"description":"Accepted. No response body."},"401":{"description":"Missing, malformed or expired API token. The response carries `WWW-Authenticate: ApiToken`. Retrying without fixing the token will not help.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The token is valid but this path is outside the API-token allow-list, or the workspace lacks access. Not retryable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"No such endpoint, or the identified resource does not exist in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"The request could not be completed. Safe to retry once; the body carries no internal detail by design.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/api/external/cloud-billing/common-graph":{"get":{"tags":["External Cloud Billing"],"summary":"Get common cost graph","operationId":"getCommonGraph","description":"Returns common cost graph data for selected fetchers and period.","parameters":[{"name":"fetcher_ids","in":"query","required":false,"schema":{"type":"array","items":{"type":"integer","format":"int64"}},"description":"Cloud billing fetcher identifiers"},{"name":"dateFrom","in":"query","required":true,"schema":{"type":"string","example":"2026-07-01"},"description":"Start date in yyyy-MM-dd format"},{"name":"dateTo","in":"query","required":true,"schema":{"type":"string","example":"2026-07-01"},"description":"End date in yyyy-MM-dd format"}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GraphicDto"}}}},"401":{"description":"Missing, malformed or expired API token. The response carries `WWW-Authenticate: ApiToken`. Retrying without fixing the token will not help.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The token is valid but this path is outside the API-token allow-list, or the workspace lacks access. Not retryable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"No such endpoint, or the identified resource does not exist in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"The request could not be completed. Safe to retry once; the body carries no internal detail by design.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/api/external/cloud-billing/fetcher-report":{"get":{"tags":["External Cloud Billing"],"summary":"Get fetcher cloud report","operationId":"getFetcherCloudReport","description":"Returns cloud billing report data for a specific fetcher and period.","parameters":[{"name":"fetcherId","in":"query","required":true,"schema":{"type":"integer","format":"int64"},"description":"Cloud billing fetcher identifier"},{"name":"dateFrom","in":"query","required":true,"schema":{"type":"string","example":"2026-07-01"},"description":"Start date in yyyy-MM-dd format"},{"name":"dateTo","in":"query","required":true,"schema":{"type":"string","example":"2026-07-01"},"description":"End date in yyyy-MM-dd format"}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FetcherCloudReport"}}}},"401":{"description":"Missing, malformed or expired API token. The response carries `WWW-Authenticate: ApiToken`. Retrying without fixing the token will not help.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The token is valid but this path is outside the API-token allow-list, or the workspace lacks access. Not retryable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"No such endpoint, or the identified resource does not exist in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"The request could not be completed. Safe to retry once; the body carries no internal detail by design.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/api/external/cloud-billing/iaas-dashboard":{"get":{"tags":["External Cloud Billing"],"summary":"Get IaaS dashboard","operationId":"getFetcherTable","description":"Returns aggregated cloud billing dashboard data for the selected period.","parameters":[{"name":"dateFrom","in":"query","required":true,"schema":{"type":"string","example":"2026-07-01"},"description":"Start date in yyyy-MM-dd format"},{"name":"dateTo","in":"query","required":true,"schema":{"type":"string","example":"2026-07-01"},"description":"End date in yyyy-MM-dd format"}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CloudDashboardDto"}}}},"401":{"description":"Missing, malformed or expired API token. The response carries `WWW-Authenticate: ApiToken`. Retrying without fixing the token will not help.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The token is valid but this path is outside the API-token allow-list, or the workspace lacks access. Not retryable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"No such endpoint, or the identified resource does not exist in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"The request could not be completed. Safe to retry once; the body carries no internal detail by design.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/api/external/cloud-billing/service":{"get":{"tags":["External Cloud Billing"],"summary":"Get drill-down services","operationId":"getDrillDownService","description":"Returns service identifiers and names for drill-down by fetcher, instance type, and period.","parameters":[{"name":"dateFrom","in":"query","required":true,"schema":{"type":"string","example":"2026-07-01"},"description":"Start date in yyyy-MM-dd format"},{"name":"dateTo","in":"query","required":true,"schema":{"type":"string","example":"2026-07-01"},"description":"End date in yyyy-MM-dd format"},{"name":"fetcher_id","in":"query","required":true,"schema":{"type":"integer","format":"int64"},"description":"Cloud billing fetcher identifier"},{"name":"instance_type","in":"query","required":true,"schema":{"type":"string"},"description":"Cloud resource instance type"}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"string"}}}}},"401":{"description":"Missing, malformed or expired API token. The response carries `WWW-Authenticate: ApiToken`. Retrying without fixing the token will not help.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The token is valid but this path is outside the API-token allow-list, or the workspace lacks access. Not retryable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"No such endpoint, or the identified resource does not exist in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"The request could not be completed. Safe to retry once; the body carries no internal detail by design.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/api/external/cloud-billing/service/costs":{"get":{"tags":["External Cloud Billing"],"summary":"Get drill-down costs","operationId":"getDrillDownCosts","description":"Returns paginated drill-down cost data by fetcher, instance type, and period.","parameters":[{"name":"fetcher_id","in":"query","required":true,"schema":{"type":"integer","format":"int64"},"description":"Cloud billing fetcher identifier"},{"name":"dateFrom","in":"query","required":true,"schema":{"type":"string","example":"2026-07-01"},"description":"Start date in yyyy-MM-dd format"},{"name":"dateTo","in":"query","required":true,"schema":{"type":"string","example":"2026-07-01"},"description":"End date in yyyy-MM-dd format"},{"name":"instance_type","in":"query","required":true,"schema":{"type":"string"},"description":"Cloud resource instance type"},{"name":"page","in":"query","required":false,"description":"Results page you want to retrieve (0..N)","schema":{"type":"integer","format":"int32","default":0}},{"name":"size","in":"query","required":false,"description":"Number of records per page.","schema":{"type":"integer","format":"int32"}},{"name":"sort","in":"query","required":false,"description":"Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.","schema":{"type":"array","items":{"type":"string"}}}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DrillDownResponse"}}}},"401":{"description":"Missing, malformed or expired API token. The response carries `WWW-Authenticate: ApiToken`. Retrying without fixing the token will not help.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The token is valid but this path is outside the API-token allow-list, or the workspace lacks access. Not retryable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"No such endpoint, or the identified resource does not exist in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"The request could not be completed. Safe to retry once; the body carries no internal detail by design.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/api/external/cloud-billing/spend-explorer/{fetcher_id}":{"get":{"tags":["External Cloud Billing"],"summary":"Get spend explorer report","operationId":"getFetcherReport","description":"Returns spend explorer report data for a specific organization, fetcher, and date.","parameters":[{"name":"fetcher_id","in":"path","required":true,"schema":{"type":"integer","format":"int64"},"description":"Cloud billing fetcher identifier"},{"name":"date","in":"query","required":true,"schema":{"type":"string","example":"2026-07-01"},"description":"Report date in yyyy-MM-dd format"}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SpendExplorerReport"}}}},"401":{"description":"Missing, malformed or expired API token. The response carries `WWW-Authenticate: ApiToken`. Retrying without fixing the token will not help.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The token is valid but this path is outside the API-token allow-list, or the workspace lacks access. Not retryable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"No such endpoint, or the identified resource does not exist in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"The request could not be completed. Safe to retry once; the body carries no internal detail by design.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/api/external/finance/evidence/download":{"get":{"tags":["External Finance"],"summary":"Download payment evidence","operationId":"downloadEvidence","description":"Streams the stored evidence file (invoice document or receipt) for the given evidence identifier.","parameters":[{"name":"id","in":"query","required":true,"schema":{"type":"integer","format":"int64","example":"1"},"description":"Evidence identifier"}],"responses":{"200":{"description":"The stored file, streamed.","content":{"application/octet-stream":{"schema":{"type":"string","format":"binary"}}}},"401":{"description":"Missing, malformed or expired API token. The response carries `WWW-Authenticate: ApiToken`. Retrying without fixing the token will not help.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The token is valid but this path is outside the API-token allow-list, or the workspace lacks access. Not retryable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"No such endpoint, or the identified resource does not exist in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"The request could not be completed. Safe to retry once; the body carries no internal detail by design.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/api/external/finance/invoice":{"get":{"tags":["External Finance"],"summary":"Get invoice by id","operationId":"getInvoice","description":"Returns the invoice with the given identifier, as a single-element list.","parameters":[{"name":"id","in":"query","required":true,"schema":{"type":"integer","format":"int64","example":"1"},"description":"Invoice identifier"}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/InvoiceDto"}}}}},"401":{"description":"Missing, malformed or expired API token. The response carries `WWW-Authenticate: ApiToken`. Retrying without fixing the token will not help.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The token is valid but this path is outside the API-token allow-list, or the workspace lacks access. Not retryable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"No such endpoint, or the identified resource does not exist in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"The request could not be completed. Safe to retry once; the body carries no internal detail by design.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/api/external/finance/report":{"post":{"tags":["External Finance"],"summary":"Get finance report","operationId":"getFinanceReport","description":"Returns a paginated finance report for the applications matching the supplied filter.","parameters":[{"name":"size","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":20},"description":"Number of records per page"},{"name":"page","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":0},"description":"Zero-based page number"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReportFilterRequest"}}}},"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/PageEnvelope"},{"type":"object","properties":{"content":{"type":"array","items":{"$ref":"#/components/schemas/FinanceReport"}}}}]}}}},"401":{"description":"Missing, malformed or expired API token. The response carries `WWW-Authenticate: ApiToken`. Retrying without fixing the token will not help.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The token is valid but this path is outside the API-token allow-list, or the workspace lacks access. Not retryable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"No such endpoint, or the identified resource does not exist in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"The request could not be completed. Safe to retry once; the body carries no internal detail by design.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/api/external/pricing/clouds":{"get":{"tags":["External Pricing"],"summary":"List cloud providers","operationId":"getClouds","description":"Returns the cloud provider keys accepted by the other endpoints in this group.","responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"array","items":{"type":"string"}}}}},"401":{"description":"Missing, malformed or expired API token. The response carries `WWW-Authenticate: ApiToken`. Retrying without fixing the token will not help.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The token is valid but this path is outside the API-token allow-list, or the workspace lacks access. Not retryable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"No such endpoint, or the identified resource does not exist in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"The request could not be completed. Safe to retry once; the body carries no internal detail by design.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/api/external/pricing/names":{"get":{"tags":["External Pricing"],"summary":"List instance type names for a cloud","operationId":"getNames","description":"Returns the instance type names available for the given cloud provider.","parameters":[{"name":"cloud","in":"query","required":true,"schema":{"type":"string","example":"aws"},"description":"Cloud provider key, as returned by /clouds"}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"array","items":{"type":"string"}}}}},"401":{"description":"Missing, malformed or expired API token. The response carries `WWW-Authenticate: ApiToken`. Retrying without fixing the token will not help.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The token is valid but this path is outside the API-token allow-list, or the workspace lacks access. Not retryable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"No such endpoint, or the identified resource does not exist in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"The request could not be completed. Safe to retry once; the body carries no internal detail by design.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/api/external/pricing/regions":{"get":{"tags":["External Pricing"],"summary":"List regions for a cloud","operationId":"getRegions","description":"Returns the region keys available for the given cloud provider.","parameters":[{"name":"cloud","in":"query","required":true,"schema":{"type":"string","example":"aws"},"description":"Cloud provider key, as returned by /clouds"}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"array","items":{"type":"string"}}}}},"401":{"description":"Missing, malformed or expired API token. The response carries `WWW-Authenticate: ApiToken`. Retrying without fixing the token will not help.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The token is valid but this path is outside the API-token allow-list, or the workspace lacks access. Not retryable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"No such endpoint, or the identified resource does not exist in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"The request could not be completed. Safe to retry once; the body carries no internal detail by design.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/api/external/pricing/virtual-machine-prices":{"get":{"tags":["External Pricing"],"summary":"Get virtual machine prices","operationId":"getVmPrices","description":"Returns list prices for a named instance type. Omit region to receive prices for every region the instance is offered in.","parameters":[{"name":"cloud","in":"query","required":true,"schema":{"type":"string","example":"aws"},"description":"Cloud provider key, as returned by /clouds"},{"name":"name","in":"query","required":true,"schema":{"type":"string","example":"m5.large"},"description":"Instance type name, as returned by /names"},{"name":"region","in":"query","required":false,"schema":{"type":"string","example":"us-east-1"},"description":"Region key, as returned by /regions. Omit for all regions."}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/VirtualMachinePublicApiDto"}}}}},"401":{"description":"Missing, malformed or expired API token. The response carries `WWW-Authenticate: ApiToken`. Retrying without fixing the token will not help.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The token is valid but this path is outside the API-token allow-list, or the workspace lacks access. Not retryable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"No such endpoint, or the identified resource does not exist in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"The request could not be completed. Safe to retry once; the body carries no internal detail by design.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/api/external/web-usage/reports/download/accounts/utilization":{"get":{"tags":["External SaaS Utilization"],"summary":"List account utilization","operationId":"getAllAccountsUtilization","description":"Returns per-user utilization across every discovered application in the workspace.","parameters":[{"name":"size","in":"query","required":false,"schema":{"type":"integer","format":"int32"},"description":"Number of records per page"},{"name":"page","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":0},"description":"Page number"}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/PageEnvelope"},{"type":"object","properties":{"content":{"type":"array","items":{"$ref":"#/components/schemas/UserUtilizationDto"}}}}]}}}},"401":{"description":"Missing, malformed or expired API token. The response carries `WWW-Authenticate: ApiToken`. Retrying without fixing the token will not help.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The token is valid but this path is outside the API-token allow-list, or the workspace lacks access. Not retryable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"No such endpoint, or the identified resource does not exist in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"The request could not be completed. Safe to retry once; the body carries no internal detail by design.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/api/external/web-usage/reports/download/accounts/{acc_id}/utilization":{"get":{"tags":["External SaaS Utilization"],"summary":"Get utilization detail for one account","operationId":"getAccountUtilizationDetails","description":"Returns every application the given account holds a licence for, with its usage.","parameters":[{"name":"acc_id","in":"path","required":true,"schema":{"type":"integer","format":"int64"},"description":"Current account identifier"},{"name":"size","in":"query","required":false,"schema":{"type":"integer","format":"int32"},"description":"Number of records per page"},{"name":"page","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":0},"description":"Page number"}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/PageEnvelope"},{"type":"object","properties":{"content":{"type":"array","items":{"$ref":"#/components/schemas/UserUtilizationDetailDto"}}}}]}}}},"401":{"description":"Missing, malformed or expired API token. The response carries `WWW-Authenticate: ApiToken`. Retrying without fixing the token will not help.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The token is valid but this path is outside the API-token allow-list, or the workspace lacks access. Not retryable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"No such endpoint, or the identified resource does not exist in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"The request could not be completed. Safe to retry once; the body carries no internal detail by design.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/api/external/web-usage/reports/download/applications/utilization":{"get":{"tags":["External SaaS Utilization"],"summary":"List application utilization","operationId":"getAllApplicationsUtilization","description":"Returns per-application licence utilization across the workspace, sorted by product name.","parameters":[{"name":"size","in":"query","required":false,"schema":{"type":"integer","format":"int32"},"description":"Number of records per page"},{"name":"page","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":0},"description":"Page number"}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/PageEnvelope"},{"type":"object","properties":{"content":{"type":"array","items":{"$ref":"#/components/schemas/ApplicationUtilizationDto"}}}}]}}}},"401":{"description":"Missing, malformed or expired API token. The response carries `WWW-Authenticate: ApiToken`. Retrying without fixing the token will not help.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The token is valid but this path is outside the API-token allow-list, or the workspace lacks access. Not retryable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"No such endpoint, or the identified resource does not exist in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"The request could not be completed. Safe to retry once; the body carries no internal detail by design.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/api/external/web-usage/reports/download/applications/{app_id}/renewal-graph/accounts":{"get":{"tags":["External SaaS Utilization"],"summary":"List accounts on one licence","operationId":"getAllAccountsForAppAndLicense","description":"Returns the accounts holding a specific payment plan and billing period for an application.","parameters":[{"name":"app_id","in":"path","required":true,"schema":{"type":"string"},"description":"Current application identifier"},{"name":"payment_plan","in":"query","required":true,"schema":{"type":"string"},"description":"Current payment plan"},{"name":"billing_period","in":"query","required":true,"schema":{"type":"string"},"description":"Current billing period"},{"name":"size","in":"query","required":false,"schema":{"type":"integer","format":"int32"},"description":"Number of records per page"},{"name":"page","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":0},"description":"Page number"}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/PageEnvelope"},{"type":"object","properties":{"content":{"type":"array","items":{"$ref":"#/components/schemas/ApplicationUtilizationDetailDto"}}}}]}}}},"401":{"description":"Missing, malformed or expired API token. The response carries `WWW-Authenticate: ApiToken`. Retrying without fixing the token will not help.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The token is valid but this path is outside the API-token allow-list, or the workspace lacks access. Not retryable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"No such endpoint, or the identified resource does not exist in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"The request could not be completed. Safe to retry once; the body carries no internal detail by design.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/api/external/web-usage/reports/download/applications/{app_id}/utilization":{"get":{"tags":["External SaaS Utilization"],"summary":"Get utilization detail for one application","operationId":"getApplicationUtilizationDetails","description":"Returns the individual user records behind one application's utilization figure.","parameters":[{"name":"app_id","in":"path","required":true,"schema":{"type":"string"},"description":"Current application identifier"},{"name":"size","in":"query","required":false,"schema":{"type":"integer","format":"int32"},"description":"Number of records per page"},{"name":"page","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":0},"description":"Page number"}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/PageEnvelope"},{"type":"object","properties":{"content":{"type":"array","items":{"$ref":"#/components/schemas/ApplicationUtilizationDetailDto"}}}}]}}}},"401":{"description":"Missing, malformed or expired API token. The response carries `WWW-Authenticate: ApiToken`. Retrying without fixing the token will not help.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The token is valid but this path is outside the API-token allow-list, or the workspace lacks access. Not retryable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"No such endpoint, or the identified resource does not exist in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"The request could not be completed. Safe to retry once; the body carries no internal detail by design.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/api/external/web-usage/reports/download/discovered/applications":{"get":{"tags":["External SaaS Utilization"],"summary":"List discovered applications","operationId":"getDiscoveredApplications","description":"Returns applications discovered in the workspace, including shadow IT that was never formally procured.","parameters":[{"name":"size","in":"query","required":false,"schema":{"type":"integer","format":"int32"},"description":"Number of records per page"},{"name":"page","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":0},"description":"Page number"}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/PageEnvelope"},{"type":"object","properties":{"content":{"type":"array","items":{"$ref":"#/components/schemas/DiscoveredAppDto"}}}}]}}}},"401":{"description":"Missing, malformed or expired API token. The response carries `WWW-Authenticate: ApiToken`. Retrying without fixing the token will not help.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The token is valid but this path is outside the API-token allow-list, or the workspace lacks access. Not retryable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"No such endpoint, or the identified resource does not exist in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"The request could not be completed. Safe to retry once; the body carries no internal detail by design.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/api/external/web-usage/reports/download/renewal-graphs":{"post":{"tags":["External SaaS Utilization"],"summary":"Get renewal graphs","operationId":"getRenewalGraphs","description":"Returns upcoming subscription renewals over the requested window, so auto-renewals can be seen before they bill.","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RenewalGraphDayRequest"}}}},"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/RenewalGraphDto"}}}}},"401":{"description":"Missing, malformed or expired API token. The response carries `WWW-Authenticate: ApiToken`. Retrying without fixing the token will not help.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The token is valid but this path is outside the API-token allow-list, or the workspace lacks access. Not retryable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"No such endpoint, or the identified resource does not exist in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"The request could not be completed. Safe to retry once; the body carries no internal detail by design.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/api/external/web-usage/reports/download/{app_id}/features":{"get":{"tags":["External SaaS Utilization"],"summary":"List application features","operationId":"getFeatures","description":"Returns the measurable features of an application, for use as the feature parameter of the usage-detail endpoint.","parameters":[{"name":"app_id","in":"path","required":true,"schema":{"type":"string"},"description":"Current application identifier"},{"name":"size","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":20},"description":"Number of records per page"},{"name":"page","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":0},"description":"Page number"}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/PageEnvelope"},{"type":"object","properties":{"content":{"type":"array","items":{"$ref":"#/components/schemas/FeatureUtilizationDto"}}}}]}}}},"401":{"description":"Missing, malformed or expired API token. The response carries `WWW-Authenticate: ApiToken`. Retrying without fixing the token will not help.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The token is valid but this path is outside the API-token allow-list, or the workspace lacks access. Not retryable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"No such endpoint, or the identified resource does not exist in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"The request could not be completed. Safe to retry once; the body carries no internal detail by design.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/api/external/web-usage/reports/download/{app_id}/usage-detail":{"get":{"tags":["External SaaS Utilization"],"summary":"Get per-user feature usage","operationId":"getUsageDetailUtilizations","description":"Returns per-user usage of a single named feature within an application.","parameters":[{"name":"app_id","in":"path","required":true,"schema":{"type":"string"},"description":"Current application identifier"},{"name":"feature","in":"query","required":true,"schema":{"type":"string"},"description":"Feature service param from API features"},{"name":"size","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":20},"description":"Number of records per page"},{"name":"page","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":0},"description":"Page number"}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/PageEnvelope"},{"type":"object","properties":{"content":{"type":"array","items":{"$ref":"#/components/schemas/PersonUsageDetailUtilizationDto"}}}}]}}}},"401":{"description":"Missing, malformed or expired API token. The response carries `WWW-Authenticate: ApiToken`. Retrying without fixing the token will not help.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The token is valid but this path is outside the API-token allow-list, or the workspace lacks access. Not retryable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"No such endpoint, or the identified resource does not exist in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"The request could not be completed. Safe to retry once; the body carries no internal detail by design.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/api/external/web-usage/scenario/dynamic-ui":{"get":{"tags":["External Provisioning Scenarios"],"summary":"Dynamic params for creating user","operationId":"getAddUserDynamicUI","parameters":[{"name":"id","in":"query","required":true,"schema":{"type":"integer","format":"int64"},"description":"Scenario id"}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DynamicUI"}}}},"401":{"description":"Missing, malformed or expired API token. The response carries `WWW-Authenticate: ApiToken`. Retrying without fixing the token will not help.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The token is valid but this path is outside the API-token allow-list, or the workspace lacks access. Not retryable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"No such endpoint, or the identified resource does not exist in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"The request could not be completed. Safe to retry once; the body carries no internal detail by design.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/api/external/web-usage/scenario/list":{"get":{"tags":["External Provisioning Scenarios"],"summary":"List of scenarios","operationId":"getScenarios","responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ScenarioDto"}}}}},"401":{"description":"Missing, malformed or expired API token. The response carries `WWW-Authenticate: ApiToken`. Retrying without fixing the token will not help.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The token is valid but this path is outside the API-token allow-list, or the workspace lacks access. Not retryable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"No such endpoint, or the identified resource does not exist in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"The request could not be completed. Safe to retry once; the body carries no internal detail by design.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/api/external/web-usage/scenario/run-scenario":{"post":{"tags":["External Provisioning Scenarios"],"summary":"Run a provisioning scenario","operationId":"runScenario","description":"Executes the scenario with the supplied parameters. Keys must match the widget names returned by /dynamic-ui for the same scenario id.","parameters":[{"name":"id","in":"query","required":true,"schema":{"type":"integer","format":"int64"},"description":"Scenario id"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"string"}}}}},"responses":{"200":{"description":"Accepted. No response body."},"401":{"description":"Missing, malformed or expired API token. The response carries `WWW-Authenticate: ApiToken`. Retrying without fixing the token will not help.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The token is valid but this path is outside the API-token allow-list, or the workspace lacks access. Not retryable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"No such endpoint, or the identified resource does not exist in this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"The request could not be completed. Safe to retry once; the body carries no internal detail by design.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}}},"components":{"securitySchemes":{"ApiToken":{"type":"apiKey","in":"header","name":"Authorization","description":"API token issued from the Binadox UI. Send it as `Authorization: ApiToken <your-token>`."}},"schemas":{"AccountCosts":{"type":"object","properties":{"first":{"$ref":"#/components/schemas/DateCost"},"second":{"$ref":"#/components/schemas/DateCost"},"third":{"$ref":"#/components/schemas/DateCost"},"expected":{"type":"number"}}},"AccountUsageDataDto":{"type":"object","properties":{"accId":{"type":"integer","format":"int64"},"name":{"type":"string"},"email":{"type":"string"}}},"AnalyzeIaacActionRequest":{"type":"object","properties":{"project":{"type":"string"},"gitHubData":{"$ref":"#/components/schemas/GithubData"},"bitbucketData":{"type":"object","description":"Arbitrary provider-specific JSON"},"gitlabData":{"type":"object","description":"Arbitrary provider-specific JSON"},"azureData":{"type":"object","description":"Arbitrary provider-specific JSON"}}},"AppInfo":{"type":"object","properties":{"appName":{"type":"string"},"appTitle":{"type":"string"},"icon":{"type":"string"}}},"ApplicationUsageDataDto":{"type":"object","properties":{"appId":{"type":"string"},"title":{"type":"string"},"vendor":{"type":"string"},"name":{"type":"string"},"icon":{"type":"string"},"instances":{"type":"array","items":{}},"canDeleteLicense":{"type":"boolean"}}},"ApplicationUtilizationDetailDto":{"type":"object","properties":{"accountUsageDataDto":{"$ref":"#/components/schemas/AccountUsageDataDto"},"usageDetailDto":{"$ref":"#/components/schemas/UsageDetailDto"}}},"ApplicationUtilizationDto":{"type":"object","properties":{"applicationUsageDataDto":{"$ref":"#/components/schemas/ApplicationUsageDataDto"},"licenses":{"type":"integer","format":"int32"},"unassigned_licenses":{"type":"integer","format":"int64"},"utilization":{"type":"number","format":"double"},"annualCost":{"type":"number","format":"double"},"unassignedCost":{"type":"number","format":"double"},"savings":{"type":"number","format":"double"},"sourceInf":{"type":"array","items":{"$ref":"#/components/schemas/SourceInfDto"}},"categories":{"type":"array","items":{"type":"string"}},"futuresPresent":{"type":"boolean"},"meetingsPresent":{"type":"boolean"},"licensesWithoutCostExists":{"type":"boolean"},"paymentHistoryTableExists":{"type":"boolean"},"paymentHistoryGraphExists":{"type":"boolean"},"virtual":{"type":"boolean"},"hasProvisionSupport":{"type":"boolean"}}},"AtomicWidget":{"type":"object","properties":{"type":{"$ref":"#/components/schemas/WidgetType"},"name":{"type":"string"},"label":{"type":"string"},"tooltip":{"type":"string"},"properties":{"type":"object","additionalProperties":{}}}},"BudgetDto":{"type":"object","properties":{"fetcherId":{"type":"integer","format":"int64"},"budget":{"type":"number"},"active":{"type":"boolean"}}},"CloudDashboardDto":{"type":"object","properties":{"fetchersTable":{"type":"array","items":{"$ref":"#/components/schemas/FetcherTableDto"}},"totalSpend":{"type":"number"},"overPayment":{"type":"number"},"budget":{"$ref":"#/components/schemas/BudgetDto"}}},"ColumnType":{"type":"string","enum":["STRING","NUMBER","PERCENT","LIST","CURRENCY","BOOLEAN"]},"Cost":{"type":"object","properties":{"os":{"$ref":"#/components/schemas/OS"},"leaseType":{"type":"string"},"forDedicated":{"type":"boolean"},"reservationYears":{"type":"integer","format":"int32"},"fullPaymentType":{"$ref":"#/components/schemas/Type"},"region":{"$ref":"#/components/schemas/RegionDto"},"hourlyPrice":{"type":"number"},"averageMonthlyPrice":{"type":"number"},"monthlyPrice":{"type":"number"},"upfrontPrice":{"type":"number"}}},"CostRow":{"type":"object","properties":{"name":{"type":"string"},"percent":{"type":"number"},"cost":{"type":"number"},"isDrillDown":{"type":"boolean"},"instanceType":{"type":"string"},"id":{"type":"string"}}},"DateCost":{"type":"object","properties":{"date":{"type":"string"},"cost":{"type":"number"}}},"DateData":{"type":"object","properties":{"date":{"type":"string"},"cost":{"type":"number"},"count":{"type":"integer","format":"int64"},"costDifference":{"type":"number"},"countDifference":{"type":"integer","format":"int64"}}},"DiscoveredAppDto":{"type":"object","properties":{"name":{"type":"string"},"icon":{"type":"string"},"sourceInfoList":{"type":"array","items":{"$ref":"#/components/schemas/SourceInfDto"}}}},"DiskType":{"type":"object","properties":{"name":{"type":"string"},"diskSize":{"type":"string"},"description":{"type":"string"},"zones":{"type":"array","items":{"$ref":"#/components/schemas/ZoneInfo"}}}},"DrillDownHeader":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"dbName":{"type":"string"},"sortable":{"type":"boolean"},"columnType":{"$ref":"#/components/schemas/ColumnType"}}},"DrillDownResponse":{"type":"object","properties":{"headers":{"type":"array","items":{"$ref":"#/components/schemas/DrillDownHeader"}},"data":{"allOf":[{"$ref":"#/components/schemas/PageEnvelope"},{"type":"object","properties":{"content":{"type":"array","items":{}}}}]}}},"DynamicUI":{"type":"object","properties":{"widgets":{"type":"array","items":{"$ref":"#/components/schemas/WidgetFacade"}}}},"ErrorResponse":{"type":"object","description":"The error shape for every non-2xx response, from the gateway and from the services alike.","required":["error"],"properties":{"error":{"type":"string","description":"A stable, human-readable sentence. Fixed per status rather than derived from the failure, so it never narrates internal state to an unauthenticated caller.","example":"Missing, malformed or expired API token."},"stackTrace":{"type":"array","items":{"type":"string"},"description":"Always empty. Present because the shared DTO carries the field; nothing is ever put in it.","example":[]}}},"Evidence":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"name":{"type":"string"},"originalName":{"type":"string"},"type":{"type":"string"},"byteLength":{"type":"integer","format":"int64"}}},"FeatureUtilizationDto":{"type":"object","properties":{"service":{"type":"string"},"description":{"type":"string"},"utilization":{"type":"number","format":"double"}}},"FetcherCloudReport":{"type":"object","properties":{"instance":{"type":"string"},"icon":{"type":"string"},"displayName":{"type":"string"},"parentId":{"type":"integer","format":"int64"},"couponsExists":{"type":"boolean"},"regionPieExists":{"type":"boolean"},"totalSpend":{"type":"number"},"overPayment":{"type":"number"},"couponBalance":{"type":"number"},"graph":{"$ref":"#/components/schemas/GraphicDto"},"costBudget":{"$ref":"#/components/schemas/BudgetDto"},"couponBudget":{"$ref":"#/components/schemas/BudgetDto"},"regionPie":{"$ref":"#/components/schemas/PieDto"},"servicePie":{"$ref":"#/components/schemas/PieDto"},"details":{"type":"array","items":{"$ref":"#/components/schemas/CostRow"}},"connectionId":{"type":"integer","format":"int32"}}},"FetcherInfo":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"name":{"type":"string"},"instance":{"type":"string"},"displayName":{"type":"string"},"icon":{"type":"string"},"title":{"type":"string"},"parentId":{"type":"integer","format":"int64"},"parentInstance":{"type":"string"},"hasChildren":{"type":"boolean"}}},"FetcherTableDto":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"instance":{"type":"string"},"name":{"type":"string"},"displayName":{"type":"string"},"icon":{"type":"string"},"cost":{"type":"number"},"overPayment":{"type":"number"},"connected":{"type":"boolean"},"connectionStatus":{"type":"string"},"connectionId":{"type":"integer","format":"int32"},"lastDate":{"type":"string"},"lastSpend":{"type":"number"},"averageDailyCost":{"type":"number"},"budget":{"type":"number"},"parentId":{"type":"integer","format":"int64"}}},"FinanceReport":{"type":"object","properties":{"appName":{"type":"string"},"icon":{"type":"string"},"invoice":{"$ref":"#/components/schemas/InvoiceDto"},"invoices":{"type":"array","items":{"$ref":"#/components/schemas/InvoiceDto"}}}},"GithubData":{"type":"object","properties":{"payload":{"type":"object","description":"Arbitrary provider-specific JSON"},"eventName":{"type":"string"},"sha":{"type":"string"},"ref":{"type":"string"},"workflow":{"type":"string"},"action":{"type":"string"},"actor":{"type":"string"},"job":{"type":"string"},"runNumber":{"type":"integer","format":"int64"},"runId":{"type":"integer","format":"int64"},"apiUrl":{"type":"string"},"serverUrl":{"type":"string"},"graphqlUrl":{"type":"string"}}},"GraphAnomalyValue":{"type":"object","properties":{"axisX":{"type":"integer","format":"int32"},"axisY":{"type":"number"},"date":{"type":"string"},"dateTo":{"type":"string"},"anomaly":{"type":"boolean"},"overPayment":{"type":"number"},"budget":{"type":"number"}}},"GraphValue":{"type":"object","properties":{"date":{"type":"integer","format":"int64"},"axisY":{"type":"number","format":"double"}}},"GraphicDto":{"type":"object","properties":{"range":{"type":"integer","format":"int32"},"budget":{"type":"number"},"axisYMax":{"type":"number"},"axisYMin":{"type":"number"},"measurementPeriod":{"type":"integer","format":"int64"},"graphData":{"type":"array","items":{"$ref":"#/components/schemas/GraphAnomalyValue"}},"budgetGraphData":{"type":"array","items":{"$ref":"#/components/schemas/GraphValue"}},"predictionGraphData":{"type":"array","items":{"$ref":"#/components/schemas/GraphValue"}}}},"InvoiceDto":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"product":{"type":"string"},"title":{"type":"string"},"firstBillingDate":{"type":"string"},"invoiceDate":{"type":"string"},"paymentPlan":{"type":"string"},"billingPeriod":{"type":"string"},"charges":{"type":"number"},"chargesWithoutVat":{"type":"number"},"VAT":{"type":"number"},"evidenceId":{"type":"integer","format":"int64"},"evidence":{"$ref":"#/components/schemas/Evidence"},"isUseForCost":{"type":"boolean"},"currency":{"type":"string","description":"ISO 4217 currency code"},"fromFetcher":{"type":"boolean"}}},"OS":{"type":"object","properties":{"type":{"type":"string"},"subType":{"type":"string"},"withHighAvailability":{"type":"boolean"},"withSQL":{"type":"boolean"},"withWebServer":{"type":"boolean"},"isEnterprise":{"type":"boolean"},"withSQLEnt":{"type":"boolean"},"withBizTalk":{"type":"boolean"},"originalName":{"type":"string"}}},"PageEnvelope":{"type":"object","description":"Spring page envelope. `content` carries the rows; the remaining fields describe the slice.","properties":{"content":{"type":"array","items":{}},"totalElements":{"type":"integer","format":"int64"},"totalPages":{"type":"integer","format":"int32"},"number":{"type":"integer","format":"int32","description":"Zero-based index of this page."},"size":{"type":"integer","format":"int32"},"numberOfElements":{"type":"integer","format":"int32"},"first":{"type":"boolean"},"last":{"type":"boolean"},"empty":{"type":"boolean"}}},"PersonUsageDetailUtilizationDto":{"type":"object","properties":{"email":{"type":"string"},"name":{"type":"string"},"utilization":{"type":"number","format":"double"},"licenses":{"type":"array","items":{"type":"string"}}}},"PieDto":{"type":"object","properties":{"totalSpend":{"type":"number"},"data":{"type":"array","items":{"$ref":"#/components/schemas/PieRow"}}}},"PieRow":{"type":"object","properties":{"name":{"type":"string"},"percent":{"type":"number"},"cost":{"type":"number"}}},"RegionDto":{"type":"object","properties":{"continentName":{"type":"string"},"countryName":{"type":"string"},"city":{"type":"string"},"name":{"type":"string"}}},"RenewalGraphDayRequest":{"type":"object","properties":{"currentDate":{"type":"string"},"startDate":{"type":"string"},"startDates":{"type":"array","items":{"type":"string"}},"appNames":{"type":"array","items":{"type":"string"}}}},"RenewalGraphDto":{"type":"object","properties":{"appTitle":{"type":"string"},"appName":{"type":"string"},"startBillingTime":{"type":"integer","format":"int64"},"currentBillingDate":{"type":"string"},"leftDays":{"type":"integer","format":"int32"},"utilization":{"type":"number","format":"double"},"licenseUserCount":{"type":"integer","format":"int32"},"annualCost":{"type":"number","format":"double"},"paymentPlan":{"type":"string"},"billingPeriod":{"type":"string"},"icon":{"type":"string"},"renewable":{"type":"boolean"},"virtual":{"type":"boolean"}}},"ReportFilterRequest":{"type":"object","properties":{"firstLetter":{"type":"string"},"product":{"type":"string"},"categories":{"type":"array","items":{"type":"string"}},"dateFrom":{"type":"string"},"dateTo":{"type":"string"}}},"ScannerType":{"type":"string","enum":["AWS_S3","AWS_ECR","AWS_IAM","AWS_EC2","AWS_RDS","AWS_ELB","AWS_REDSHIFT","AWS_DYNAMODB","AWS_KMS","AWS_VPC","AWS_LAMBDA","AWS_ES","AWS_AUTOSCALING","AWS_CLOUDFRONT","AWS_GATEWAY","AWS_SHIELD","AWS_BEDROCK","AWS_SAGEMAKER","AWS_DAX","AWS_EFS","AWS_ACCESS_ANALYZER","AWS_MACIE","AWS_ACM","AWS_SECRETS_MANAGER","AWS_CLOUDWATCH","AWS_KINESIS","AWS_WAF","AWS_CONFIG","AWS_SSM","AWS_NEPTUNE","AWS_DOCDB","AWS_GUARDDUTY","AWS_SNS","AWS_SQS","AWS_MQ","AWS_ELASTICACHE","AWS_NETWORK_FIREWALL","AWS_EKS","AWS_CLOUDFORMATION","AWS_SECURITY_HUB","AWS_ORGANIZATIONS","AWS_CLOUDTRAIL","AWS_CLOUDWATCH_LOGS","AWS_ROUTE53","AWS_RTM","AWS_EMR","AWS_MSK","AWS_ELASTIC_BEANSTALK","AWS_BUDGETS","AWS_ECS","AWS_BACKUP","AWS_DMS","AWS_SES","AWS_GLUE","AWS_WORKSPACES","AWS_APPMESH","AWS_CLOUDWATCH_EVENTS","AWS_COMPUTE_OPTIMIZER","AWS_INSPECTOR","AWS_STORAGE_GATEWAY","AWS_TRUSTED_ADVISOR","AWS_ATHENA","AWS_COST_EXPLORER","AWS_FIREHOSE","AWS_INSPECTOR2","AWS_TRANSFER","AWS_WELL_ARCHITECTED","AWS_APPFLOW","AWS_COMPREHEND","AWS_DLM","AWS_FSX","AWS_HEALTH","AWS_RESOURCE_GROUP","AWS_ROUTE53_DOMAINS","AWS_SERVICE_QUOTAS","AWS_SUPPORT","AWS_WORKDOCS","AWS_XRAY","GCP_COMPUTEENGINE","GCP_KUBERNETES","GCP_BIG_QUERY","GCP_CERTIFICATE_MANAGER","GCP_CLOUD_STORAGE","GCP_VPC","GCP_LOAD_BALANCER","GCP_SQL","AZURE_MONITOR","AZURE_VIRTUAL_MACHINES","AZURE_ACTIVITY_LOG","AZURE_SQL","AZURE_COSMOSDB","AZURE_MYSQL","AZURE_POSTGRESQL","AZURE_STORAGE","AZURE_AKS","AZURE_SECURITY_CENTER","AZURE_REDIS_CACHE","AZURE_NETWORK","AZURE_APPLICATION_GATEWAY","AZURE_FRONT_DOOR","AZURE_NAT_GATEWAY","AZURE_DNS","AZURE_DNS_RESOLVER_POLICY","AZURE_APP_SERVICE","AZURE_FUNCTIONS","AZURE_ENTRA_ID","AZURE_KEY_VAULT","AZURE_ACCESS_CONTROL","AZURE_ADVISOR","AZURE_RECOVERY_SERVICES","AZURE_SERVICE_BUS","AZURE_LOGIC_APPS","AZURE_DATABRICKS","AZURE_CONTAINER_REGISTRY","AZURE_CONTAINER_APPS","AZURE_API_MANAGEMENT","AZURE_MACHINE_LEARNING","AZURE_AI_SERVICES","AZURE_SUBSCRIPTIONS","AZURE_LOCKS"]},"ScenarioDto":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"name":{"type":"string"},"tasks":{"type":"array","items":{"$ref":"#/components/schemas/ScenarioTaskDto"}},"teams":{"type":"array","items":{"$ref":"#/components/schemas/Team"}},"updatedAt":{"type":"string","format":"date-time"},"createdAt":{"type":"string","format":"date-time"},"defaultScenario":{"type":"boolean"}}},"ScenarioTaskDto":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"position":{"type":"integer","format":"int32"},"type":{"$ref":"#/components/schemas/ScenarioTaskType"},"appInfo":{"$ref":"#/components/schemas/AppInfo"},"data":{"type":"string"},"updatedAt":{"type":"string","format":"date-time"}}},"ScenarioTaskType":{"type":"string","enum":["CREATE_APP_USER","SEND_EMAIL"]},"ServiceInfo":{"type":"object","properties":{"name":{"$ref":"#/components/schemas/ScannerType"},"title":{"type":"string"}}},"SourceInfDto":{"type":"object","properties":{"sourceIcon":{"type":"string"},"sourceInstances":{"type":"array","items":{}}}},"SpendExplorerReport":{"type":"object","properties":{"fetcherInfo":{"$ref":"#/components/schemas/FetcherInfo"},"accountCosts":{"$ref":"#/components/schemas/AccountCosts"},"tableData":{"type":"array","items":{"$ref":"#/components/schemas/TableRow"}}}},"TableRow":{"type":"object","properties":{"serviceInfo":{"$ref":"#/components/schemas/ServiceInfo"},"data":{"$ref":"#/components/schemas/ThreeDaysCostCount"}}},"Team":{"type":"object","properties":{"name":{"type":"string"},"path":{"type":"string"}}},"ThreeDaysCostCount":{"type":"object","properties":{"first":{"$ref":"#/components/schemas/DateData"},"second":{"$ref":"#/components/schemas/DateData"},"third":{"$ref":"#/components/schemas/DateData"}}},"Type":{"type":"string","enum":["SPOT","ON_DEMAND","ALL_UPFRONT_1","PARTIAL_UPFRONT_1","NO_UPFRONT_1","ALL_UPFRONT_2","PARTIAL_UPFRONT_2","NO_UPFRONT_2","ALL_UPFRONT_3","PARTIAL_UPFRONT_3","NO_UPFRONT_3"]},"UsageDetailDto":{"type":"object","properties":{"utilization":{"type":"string"},"lastTime":{"type":"integer","format":"int64"},"userLicenses":{"type":"array","items":{}},"userBillingPeriods":{"type":"array","items":{}},"sourceInf":{"type":"array","items":{"$ref":"#/components/schemas/SourceInfDto"}},"days":{"type":"integer","format":"int32"},"period":{"type":"integer","format":"int32"}}},"UserUtilizationDetailDto":{"type":"object","properties":{"applicationUsageDataDto":{"$ref":"#/components/schemas/ApplicationUsageDataDto"},"usageDetailDto":{"$ref":"#/components/schemas/UsageDetailDto"}}},"UserUtilizationDto":{"type":"object","properties":{"accountUsageDataDto":{"$ref":"#/components/schemas/AccountUsageDataDto"},"licenses":{"type":"integer","format":"int32"},"underUtilizedLicenses":{"type":"integer","format":"int32"},"utilization":{"type":"number","format":"double"},"lastTime":{"type":"integer","format":"int64"},"orgUnitPath":{"type":"string"},"orgUnitId":{"type":"string"}}},"VirtualMachine":{"type":"object","properties":{"id":{"type":"string"},"cloud":{"type":"string"},"name":{"type":"string"},"diskType":{"$ref":"#/components/schemas/DiskType"},"memoryGB":{"type":"number","format":"float"},"cpu":{"type":"integer","format":"int32"},"gpu":{"type":"integer","format":"int32"},"totalGpu":{"type":"integer","format":"int32"},"gpuMemoryGB":{"type":"number","format":"float"},"diskSizeGB":{"type":"number","format":"float"},"transferQuotaMonthlyGB":{"type":"number","format":"float"},"price":{"type":"number"},"monthlyPrice":{"type":"number"},"yearPrice":{"type":"number"}}},"VirtualMachinePublicApiDto":{"type":"object","properties":{"virtualMachine":{"$ref":"#/components/schemas/VirtualMachine"},"costs":{"type":"array","items":{"$ref":"#/components/schemas/Cost"}}}},"WidgetFacade":{"type":"object","properties":{"key":{"type":"string"},"widgetGroup":{"$ref":"#/components/schemas/WidgetGroup"}}},"WidgetGroup":{"type":"object","properties":{"label":{"type":"string"},"widgets":{"type":"array","items":{"$ref":"#/components/schemas/AtomicWidget"}}}},"WidgetType":{"type":"string","enum":["INTEGER_INPUT","FLOAT_INPUT","DROPDOWN","STRING_INPUT","EDIT","PASSWORD","JSON"]},"ZoneInfo":{"type":"object","properties":{"name":{"type":"string"},"region":{"type":"string"},"status":{"type":"string"}}}}}}