This section is useful if you want to send in‑app campaigns that are triggered after a specific action in your application.

Request

1. Details

Endpoint URL https://api.clice.app/ext/public/campaign/trigger
Method POST
Header 0 "Content-Type": "application/json"
Header 1 "apiKey": "YOUR_API_KEY"
Header 2 "appId": "YOUR_APP_ID"

2. Body

Field name Type Required Description
cuId string yes The ID of the affected user who should receive the campaign.
campaignId string yes The Clice campaign ID.

To find campaignId, go to your Clice back office, open the Campaigns section, open the relevant campaign, and in the Actions dropdown at the top right choose Trigger. The campaign ID will then be displayed.

3. Request example

fetch("[<https://api.clice.app/ext/public/campaign/trigger>](<https://api.clice.app/ext/public/campaign/trigger>)", {
  method: "POST",
  headers:

Response

1. Details

Field name Type
statusCode number
success boolean
message string

2. Possible values for statusCode

statusCode Meaning
404 The campaign does not exist OR the user does not exist
429 You have exhausted your in‑app sending quotas for this month, so it cannot be sent
409 This campaign has already been sent to the user, so the resend is refused
200 The campaign was sent successfully