POST /tags

Available

Add or remove tags on this device so campaigns and flags can target groups.

POSThttps://ctrlapp.dev/api/public/sdk/v1/tags
Auth: Bearer <PUBLISHABLE_KEY>

Tags set in the dashboard are kept: this only adds and removes the tags you name. A device can have up to 50 tags of up to 64 characters.

Body

json
{
  "device_uid": "<DEVICE_ID>",
  "add": ["bidder", "vip"],
  "remove": ["new-user"]
}

The reply is { "ok": true, "tags": ["vip", "bidder"] }. In Flutter use CtrlApp.instance.addTags([...]) and removeTags([...]).

Back to top