App Metric

Get all app metrics

get
/entities/{entityId}/metrics

This endpoint retrieves all the app metrics.

Path parameters
entityIdstringRequired
Query parameters
userIdstringRequired

The Id of the user performing the request.

Example: dummy-userid
Header parameters
apikeystringRequired

The API key for authentication

Example: test
apisecretstringOptional

The secret key for authentication

Example: test-secret
tokenstringRequired

The token for user authentication.

Example: dummy-token
Responses
200

Successful response

application/json
get
/entities/{entityId}/metrics

Create a new app metric

post
/entities/{entityId}/metrics

This endpoint allows creating a new app metric.

Path parameters
entityIdstringRequired
Query parameters
userIdstringRequired

The Id of the user performing the request.

Example: dummy-userid
Header parameters
apikeystringRequired

The API key for authentication

Example: test
apisecretstringOptional

The secret key for authentication

Example: test-secret
tokenstringRequired

The token for user authentication.

Example: dummy-token
Body
metricstringRequiredExample: metric-1
namestringOptionalExample: Metric Name
descriptionstringOptionalExample: Metric description
typestringOptionalExample: metric_type
thresholdTimenumberOptionalExample: 10
platformstringOptionalExample: segment
eventNamestringOptionalExample: metric_event
Responses
200

Successful response

application/json
post
/entities/{entityId}/metrics

Get app metrics info of a user

get
/entities/{entityId}/users/{userId}/metrics/{metric}

This endpoint retrieves the app metrics info for a user.

Path parameters
entityIdstringRequired
userIdstringRequired
metricstringRequired
Header parameters
apikeystringRequired

The API key for authentication

Example: test
apisecretstringOptional

The secret key for authentication

Example: test-secret
useridstringRequired

The Id of the user performing the request.

Example: dummy-userid
tokenstringRequired

The token for user authentication.

Example: dummy-token
Responses
200

Successful response

application/json
get
/entities/{entityId}/users/{userId}/metrics/{metric}

Increment app metrics for a user

post
/entities/{entityId}/users/{userId}/metrics/{metric}

This endpoint allows to increment app metrics of a user.

Path parameters
entityIdstringRequired
userIdstringRequired
metricstringRequired
Query parameters
userIdstringRequired

The Id of the user performing the request.

Example: dummy-userid
Header parameters
apikeystringRequired

The API key for authentication

Example: test
apisecretstringOptional

The secret key for authentication

Example: test-secret
useridstringRequired

The Id of the user performing the request.

Example: dummy-userid
tokenstringRequired

The token for user authentication.

Example: dummy-token
Body
countnumberOptionalExample: 10
Responses
200

Successful response

application/json
post
/entities/{entityId}/users/{userId}/metrics/{metric}

Get all app metrics of a user

get
/entities/{entityId}/users/{userId}/metrics

This endpoint retrieves all the app metrics for a user.

Path parameters
entityIdstringRequired
userIdstringRequired
Query parameters
userIdstringRequired

The Id of the user performing the request.

Example: dummy-userid
Header parameters
apikeystringRequired

The API key for authentication

Example: test
apisecretstringOptional

The secret key for authentication

Example: test-secret
tokenstringRequired

The token for user authentication.

Example: dummy-token
Responses
200

Successful response

application/json
get
/entities/{entityId}/users/{userId}/metrics

Increment multiple app metrics for a user

post
/entities/{entityId}/users/{userId}/metrics

This endpoint allows to increment multiple app metrics of a user.

Path parameters
entityIdstringRequired
userIdstringRequired
Query parameters
userIdstringRequired

The Id of the user performing the request.

Example: dummy-userid
Header parameters
apikeystringRequired

The API key for authentication

Example: test
apisecretstringOptional

The secret key for authentication

Example: test-secret
tokenstringRequired

The token for user authentication.

Example: dummy-token
Body
Responses
200

Successful response

application/json
post
/entities/{entityId}/users/{userId}/metrics

Delete an app metric

post
/entities/{entityId}/metrics/{metric}/delete

This endpoint allows deleting an app metric.

Path parameters
entityIdstringRequired
metricstringRequired
Query parameters
userIdstringRequired

The Id of the user performing the request.

Example: dummy-userid
Header parameters
apikeystringRequired

The API key for authentication

Example: test
apisecretstringOptional

The secret key for authentication

Example: test-secret
tokenstringRequired

The token for user authentication.

Example: dummy-token
Responses
200

Successful response

application/json
post
/entities/{entityId}/metrics/{metric}/delete

Update an app metric

post
/entities/{entityId}/metrics/{metric}/update

This endpoint allows updating an app metric.

Path parameters
entityIdstringRequired
metricstringRequired
Query parameters
userIdstringRequired

The Id of the user performing the request.

Example: dummy-userid
Header parameters
apikeystringRequired

The API key for authentication

Example: test
apisecretstringOptional

The secret key for authentication

Example: test-secret
tokenstringRequired

The token for user authentication.

Example: dummy-token
Body
namestringOptional
descriptionstringOptional
typestringOptional
thresholdTimenumberOptional
platformstringOptional
eventNamestringOptional
Responses
200

Successful response

application/json
post
/entities/{entityId}/metrics/{metric}/update

Get metric claim summary

get
/entities/{entityId}/metrics/claims

This endpoint retrieves a summary of metric claims for an entity.

Path parameters
entityIdstringRequired
Query parameters
userIdstringRequired

The Id of the user performing the request.

Example: dummy-userid
Header parameters
apikeystringRequired

The API key for authentication

Example: test
apisecretstringOptional

The secret key for authentication

Example: test-secret
tokenstringRequired

The token for user authentication.

Example: dummy-token
Responses
200

Successful response

application/json
get
/entities/{entityId}/metrics/claims

Get Dapp metric value for entity

get
/entities/{entityId}/users/{userId}/getmetrics/{metric}

This endpoint retrieves the value of a Dapp metric for an entity.

Path parameters
entityIdstringRequired
userIdstringRequired
metricstringRequired
Query parameters
userIdstringRequired

The Id of the user performing the request.

Example: dummy-userid
Header parameters
apikeystringRequired

The API key for authentication

Example: test
apisecretstringOptional

The secret key for authentication

Example: test-secret
tokenstringRequired

The token for user authentication.

Example: dummy-token
Responses
200

Successful response

application/json
get
/entities/{entityId}/users/{userId}/getmetrics/{metric}

Get metric summary for a quest

get
/entities/{entityId}/quests/{questId}/metric-summary

This endpoint retrieves the metric summary for a quest in a specified entity.

Path parameters
entityIdstringRequired
questIdstringRequired
Query parameters
userIdstringRequired

The Id of the user performing the request.

Example: dummy-userid
Header parameters
apikeystringRequired

The API key for authentication

Example: test
apisecretstringOptional

The secret key for authentication

Example: test-secret
tokenstringRequired

The token for user authentication.

Example: dummy-token
Responses
200

Successful response

application/json
get
/entities/{entityId}/quests/{questId}/metric-summary

Last updated