REST API#

Reply CMP exposes a REST API for integrations such as CI/CD pipelines, BI tools and scripts. API integrations authenticate as the tenant service account and can call the operations listed in this reference, with the Reply CMP roles assigned to the service account.

  • Base URL: https://apis.welkincmp.com

  • Authentication: Authorization: Bearer <access_token> of the tenant service account

  • Format: JSON (application/json), UTF-8

  • OpenAPI document: reply-cmp-openapi.json (OpenAPI 3.0)

Area

Operations

Discovery

Resources, Inventory refresh

FinOps

Costs, Cost spike alerts, Allocation groups, Budgets, Allocation coverage, Optimization score, Scheduled reports, Tagging

Automation

Policies

Monitoring

Metric queries, Dashboards, Alert rules

Provisioning

Deployments, Deployment resources, Module registry

Tenant

Tenant, Quotas and rate limits, Cloud connections, Users, Roles and permissions, Webhooks

Data models

Request and response bodies


Authenticate#

  1. In Tenant → Service account, enable API access, assign the roles the integration needs and create a client secret. See Tenant Service Account.

  2. Request an access token with the OAuth 2.0 client credentials flow, using the client ID, token endpoint and scope shown on that page.

  3. Send the token in the Authorization header of every request:

curl -s -X POST "https://apis.welkincmp.com/finops/cost/query" \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"type": "Actual", "timeFrame": "PreviousMonth", "dataset": {"select": ["Provider"], "groupBy": ["Provider"]}}'

An access token is valid for about one hour. Reuse it until it expires instead of requesting a token for every call.


Permissions#

Each operation lists the Reply CMP permissions it requires, for example FinOps.Cost/Read. The service account needs a role that grants all of them in your tenant; see Roles & Permissions.

This reference contains only operations the service account can call. It does not list:

  • operations of interactive users, such as the CMP Agent chat and the AI report designer;

  • user invitation and removal, role and assignment management, and tenant deletion;

  • guardrail changes and overrides, deployment recovery and module version approval;

  • callbacks of provisioning runners, and portal-only operations such as personal dashboards.

The portal uses more operations than this reference lists. Operations that are not listed are not part of the public API and can change without notice.


Requests and responses#

  • Property names are camelCase. Enumerations are strings, for example "timeFrame": "PreviousMonth".

  • Identifiers are GUIDs. Dates use YYYY-MM-DD; timestamps use ISO 8601 in UTC.

  • Responses can gain new properties. Ignore properties your integration does not know.

  • Requests are scoped to the tenant of the service account. A resource of another tenant is reported as not found.

Errors use the problem details format (application/problem+json, RFC 9457). The requestId and traceId properties identify the request when you contact support. Validation errors (400) list the invalid fields in errors.

Status

Meaning

400

The request is invalid; errors describes each invalid field

401

The token is missing, expired or not from the tenant service account, or API access is disabled

403

The roles of the service account do not include a required permission

404

The resource does not exist in your tenant

409

The request conflicts with the current state, for example an apply in progress

429

The rate limit is exhausted; retry after the Retry-After seconds

5xx

Temporary failure; retry with exponential backoff


Filtering, sorting and paging#

List operations accept the Filters, Sorts, Page and PageSize query parameters and return page, pageSize, totalPages, totalCount and data.

Parameter

Syntax

Example

Filters

Comma-separated conditions, all of which must match

Filters=name@=finops,isActive==true

Sorts

Comma-separated fields; - for descending order

Sorts=-lastExecuted,name

Page

Page number, starting at 1

Page=2

PageSize

Items per page: 25 by default, at most 100

PageSize=100

Operator

Meaning

==, !=

Equal, not equal

>, <, >=, <=

Greater than, less than, or equal

@=, !@=

Contains, does not contain

_=, !_=

Starts with, does not start with

Use | for alternatives: Filters=(name|type)@=sql matches either field and Filters=provider==Azure|AWS either value. Field names are the camelCase property names of the returned items; the examples above apply to scheduled reports. Fields that do not support filtering or sorting are ignored.


Rate limits#

Requests of the service account count against the tenant rate limit for service account requests. Over the limit, the API returns 429 with a Retry-After header. A tenant administrator can read the limits in Tenant Quotas.


OpenAPI document#

The OpenAPI document describes the operations of this reference, their permissions (x-cmp-permissions) and their data models. Import it into an API client such as Postman or Bruno, or generate a client library from it. It is also published at https://docs.welkincmp.com/_static/api/reply-cmp-openapi.json.


MCP server#

AI agents can use the Reply CMP MCP server at https://apis.welkincmp.com/mcp with the same service account token. Its tools apply the same permissions and tenant rate limits (429 with Retry-After); tools that change resources still require approval by a person.