POST
/
api
/
v2
/
dataApp
/
metrics
{
  "embedId": "string",
  "clientId": "string",
  "isPagination": "boolean (optional)",
  "pageNumber": "number (optional)"
}
{
  "data": [
    {
      "name": "string",
      "metricId": "string"
    }
  ],
  "error": null
}

Endpoint:

POST /metrics

Headers

Authorization
string
required
Bearer API TOKEN

Request Body

embedId
string
required
clientId
string
required
isPagination
boolean
pageNumber
number
{
  "embedId": "string",
  "clientId": "string",
  "isPagination": "boolean (optional)",
  "pageNumber": "number (optional)"
}

Response

{
  "data": [
    {
      "name": "string",
      "metricId": "string"
    }
  ],
  "error": null
}

Error Codes

  • INVALID_DATA_APP_API_KEY: Invalid or missing Data App API Key
  • INVALID_REQUEST_BODY: Required fields missing or wrong type
  • EMBED_PARAM_ERROR: Embed ID not found or mismatched with API Key

Validation Schema

The request body must conform to the following schema:
  • embedId (required): embedId of the data app; embedID.
  • clientId (required): client id.
  • isPagination (optional): Boolean flag to enable pagination.
  • pageNumber (optional): Page number when pagination is enabled.