Eon.io Billing API
Access billing and usage metering information.
Access billing and usage metering information.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/eon.io:eon.io-billing-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Reference Billing API
version: 1.0.0
description: Access billing and usage metering information.
servers:
- url: https://%7Baccount-domain%7D.console.eon.io/api
description: https://{account-domain}.console.eon.io/api
tags:
- name: Billing
description: Access billing and usage metering information.
paths:
/v1/cost-data:
post:
operationId: billing_queryCostData
summary: Query Cost Data
description: 'Retrieves cost and usage data for the given time frame.
Use Query Cost Data to analyze backup costs by cloud provider, resource type, and resource.
For details on exploring your costs visually in the Eon console, see About Cost Explorer.'
tags:
- Billing
parameters:
- name: pageSize
in: query
description: Maximum number of cost records to return in a single response.
required: false
schema:
type: integer
minimum: 1
- name: pageToken
in: query
description: 'Cursor that points to the first record of the next page of results.
Get this value from the previous response.
To preserve the results in the same order, use the same time frame, grouping, and filters in the first request as all subsequent requests.
'
required: false
schema:
type: string
responses:
'200':
description: Cost data retrieved.
content:
application/json:
schema:
$ref: '#/components/schemas/QueryCostDataResponse'
'400':
description: Invalid request.
content:
application/json:
schema:
$ref: '#/components/schemas/QueryCostDataRequestBadRequestError'
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/QueryCostDataRequest'
security:
- ApiKeyAuth: []
components:
schemas:
CostDataRecordDimensions:
type: object
properties:
cloudProvider:
$ref: '#/components/schemas/Provider'
description: Cloud provider where the costs were incurred.
resourceType:
$ref: '#/components/schemas/ResourceType'
description: Type of cloud resource that generated the costs.
resourceId:
type: string
format: uuid
description: 'Eon-assigned resource ID.
'
sourceAccountProviderId:
type: string
description: 'Cloud-provider-assigned account ID for the source account.
'
description: 'Grouping dimensions that categorize this cost record.
Contains metadata about the cloud provider, resource type, resource ID, and source account that generated these costs.
'
title: CostDataRecordDimensions
CostDataFilters:
type: object
properties:
sourceAccountProviderId:
$ref: '#/components/schemas/SourceAccountProviderIdFilters'
description: 'Filters for the cloud-provider-assigned account IDs.
'
cloudProvider:
$ref: '#/components/schemas/CloudProviderFilters'
description: 'Filters for cloud providers.
'
resourceType:
$ref: '#/components/schemas/ResourceTypeFilters'
description: 'Filters for specific resource types.
'
resourceId:
$ref: '#/components/schemas/IdFilters'
description: 'Filters for Eon-assigned resource IDs.
'
tagKeys:
$ref: '#/components/schemas/TagKeysFilters'
description: 'Filters for resource tag keys.
'
tagKeyValues:
$ref: '#/components/schemas/TagKeyValuesFilters'
description: 'Filters for resource tag key-value pairs.
'
title: CostDataFilters
SourceAccountProviderIdFilters:
type: object
properties:
in:
type: array
items:
type: string
description: Matches if any value in this list equals `sourceAccountProviderId`.
notIn:
type: array
items:
type: string
description: Matches if none of the values in this list equal `sourceAccountProviderId`.
title: SourceAccountProviderIdFilters
CostDataRecordCost:
type: object
properties:
meteringDimension:
$ref: '#/components/schemas/MeteringDimension'
cost:
$ref: '#/components/schemas/Cost'
usage:
$ref: '#/components/schemas/Usage'
required:
- meteringDimension
- cost
- usage
description: 'Cost and usage breakdown for a specific billable usage type.
'
title: CostDataRecordCost
CostGranularity:
type: string
enum:
- HOURLY
- DAILY
- MONTHLY
- TOTAL
default: MONTHLY
description: Time granularity for aggregating cost data.
title: CostGranularity
ResourceTypeFilters:
type: object
properties:
in:
type: array
items:
$ref: '#/components/schemas/ResourceType'
description: Matches if any value in this list equals `resourceType`.
notIn:
type: array
items:
$ref: '#/components/schemas/ResourceType'
description: Matches if no value in this list equals `resourceType`.
title: ResourceTypeFilters
UsageUnit:
type: string
enum:
- BYTE_MONTHS
- BYTES
- UNSPECIFIED
- OBJECTS
default: BYTE_MONTHS
description: 'Whether usage is returned in byte-months, raw bytes, operations, objects, or object-months for the specified `timeFrame`.
`UNSPECIFIED` is supported only in responses.
'
title: UsageUnit
CostDataRecord:
type: object
properties:
recordTimeFrame:
$ref: '#/components/schemas/TimeFrame'
description: 'Time period covered by the cost record.
Aligns with the requested granularity.
'
resourceCount:
type: integer
minimum: 0
description: 'Number of unique resources that contributed to costs in this record''s time frame.
'
dimensions:
$ref: '#/components/schemas/CostDataRecordDimensions'
description: 'Grouping dimensions for the cost record.
'
costs:
type: array
items:
$ref: '#/components/schemas/CostDataRecordCost'
description: 'Array of cost breakdowns by metering dimension.
'
required:
- recordTimeFrame
- costs
description: Total cost for this metering dimension in the specified currency unit.
title: CostDataRecord
MeteringDimension:
type: string
enum:
- AWS_EC2_METERING_DIMENSION
- AWS_EC2_NATIVE_METERING_DIMENSION
- AWS_RDS_METERING_DIMENSION
- AWS_S3_METERING_DIMENSION
- AWS_DYNAMO_DB_METERING_DIMENSION
- AWS_EKS_METERING_DIMENSION
- AZURE_VIRTUAL_MACHINE_METERING_DIMENSION
- AZURE_STORAGE_ACCOUNT_METERING_DIMENSION
- AZURE_SQL_VIRTUAL_MACHINE_METERING_DIMENSION
- AZURE_SQL_DATABASE_METERING_DIMENSION
- AZURE_POSTGRESQL_METERING_DIMENSION
- GCP_VM_INSTANCE_METERING_DIMENSION
- GCP_CLOUD_STORAGE_METERING_DIMENSION
- GCP_CLOUD_SQL_POSTGRES_SQL_METERING_DIMENSION
- GCP_CLOUD_SQL_MYSQL_METERING_DIMENSION
- GCP_CLOUD_SQL_SQL_SERVER_METERING_DIMENSION
- GCP_BIG_QUERY_METERING_DIMENSION
- MONGO_ATLAS_CLUSTER_METERING_DIMENSION
- DATA_TRANSFER_METERING_DIMENSION
- CLASSIFICATION_METERING_DIMENSION
- AWS_EC2_TO_AZURE_VAULT_METERING_DIMENSION
- AWS_S3_TO_AZURE_VAULT_METERING_DIMENSION
- AWS_RDS_TO_AZURE_VAULT_METERING_DIMENSION
- AWS_DYNAMO_DB_TO_AZURE_VAULT_METERING_DIMENSION
- AWS_EKS_TO_AZURE_VAULT_METERING_DIMENSION
- AZURE_VIRTUAL_MACHINE_TO_AWS_VAULT_METERING_DIMENSION
- AZURE_STORAGE_ACCOUNT_TO_AWS_VAULT_METERING_DIMENSION
- AZURE_SQL_VIRTUAL_MACHINE_TO_AWS_VAULT_METERING_DIMENSION
- GCP_VM_INSTANCE_TO_AZURE_VAULT_METERING_DIMENSION
- GCP_CLOUD_STORAGE_TO_AZURE_VAULT_METERING_DIMENSION
- AWS_EC2_TO_GCP_VAULT_METERING_DIMENSION
- AWS_S3_TO_GCP_VAULT_METERING_DIMENSION
- AWS_EKS_TO_GCP_VAULT_METERING_DIMENSION
- AZURE_VIRTUAL_MACHINE_TO_GCP_VAULT_METERING_DIMENSION
- AZURE_STORAGE_ACCOUNT_TO_GCP_VAULT_METERING_DIMENSION
- GCP_VM_INSTANCE_TO_AWS_VAULT_METERING_DIMENSION
- GCP_CLOUD_STORAGE_TO_AWS_VAULT_METERING_DIMENSION
- STORAGE_GATEWAY_METERING_DIMENSION
- RANSOMWARE_PROTECTED_STORAGE_METERING_DIMENSION
description: 'Type of resource usage being metered and billed across different cloud providers.
Each dimension represents a specific billable resource type, such as compute instances, storage volumes, database services, or data transfer.
Used to categorize costs by service type for detailed analysis and chargeback reporting.
'
title: MeteringDimension
TimeFrame:
type: object
properties:
startTime:
type: string
format: date-time
description: 'Start time for the cost data query in ISO 8601 format.
Must be at least 24 hours before end time.
'
endTime:
type: string
format: date-time
description: 'End time for the cost data query in ISO 8601 format.
'
required:
- startTime
- endTime
title: TimeFrame
Usage:
type: object
properties:
amount:
type: number
format: double
minimum: 0
description: 'Raw usage quantity that generated the cost.
'
unit:
$ref: '#/components/schemas/UsageUnit'
description: Unit of measurement for the usage amount.
required:
- amount
- unit
description: Raw usage amount and unit that generated the associated cost.
title: Usage
QueryCostDataRequest:
type: object
properties:
costUnit:
$ref: '#/components/schemas/CostUnit'
default: CREDITS
usageUnit:
$ref: '#/components/schemas/UsageUnit'
default: BYTE_MONTHS
timeFrame:
$ref: '#/components/schemas/TimeFrame'
description: 'Time range to retrieve cost data for.
'
granularity:
$ref: '#/components/schemas/CostGranularity'
default: MONTHLY
description: 'Time granularity for cost aggregation.
'
filters:
$ref: '#/components/schemas/CostDataFilters'
description: 'Filter conditions for cost data query.
If omitted, no filtering is applied.
'
groupBy:
$ref: '#/components/schemas/CostDataGroupBy'
default: SOURCE_ACCOUNT
description: 'Dimensions to group cost data by.
'
topN:
type: integer
minimum: 1
description: 'Limits the response to the top _n_ resources by total cost over `timeFrame`, and folds all other matching resources into one aggregated record per time period in `granularity`.
Use this when a resource-level query would return too many records—for example, to build an efficient top-spenders chart without requesting every resource for every period.
Applies only when grouping by `RESOURCE` or `RESOURCE_AND_VAULT`.
Otherwise, ignored.
Omit to return all matching resources.
Aggregated records have no dimensions and typically have `resourceCount` greater than 1.
'
required:
- timeFrame
title: QueryCostDataRequest
QueryCostDataResponse:
type: object
properties:
records:
type: array
items:
$ref: '#/components/schemas/CostDataRecord'
description: 'Array of cost data records matching the requested query criteria.
Each record contains cost and usage information grouped by the specified dimensions and time granularity.
'
totalCount:
type: integer
minimum: 0
description: 'Total number of cost records that matched the time frame and filter options.
'
resourceCount:
type: integer
minimum: 0
description: 'Total number of resources that incurred costs during the specified time frame.
'
nextToken:
type: string
description: 'Cursor that points to the first record of the next page of results.
Pass this value in the next request.
'
required:
- records
- totalCount
- resourceCount
title: QueryCostDataResponse
Provider:
type: string
enum:
- AWS
- AZURE
- GCP
- MONGO_ATLAS
- PROVIDER_UNSPECIFIED
description: 'Cloud provider.
`PROVIDER_UNSPECIFIED` is supported only in responses.
'
title: Provider
TagKeyValuesFilters:
type: object
properties:
containsAllOf:
type: array
items:
type: string
description: Matches if all `{key}={value}` pairs in this list are in the `tags` list.
containsAnyOf:
type: array
items:
type: string
description: Matches if any `{key}={value}` pair in this list is in the `tags` list.
containsNoneOf:
type: array
items:
type: string
description: Matches if none of the `{key}={value}` pairs in this list are in the `tags` list.
title: TagKeyValuesFilters
CostDataGroupBy:
type: string
enum:
- SOURCE_ACCOUNT
- CLOUD_PROVIDER
- RESOURCE_TYPE
- RESOURCE
- RESOURCE_AND_VAULT
default: SOURCE_ACCOUNT
description: 'Dimension to group cost data by in the response.
'
title: CostDataGroupBy
TagKeysFilters:
type: object
properties:
containsAllOf:
type: array
items:
type: string
description: Matches if all keys in this list are in the `tags` keys list.
containsAnyOf:
type: array
items:
type: string
description: Matches if any key in this list is in the `tags` keys list.
containsNoneOf:
type: array
items:
type: string
description: Matches if none of the keys in this list are in the `tags` keys list.
title: TagKeysFilters
QueryCostDataRequestBadRequestError:
type: object
properties:
error:
type: string
title: QueryCostDataRequestBadRequestError
CostUnit:
type: string
enum:
- CREDITS
- USD
- UNSPECIFIED
default: CREDITS
description: 'Currency unit for cost amounts.
Use `CREDITS` for Eon credits and `USD` for U.S. dollars.
`UNSPECIFIED` is supported only in responses.
'
title: CostUnit
IdFilters:
type: object
properties:
in:
type: array
items:
type: string
description: Matches if any string in this list equals `id`.
notIn:
type: array
items:
type: string
description: Matches if no string in this list equals `id`.
title: IdFilters
Cost:
type: object
properties:
amount:
type: number
format: double
minimum: 0
description: 'Cost amount in the specified currency unit.
1 credit is equivalent to 0.01 USD.
'
unit:
$ref: '#/components/schemas/CostUnit'
description: Currency unit.
required:
- amount
- unit
title: Cost
CloudProviderFilters:
type: object
properties:
in:
type: array
items:
$ref: '#/components/schemas/Provider'
description: Matches if any value in this list equals `cloudProvider`.
notIn:
type: array
items:
$ref: '#/components/schemas/Provider'
description: Matches if none of the values in this list equal `cloudProvider`.
title: CloudProviderFilters
ResourceType:
type: string
enum:
- AWS_EC2
- AWS_RDS
- AWS_S3
- AWS_EFS
- AWS_FSX
- AWS_EKS_NAMESPACE
- AWS_DYNAMO_DB
- AZURE_VIRTUAL_MACHINE
- AZURE_FILE_SHARE
- AZURE_STORAGE_ACCOUNT
- AZURE_DISK
- AZURE_SQL_DATABASE
- AZURE_SQL_MANAGED_INSTANCE
- AZURE_SQL_VIRTUAL_MACHINE
- AZURE_MYSQL
- AZURE_POSTGRESQL
- AZURE_COSMOSDB_MONGODB
- AZURE_COSMOSDB_NOSQL
- ATLAS_MONGODB_CLUSTER
- GCP_COMPUTE_ENGINE_INSTANCE
- GCP_CLOUD_SQL_INSTANCE
- GCP_CLOUD_STORAGE_BUCKET
- RESOURCE_TYPE_UNSPECIFIED
description: 'Resource type identifier combining cloud provider and service type.
`RESOURCE_TYPE_UNSPECIFIED` is supported only in responses.
'
title: ResourceType
securitySchemes:
ApiKeyAuth:
type: http
scheme: bearer