Skip to content

service-API for Platform

Alongside the platform-API guide, service.v2.nairon.xyz exposes a couple of control-plane reads relevant to a platform-type project, authenticated with a secret API key (nrn_sk_...) as Authorization: Bearer nrn_sk_... or x-api-key.

Terminal window
curl https://service.v2.nairon.xyz/v1/projects/PROJECT_ID/usage \
-H "Authorization: Bearer NAIRON_API_KEY"
curl https://service.v2.nairon.xyz/v1/orgs/ORG_ID/usage \
-H "Authorization: Bearer NAIRON_API_KEY"

GET /v1/projects/{projectId}/usage and GET /v1/orgs/{orgId}/usage return the same usage timeseries shown on the platform console — see Usage & billing for how the underlying rollups work. The equivalent MCP tool is get_usage.

Keys are minted and revoked from the platform console UI, not through a public service-api route — see API keys.

See the full service-api reference for every endpoint and schema.