List free-round grants
const url = 'https://api.aggregator.gg/v1/free-rounds?sub_operator_ref=brand-01&status=pending_issue&limit=50&offset=0';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://api.aggregator.gg/v1/free-rounds?sub_operator_ref=brand-01&status=pending_issue&limit=50&offset=0' \ --header 'Authorization: Bearer <token>'List the operator’s free-round grants (our records), newest first.
Platform accounts send sub_operator_ref to pick the brand; see
Platform accounts for the
default brand.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”Example
brand-01Platform accounts only. Which brand’s grants to list - grants
are keyed on the brand’s identity. Omitting it lists your default
brand’s grants; sending it from a non-platform key is a 400
(E6006); with no default brand provisioned the call is a 409
(E6010), and under require_sub_operator_ref omitting it is a 400
(E6005).
Omit it to get the default brand; sending it empty is a 400
(E6004), not a fallback - see sub_operator_ref on
POST /v1/sessions for why the two differ.
List one brand at a time.
Responses
Section titled “Responses”List of grants.
object
object
object
Per-game provider ref: Apparat voucherId; for a provider with pull-activated free rounds the freerounds_id we minted (32 lowercase hex), carried on the player’s game launch and activated by the provider once.
Example
{ "grants": [ { "games": [ { "status": "pending_issue" } ] } ]}Missing, invalid, or revoked API key.
object
object
Machine-parseable error code. See https://hub.aggregator.gg/error-reference/.
Correlation ID for support escalation.
object
Example
{ "error": { "code": "E0001" }}