Skip to main content
POST
/
kpi
Contact count KPI
curl --request POST \
  --url https://incoming.qomon.app/kpi \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "data": {
    "advanced_search": {
      "per_page": 500,
      "page": 1,
      "query": {
        "$all": [
          {
            "$all": [
              {
                "$condition": {
                  "attr": "<string>",
                  "form_id": 123,
                  "form_ref_ids": [
                    123
                  ],
                  "from": "<unknown>",
                  "to": "<unknown>",
                  "value": "<unknown>"
                }
              }
            ]
          }
        ]
      },
      "sort_asc": true
    },
    "include_interactions": true
  }
}
'
{
  "data": {
    "total": 123
  },
  "status": "<string>"
}

Authorizations

Authorization
string
header
required

OAuth2 access token. Pass the token in the Authorization header as Bearer <token>. The token is looked up in Redis to resolve the caller identity.

Body

application/json
data
object
required

Response

OK

data
object
required
status
string
required

Operation result.

Example:

"success"

Last modified on June 16, 2026