Skip to main content

API Reference

Upmetr exposes a RESTful API for managing cloud accounts, monitors, incidents, costs, and more. All endpoints are available under /api/v1.

Base URL

Authentication

All API requests require a Bearer token in the Authorization header:

Getting a Token

Authenticate via the login endpoint:
Response:

Refreshing Tokens

Access tokens expire after 30 minutes. Use the refresh endpoint:

Rate Limits

When rate limited, the API returns 429 Too Many Requests with a Retry-After header.

Error Format

All errors follow a consistent format:

HTTP Status Codes

Organization Context

All API calls are scoped to the current organization of the authenticated user. The organization is determined by the JWT token — you don’t need to pass an org_id parameter. If a user belongs to multiple organizations, they select the active org during login via the select-org endpoint.

Interactive Documentation

Upmetr also provides interactive API documentation:
  • Swagger UI — https://app.upmetr.com/docs
  • ReDoc — https://app.upmetr.com/redoc
  • OpenAPI Spec — https://app.upmetr.com/openapi.json

Endpoint Categories

Browse the full endpoint reference in the sidebar.