Skip to main content

Recipes

Common Prism queries. Each is POSTed to /v1/offers with your Authorization: Bearer <token> and Content-Type: application/json — see the Overview for the full request shape. Pass the player ID as a variable so the query is reusable.

Fetch offers for a player

query GetOffers($playerId: String!) {
offers(player_id: $playerId) {
id
name
total_payout_usd
}
}
{ "playerId": "user-123" }

Include creative details

Select nested fields to render the offer in your UI:

query GetOffersWithCreatives($playerId: String!) {
offers(player_id: $playerId) {
id
name
total_payout_usd
creatives {
name
description
}
}
}

Prism also exposes a links query for a player's tracking links — select the fields you need on it the same way as offers.


GraphQL returns exactly the fields you request, so ask for only what you need. GraphQL is also introspective, so you can explore the available queries, fields, and types directly from any GraphQL client.