Neon Consumption API
Query consumption metrics for projects and accounts. Available for Scale, Business, and Enterprise plan accounts.
Neon Consumption API is one of 13 APIs that Neon publishes on the APIs.io network, described by a machine-readable OpenAPI specification.
Tagged areas include Consumption. The published artifact set on APIs.io includes an OpenAPI specification and API documentation.
This API exposes 2 operations across 2 paths, and defines 4 schemas. It is described by OpenAPI 3.1.0, at version 2.0.
Requests are made against a single base URL, https://console.neon.tech/api/v2.
Metadata
The identity and technical contract details declared by the specification.
Authentication & Security 1
Neon Consumption API declares
1 security scheme
for authenticating requests.
It accepts HTTP bearer tokens (API Key) (bearerAuth).
By default, every request must be authenticated.
bearerAuth— Neon API keys are used to authenticate requests. Include the API key in the Authorization header as a Bearer token.
Paths & Operations 2
Across 2 paths, the API surfaces 2 operations — 2 GET. Each is listed below with its method, path, parameters, and response codes.
Query consumption metrics for projects and accounts. Available for Scale, Business, and Enterprise plan accounts.
Schemas 4
The contract defines 4 schemas that model the data the API accepts and returns. The most detailed are ConsumptionMetric (6 properties), Pagination (4 properties), ConsumptionHistoryPerProject (2 properties), ConsumptionHistoryPerAccount (1 property). Each schema is shown below with its type and property counts.
Specification
The full machine-readable OpenAPI contract behind this narrative.
Source
More from Neon 12
Other APIs Neon publishes across the network.