GamebeastDocs
Dashboard

Execute saved query

POST
/application/{applicationId}/analytics/v1/queries/{queryId}/execute

Execute a saved query by ID. The query type and core fields (metrics, criteria) are loaded from the saved query. Optional overrides for time, filters, breakdowns, and display options may be passed in the body — each provided field completely replaces the saved value (replace semantics, not merge).

Authorization

AuthorizationBearer <token>

Secret server key (prefixed gb_sk_) for server-to-server calls. Send it as Authorization: Bearer <key>. Never ship a secret key in a game client.

In: header

Path Parameters

applicationId*number

Gamebeast project ID

queryId*number

Header Parameters

environment_id*number

Gamebeast environment ID

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

curl -X POST "https://example.com/application/0/analytics/v1/queries/0/execute" \  -H "environment_id: 0" \  -H "Content-Type: application/json" \  -d '{}'
Empty