SimpleKPI Logo

SimpleKPI AI › API reference

KPI Frequencies

A read-only lookup of how often data can be entered against a KPI. The ids returned here are what frequency_id on a KPI accepts.

Read the list rather than hard-coding it — it is a system table and can gain entries.

Base URL https://api.simplekpi.com/v1

Endpoints

  1. List KPI frequenciesGET /v1/kpifrequencies
  2. Get a KPI frequencyGET /v1/kpifrequencies/{id}

KPI frequency object

NameTypeRead OnlyMandatoryMax Len.Notes
idstringyesno The value to send as frequency_id on a KPI. Case sensitive.
namestringyesno The frequency's display name, e.g. Weekly.

List KPI frequencies

GET /v1/kpifrequencies

Requires kpis:read on the API key.

Using curl

curl https://api.simplekpi.com/v1/kpifrequencies \
  -H "Authorization: Bearer skpi_your_api_key"

Example response

Status: 200 OK
[
  {
    "id": "D",
    "name": "Daily"
  },
  {
    "id": "W",
    "name": "Weekly"
  },
  {
    "id": "M",
    "name": "Monthly"
  }
]

Status codes

CodeMeaning
200OK
401Unauthorized
403Forbidden
429Too Many Requests

 

Get a KPI frequency

GET /v1/kpifrequencies/{id}

Requires kpis:read on the API key.

Parameters

NameTypeRequiredDefaultNotes
idstringyes The frequency code to return, e.g. W. Case sensitive.

Using curl

curl https://api.simplekpi.com/v1/kpifrequencies/{id} \
  -H "Authorization: Bearer skpi_your_api_key"

Status codes

CodeMeaning
200OK
401Unauthorized
403Forbidden
404Not Found
429Too Many Requests