Campaign Participation Token

This endpoint generates a participation token that links an Optimove customer to an Adact campaign.

Use it when you want to forward a known customer from an Optimove campaign into Adact gameplay. The token identifies the participant accurately on arrival and enables Adact to send real-time events back to Optimove based on the outcome of the gameplay.

The response returns a ready-made queryParam value that you append directly to your campaign URL. For example, if your campaign lives at my-brand.adact.me/campaign, the forwarding URL becomes:

my-brand.adact.me/campaign?customerIdToken={token}

Everything you place inside payload is embedded in the generated JWT.

expiresIn is expressed in seconds.

post/participant-token

Request

  • Base URL
    https://gamify-api-us.optimove.net/adact
  • URL
    https://gamify-api-us.optimove.net/adact/participant-token
  • Auth
    none required

Request body

expiresIninteger

Optional. The token lifetime in seconds. Restricts how long the participant can reuse the token in your Adact campaigns. If omitted, the generated token never expires.

Example request

{
  "payload": {
    "cid": "user-abc-123",
    "campaignId": 12345
  },
  "expiresIn": 3600
}

Response

200

queryParamstring

A ready-made query string to append to your campaign URL.

tokenstring

The generated JWT participation token.

Example response

{
  "queryParam": "?customerIdToken=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
  "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."
}

Changes

No recorded changes to this operation across all 1 revision of this API.