SAP Business Technology Platform KPI API
Access to usage information for a tenant
Access to usage information for a tenant
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/sap-btp:sap-btp-kpi-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: Sap Btp KPI API
version: 2.42.0
description: 'Operations tagged KPI across 2 of this provider''s published API definitions: ai-core.yaml, sap-btp-ai-core-openapi.yml. Each path carries the servers of the definition it was published in.'
servers:
- url: https://api.ai.{region}.ml.hana.ondemand.com/v2
description: Production endpoint for SAP AI Core
variables:
region:
enum:
- prod.eu-central-1.aws
- prodeuonly.eu-central-1.aws
- prod.us-east-1.aws
- prod.ap-northeast-1.aws
- prod-ap11.ap-southeast-1.aws
- prod-ap20.australiaeast.azure
- prod.ap-southeast-2.aws
- prod-eu20.westeurope.azure
- prod-ap30.australia-southeast1.gcp
- prod-in30.asia-south1.gcp
- prod-sa30.me-central2.gcp
- prod-us21.eastus.azure
- prod-eu30.europe-west3.gcp
- prod-us30.us-central1.gcp
- prod-br10.sa-east-1.aws
default: prod.eu-central-1.aws
security:
- Oauth2: []
tags:
- name: Kpi
description: Access to usage information for a tenant
paths:
/analytics/kpis:
get:
tags:
- Kpi
parameters:
- $ref: '#/components/parameters/KpiquerySelect'
summary: Get KPIs
description: 'Retrieve the number of executions, artifacts, and deployments
for each resource group, scenario, and executable. The columns to be returned can be specified in a query parameter.'
operationId: kpi.get
responses:
'200':
description: KPIs
content:
application/json:
schema:
$ref: '#/components/schemas/KpiResultSet'
examples:
example-1:
value:
header:
- ResourceGroup
- Executions
- Artifacts
- Deployments
rows:
- - 00112233-4455-6677-8899-aabbccddeeff
- 30
- 30
- 3
'400':
$ref: '#/components/responses/KpiInvalidRequest'
'404':
$ref: '#/components/responses/KpiNotFound'
'429':
$ref: '#/components/responses/KpiTooManyRequests'
servers:
- url: https://api.ai.{region}.ml.hana.ondemand.com/v2
description: Production endpoint for SAP AI Core
variables:
region:
enum:
- prod.eu-central-1.aws
- prodeuonly.eu-central-1.aws
- prod.us-east-1.aws
- prod.ap-northeast-1.aws
- prod-ap11.ap-southeast-1.aws
- prod-ap20.australiaeast.azure
- prod.ap-southeast-2.aws
- prod-eu20.westeurope.azure
- prod-ap30.australia-southeast1.gcp
- prod-in30.asia-south1.gcp
- prod-sa30.me-central2.gcp
- prod-us21.eastus.azure
- prod-eu30.europe-west3.gcp
- prod-us30.us-central1.gcp
- prod-br10.sa-east-1.aws
default: prod.eu-central-1.aws
components:
parameters:
KpiquerySelect:
name: $select
description: Columns to select
in: query
required: false
schema:
uniqueItems: true
type: array
readOnly: true
default:
- ResourceGroup
- Executions
- Artifacts
- Deployments
items:
$ref: '#/components/schemas/KpiColumnName'
style: form
explode: false
schemas:
KpiResultSet:
type: object
title: ResultSet
x-examples:
example-1:
header:
- ResourceGroup
- Executions
- Artifacts
- Deployments
rows:
- - 00112233-4455-6677-8899-aabbccddeeff
- 30
- 30
- 3
additionalProperties: false
minProperties: 2
maxProperties: 2
properties:
header:
$ref: '#/components/schemas/KpiArrayOfColumnNames'
rows:
$ref: '#/components/schemas/KpiResultRowList'
readOnly: true
KpiResultRow:
type: array
title: ResultRow
uniqueItems: false
x-examples: {}
description: ''
items:
$ref: '#/components/schemas/KpiResultRowItem'
readOnly: true
KpiApiError:
type: object
required:
- code
- message
properties:
code:
type: string
description: Descriptive error code (not http status code)
message:
type: string
description: Plaintext error description
requestId:
type: string
description: ID of the individual request
target:
type: string
description: Invoked URL
details:
description: Optional details of the error message
type: object
KpiArrayOfColumnNames:
uniqueItems: true
type: array
readOnly: true
items:
$ref: '#/components/schemas/KpiColumnName'
KpiResultRowList:
title: ResultRowList
type: array
items:
$ref: '#/components/schemas/KpiResultRow'
KpiAggregationAttribute:
type: string
title: Aggregation Attribute
readOnly: true
KpiCountAggregate:
type: integer
title: CountAggregate
format: int64
minimum: 0
x-examples: {}
readOnly: true
KpiResultRowItem:
title: ResultRowItem
anyOf:
- $ref: '#/components/schemas/KpiAggregationAttribute'
- $ref: '#/components/schemas/KpiCountAggregate'
x-examples: {}
KpiColumnName:
readOnly: true
type: string
description: Name of the Column
anyOf:
- enum:
- ResourceGroup
- Scenario
- Executable
- Executions
- Artifacts
- Deployments
- {}
responses:
KpiTooManyRequests:
description: Too many requests
content:
application/json:
schema:
type: object
properties:
error:
$ref: '#/components/schemas/KpiApiError'
KpiNotFound:
description: The specified resource was not found
content:
application/json:
schema:
type: object
properties:
error:
$ref: '#/components/schemas/KpiApiError'
KpiInvalidRequest:
description: Invalid request
content:
application/json:
schema:
type: object
properties:
error:
$ref: '#/components/schemas/KpiApiError'
securitySchemes:
Oauth2:
type: oauth2
description: OAuth client credentials (client ID and secret) are required. These can be requested from SAP BTP cloud cockpit.
flows:
clientCredentials:
tokenUrl: https://{subdomain_identity_zone}.authentication.{host}/oauth/token
scopes: {}
externalDocs:
description: Documentation for SAP AI Core
url: https://help.sap.com/docs/AI_CORE?version=CLOUD
x-refined-from:
- ai-core.yaml
- sap-btp-ai-core-openapi.yml
x-sap-shortText: Create and manage AI scenarios, trainings, deployments, and artifacts in SAP AI Core.