NodeRings Inc. Usage Report Service API
The UsageReportService API from NodeRings Inc. — 5 operation(s) for usagereportservice.
The UsageReportService API from NodeRings Inc. — 5 operation(s) for usagereportservice.
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/noderings-com:noderings-com-usagereportservice-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: NodeRings Usage Report Service API
version: '1.0'
contact:
name: NodeRings
url: https://noderings.com
servers:
- url: https://api.noderings.com
security:
- BearerAuth: []
OrgIDHeader: []
tags:
- name: UsageReportService
paths:
/v1/usage/record:
post:
summary: Record a single usage event (from Prometheus or other monitoring systems)
operationId: UsageReportService_RecordUsage
responses:
'200':
description: A successful response.
content:
application/json:
schema:
$ref: '#/components/schemas/v1RecordUsageResponse'
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/v1RecordUsageRequest'
required: true
tags:
- UsageReportService
/v1/usage/record:batch:
post:
summary: Batch record multiple usage events (for bulk ingestion)
operationId: UsageReportService_BatchRecordUsage
responses:
'200':
description: A successful response.
content:
application/json:
schema:
$ref: '#/components/schemas/v1BatchRecordUsageResponse'
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/v1BatchRecordUsageRequest'
required: true
tags:
- UsageReportService
/v1/usage/records:
get:
summary: List usage records with filters
operationId: UsageReportService_ListUsageRecords
responses:
'200':
description: A successful response.
content:
application/json:
schema:
$ref: '#/components/schemas/v1ListUsageRecordsResponse'
parameters:
- name: subscriptionId
description: Filters
in: query
required: false
schema:
type: string
- name: metricId
in: query
required: false
schema:
type: string
- name: usageRecordStatus
in: query
required: false
schema:
type: string
enum:
- USAGE_RECORD_STATUS_UNSPECIFIED
- USAGE_RECORD_STATUS_PENDING
- USAGE_RECORD_STATUS_PROCESSED
- USAGE_RECORD_STATUS_BILLED
- USAGE_RECORD_STATUS_FAILED
default: USAGE_RECORD_STATUS_UNSPECIFIED
- name: startTime
description: Time range
in: query
required: false
schema:
type: string
format: date-time
- name: endTime
in: query
required: false
schema:
type: string
format: date-time
- name: page
description: Pagination
in: query
required: false
schema:
type: integer
format: int32
- name: pageSize
in: query
required: false
schema:
type: integer
format: int32
tags:
- UsageReportService
/v1/usage/records/{id}:
get:
summary: Get a specific usage record by ID
operationId: UsageReportService_GetUsageRecord
responses:
'200':
description: A successful response.
content:
application/json:
schema:
$ref: '#/components/schemas/v1GetUsageRecordResponse'
parameters:
- name: id
in: path
required: true
schema:
type: string
tags:
- UsageReportService
/v1/usage/report:
get:
summary: Get aggregated usage report for a billing period
operationId: UsageReportService_GetUsageReport
responses:
'200':
description: A successful response.
content:
application/json:
schema:
$ref: '#/components/schemas/v1GetUsageReportResponse'
parameters:
- name: subscriptionId
description: Required filters
in: query
required: false
schema:
type: string
- name: metricId
description: Optional filters
in: query
required: false
schema:
type: string
- name: billingPeriodStart
description: Billing period (if not provided, uses current billing period)
in: query
required: false
schema:
type: string
format: date-time
- name: billingPeriodEnd
in: query
required: false
schema:
type: string
format: date-time
- name: includeBilled
description: 'Options
Include already billed records'
in: query
required: false
schema:
type: boolean
tags:
- UsageReportService
components:
schemas:
v1UsageAggregate:
type: object
properties:
subscriptionId:
type: string
metricId:
type: string
metricName:
type: string
metricCode:
type: string
aggregationType:
$ref: '#/components/schemas/v1AggregationType'
totalQuantity:
type: string
description: Decimal as string
title: Aggregated values
recordCount:
type: integer
format: int32
firstTimestamp:
type: string
format: date-time
lastTimestamp:
type: string
format: date-time
billingPeriodStart:
type: string
format: date-time
title: Billing period
billingPeriodEnd:
type: string
format: date-time
v1RecordUsageResponse:
type: object
properties:
usageRecord:
$ref: '#/components/schemas/v1UsageRecord'
isDuplicate:
type: boolean
title: True if event_id already existed
v1GetUsageRecordResponse:
type: object
properties:
usageRecord:
$ref: '#/components/schemas/v1UsageRecord'
v1Timestamps:
type: object
properties:
createTime:
type: string
format: date-time
updateTime:
type: string
format: date-time
title: Object details
v1BatchRecordUsageRequest:
type: object
properties:
records:
type: array
items:
$ref: '#/components/schemas/v1RecordUsageRequest'
v1BatchRecordUsageResponse:
type: object
properties:
usageRecords:
type: array
items:
$ref: '#/components/schemas/v1UsageRecord'
createdCount:
type: integer
format: int32
duplicateCount:
type: integer
format: int32
failedCount:
type: integer
format: int32
errorMessages:
type: array
items:
type: string
v1ListUsageRecordsResponse:
type: object
properties:
usageRecords:
type: array
items:
$ref: '#/components/schemas/v1UsageRecord'
totalCount:
type: integer
format: int32
protov1Status:
type: string
enum:
- STATUS_UNSPECIFIED
- STATUS_ACTIVE
- STATUS_INACTIVE
- STATUS_BANNED
- STATUS_SOFT_DELETED
default: STATUS_UNSPECIFIED
title: Status of the object
v1UsageRecord:
type: object
properties:
id:
type: string
title: Fields
quantity:
type: string
description: Stored as string for decimal precision
title: Usage data
timestamp:
type: string
format: date-time
billingPeriodStart:
type: string
format: date-time
billingPeriodEnd:
type: string
format: date-time
eventId:
type: string
description: For deduplication
title: Usage metadata
properties:
type: object
title: Additional metadata (region, instance_id, etc.)
usageRecordStatus:
$ref: '#/components/schemas/v1UsageRecordStatus'
errorMessage:
type: string
processedAt:
type: string
format: date-time
externalId:
type: string
title: External integration
subscriptionId:
type: string
title: Relations
metricId:
type: string
invoiceId:
type: string
invoiceLineId:
type: string
subscriptionName:
type: string
title: Relation details (populated in responses)
metricName:
type: string
metricCode:
type: string
metadata:
type: object
title: Metadata
status:
$ref: '#/components/schemas/protov1Status'
timestamps:
$ref: '#/components/schemas/v1Timestamps'
v1GetUsageReportResponse:
type: object
properties:
aggregates:
type: array
items:
$ref: '#/components/schemas/v1UsageAggregate'
billingPeriodStart:
type: string
format: date-time
billingPeriodEnd:
type: string
format: date-time
totalRecords:
type: integer
format: int32
v1RecordUsageRequest:
type: object
properties:
subscriptionId:
type: string
title: Subscription reference
metricId:
type: string
title: Metric reference (either metric_id or metric_code must be provided)
metricCode:
type: string
quantity:
type: string
description: Decimal as string
title: Usage data
timestamp:
type: string
format: date-time
eventId:
type: string
description: For idempotent writes
title: Deduplication and metadata
properties:
type: object
title: Additional metadata (region, instance_id, etc.)
externalId:
type: string
title: External integration
v1AggregationType:
type: string
enum:
- AGGREGATION_TYPE_UNSPECIFIED
- AGGREGATION_TYPE_SUM
- AGGREGATION_TYPE_MAX
- AGGREGATION_TYPE_MIN
- AGGREGATION_TYPE_AVG
- AGGREGATION_TYPE_COUNT
- AGGREGATION_TYPE_LAST_DURING_PERIOD
default: AGGREGATION_TYPE_UNSPECIFIED
v1UsageRecordStatus:
type: string
enum:
- USAGE_RECORD_STATUS_UNSPECIFIED
- USAGE_RECORD_STATUS_PENDING
- USAGE_RECORD_STATUS_PROCESSED
- USAGE_RECORD_STATUS_BILLED
- USAGE_RECORD_STATUS_FAILED
default: USAGE_RECORD_STATUS_UNSPECIFIED
securitySchemes:
BearerAuth:
type: apiKey
description: Bearer token
name: Authorization
in: header
OrgIDHeader:
type: apiKey
description: Tenant or organization identifier
name: X-Organization-ID
in: header