Campaigns

Record shown/dismissed/clicked. `shown` drives the cooldown and impression cap.

post/api/campaigns/{id}/events

Request

  • Base URL
    https://api.rewritelifestyle.ai (the document declares no server; this is the origin it was published from)
  • URL
    https://api.rewritelifestyle.ai/api/campaigns/{id}/events
  • Auth
    HTTP bearer

Path parameters

idnumber required

Request body

type'shown' | 'dismissed' | 'clicked' required
variant_idnumber

Variant the user actually saw

metadataobject

Example request

{
  "type": "shown",
  "variant_id": 2,
  "metadata": {
    "screen": "home",
    "app_version": "3.4.1"
  }
}

Changes

No recorded changes to this operation across all 34 revisions of this API.