Skip to main content
POST
/
v1
/
tag
/
{uid}
/
config
/tag/:uid/config
curl --request POST \
  --url https://api.tagdeliver.com/v1/tag/{uid}/config \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "audience_filter": {
    "matches": [
      "<string>"
    ],
    "type": "<string>"
  },
  "browser_filter": {
    "matches": [
      "<string>"
    ],
    "type": "<string>"
  },
  "device_filter": {
    "matches": [
      "<string>"
    ],
    "type": "<string>"
  },
  "disable_adhesion_bg": true,
  "disable_branding": true,
  "floors_model": "<string>",
  "geo_filter": {
    "matches": [
      "<string>"
    ],
    "type": "<string>"
  },
  "in_view": true,
  "limit": "<string>",
  "os_filter": {
    "matches": [
      "<string>"
    ],
    "type": "<string>"
  },
  "refresh": true,
  "region_filter": {
    "matches": [
      "<string>"
    ],
    "type": "<string>"
  },
  "relocate": true,
  "sizes": {
    "desktop": [
      "<string>"
    ],
    "mobile": [
      "<string>"
    ],
    "tablet": [
      "<string>"
    ]
  },
  "target": "<string>",
  "target_injection": "<string>",
  "unit": "<string>",
  "url_filter": {
    "matches": [
      "<string>"
    ],
    "type": "<string>"
  },
  "viewport_filter": {
    "matches": [
      "<string>"
    ],
    "type": "<string>"
  },
  "stack": 123,
  "label": "<string>"
}
'
import requests

url = "https://api.tagdeliver.com/v1/tag/{uid}/config"

payload = {
"audience_filter": {
"matches": ["<string>"],
"type": "<string>"
},
"browser_filter": {
"matches": ["<string>"],
"type": "<string>"
},
"device_filter": {
"matches": ["<string>"],
"type": "<string>"
},
"disable_adhesion_bg": True,
"disable_branding": True,
"floors_model": "<string>",
"geo_filter": {
"matches": ["<string>"],
"type": "<string>"
},
"in_view": True,
"limit": "<string>",
"os_filter": {
"matches": ["<string>"],
"type": "<string>"
},
"refresh": True,
"region_filter": {
"matches": ["<string>"],
"type": "<string>"
},
"relocate": True,
"sizes": {
"desktop": ["<string>"],
"mobile": ["<string>"],
"tablet": ["<string>"]
},
"target": "<string>",
"target_injection": "<string>",
"unit": "<string>",
"url_filter": {
"matches": ["<string>"],
"type": "<string>"
},
"viewport_filter": {
"matches": ["<string>"],
"type": "<string>"
},
"stack": 123,
"label": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.text)
const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
audience_filter: {matches: ['<string>'], type: '<string>'},
browser_filter: {matches: ['<string>'], type: '<string>'},
device_filter: {matches: ['<string>'], type: '<string>'},
disable_adhesion_bg: true,
disable_branding: true,
floors_model: '<string>',
geo_filter: {matches: ['<string>'], type: '<string>'},
in_view: true,
limit: '<string>',
os_filter: {matches: ['<string>'], type: '<string>'},
refresh: true,
region_filter: {matches: ['<string>'], type: '<string>'},
relocate: true,
sizes: {desktop: ['<string>'], mobile: ['<string>'], tablet: ['<string>']},
target: '<string>',
target_injection: '<string>',
unit: '<string>',
url_filter: {matches: ['<string>'], type: '<string>'},
viewport_filter: {matches: ['<string>'], type: '<string>'},
stack: 123,
label: '<string>'
})
};

fetch('https://api.tagdeliver.com/v1/tag/{uid}/config', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
<?php

$curl = curl_init();

curl_setopt_array($curl, [
CURLOPT_URL => "https://api.tagdeliver.com/v1/tag/{uid}/config",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'audience_filter' => [
'matches' => [
'<string>'
],
'type' => '<string>'
],
'browser_filter' => [
'matches' => [
'<string>'
],
'type' => '<string>'
],
'device_filter' => [
'matches' => [
'<string>'
],
'type' => '<string>'
],
'disable_adhesion_bg' => true,
'disable_branding' => true,
'floors_model' => '<string>',
'geo_filter' => [
'matches' => [
'<string>'
],
'type' => '<string>'
],
'in_view' => true,
'limit' => '<string>',
'os_filter' => [
'matches' => [
'<string>'
],
'type' => '<string>'
],
'refresh' => true,
'region_filter' => [
'matches' => [
'<string>'
],
'type' => '<string>'
],
'relocate' => true,
'sizes' => [
'desktop' => [
'<string>'
],
'mobile' => [
'<string>'
],
'tablet' => [
'<string>'
]
],
'target' => '<string>',
'target_injection' => '<string>',
'unit' => '<string>',
'url_filter' => [
'matches' => [
'<string>'
],
'type' => '<string>'
],
'viewport_filter' => [
'matches' => [
'<string>'
],
'type' => '<string>'
],
'stack' => 123,
'label' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
package main

import (
"fmt"
"strings"
"net/http"
"io"
)

func main() {

url := "https://api.tagdeliver.com/v1/tag/{uid}/config"

payload := strings.NewReader("{\n \"audience_filter\": {\n \"matches\": [\n \"<string>\"\n ],\n \"type\": \"<string>\"\n },\n \"browser_filter\": {\n \"matches\": [\n \"<string>\"\n ],\n \"type\": \"<string>\"\n },\n \"device_filter\": {\n \"matches\": [\n \"<string>\"\n ],\n \"type\": \"<string>\"\n },\n \"disable_adhesion_bg\": true,\n \"disable_branding\": true,\n \"floors_model\": \"<string>\",\n \"geo_filter\": {\n \"matches\": [\n \"<string>\"\n ],\n \"type\": \"<string>\"\n },\n \"in_view\": true,\n \"limit\": \"<string>\",\n \"os_filter\": {\n \"matches\": [\n \"<string>\"\n ],\n \"type\": \"<string>\"\n },\n \"refresh\": true,\n \"region_filter\": {\n \"matches\": [\n \"<string>\"\n ],\n \"type\": \"<string>\"\n },\n \"relocate\": true,\n \"sizes\": {\n \"desktop\": [\n \"<string>\"\n ],\n \"mobile\": [\n \"<string>\"\n ],\n \"tablet\": [\n \"<string>\"\n ]\n },\n \"target\": \"<string>\",\n \"target_injection\": \"<string>\",\n \"unit\": \"<string>\",\n \"url_filter\": {\n \"matches\": [\n \"<string>\"\n ],\n \"type\": \"<string>\"\n },\n \"viewport_filter\": {\n \"matches\": [\n \"<string>\"\n ],\n \"type\": \"<string>\"\n },\n \"stack\": 123,\n \"label\": \"<string>\"\n}")

req, _ := http.NewRequest("POST", url, payload)

req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")

res, _ := http.DefaultClient.Do(req)

defer res.Body.Close()
body, _ := io.ReadAll(res.Body)

fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.post("https://api.tagdeliver.com/v1/tag/{uid}/config")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"audience_filter\": {\n \"matches\": [\n \"<string>\"\n ],\n \"type\": \"<string>\"\n },\n \"browser_filter\": {\n \"matches\": [\n \"<string>\"\n ],\n \"type\": \"<string>\"\n },\n \"device_filter\": {\n \"matches\": [\n \"<string>\"\n ],\n \"type\": \"<string>\"\n },\n \"disable_adhesion_bg\": true,\n \"disable_branding\": true,\n \"floors_model\": \"<string>\",\n \"geo_filter\": {\n \"matches\": [\n \"<string>\"\n ],\n \"type\": \"<string>\"\n },\n \"in_view\": true,\n \"limit\": \"<string>\",\n \"os_filter\": {\n \"matches\": [\n \"<string>\"\n ],\n \"type\": \"<string>\"\n },\n \"refresh\": true,\n \"region_filter\": {\n \"matches\": [\n \"<string>\"\n ],\n \"type\": \"<string>\"\n },\n \"relocate\": true,\n \"sizes\": {\n \"desktop\": [\n \"<string>\"\n ],\n \"mobile\": [\n \"<string>\"\n ],\n \"tablet\": [\n \"<string>\"\n ]\n },\n \"target\": \"<string>\",\n \"target_injection\": \"<string>\",\n \"unit\": \"<string>\",\n \"url_filter\": {\n \"matches\": [\n \"<string>\"\n ],\n \"type\": \"<string>\"\n },\n \"viewport_filter\": {\n \"matches\": [\n \"<string>\"\n ],\n \"type\": \"<string>\"\n },\n \"stack\": 123,\n \"label\": \"<string>\"\n}")
.asString();
require 'uri'
require 'net/http'

url = URI("https://api.tagdeliver.com/v1/tag/{uid}/config")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"audience_filter\": {\n \"matches\": [\n \"<string>\"\n ],\n \"type\": \"<string>\"\n },\n \"browser_filter\": {\n \"matches\": [\n \"<string>\"\n ],\n \"type\": \"<string>\"\n },\n \"device_filter\": {\n \"matches\": [\n \"<string>\"\n ],\n \"type\": \"<string>\"\n },\n \"disable_adhesion_bg\": true,\n \"disable_branding\": true,\n \"floors_model\": \"<string>\",\n \"geo_filter\": {\n \"matches\": [\n \"<string>\"\n ],\n \"type\": \"<string>\"\n },\n \"in_view\": true,\n \"limit\": \"<string>\",\n \"os_filter\": {\n \"matches\": [\n \"<string>\"\n ],\n \"type\": \"<string>\"\n },\n \"refresh\": true,\n \"region_filter\": {\n \"matches\": [\n \"<string>\"\n ],\n \"type\": \"<string>\"\n },\n \"relocate\": true,\n \"sizes\": {\n \"desktop\": [\n \"<string>\"\n ],\n \"mobile\": [\n \"<string>\"\n ],\n \"tablet\": [\n \"<string>\"\n ]\n },\n \"target\": \"<string>\",\n \"target_injection\": \"<string>\",\n \"unit\": \"<string>\",\n \"url_filter\": {\n \"matches\": [\n \"<string>\"\n ],\n \"type\": \"<string>\"\n },\n \"viewport_filter\": {\n \"matches\": [\n \"<string>\"\n ],\n \"type\": \"<string>\"\n },\n \"stack\": 123,\n \"label\": \"<string>\"\n}"

response = http.request(request)
puts response.read_body
{
  "results": {
    "domain": "example.com",
    "id": 11598,
    "uid": 18620,
    "label": "Test Config",
    "stack": 814,
    "config": {
      "audience_filter": {
        "matches": [],
        "type": "include"
      },
      "browser_filter": {
        "matches": [],
        "type": "include"
      },
      "device_filter": {
        "matches": [],
        "type": "include"
      },
      "disable_adhesion_bg": false,
      "disable_branding": false,
      "floors_model": "ci_dynamic",
      "geo_filter": {
        "matches": [],
        "type": "include"
      },
      "in_view": true,
      "limit": "",
      "os_filter": {
        "matches": [],
        "type": "include"
      },
      "refresh": true,
      "region_filter": {
        "matches": [],
        "type": "include"
      },
      "relocate": false,
      "sizes": {
        "desktop": [
          "728x90"
        ],
        "mobile": [
          "320x50"
        ],
        "tablet": [
          "728x90"
        ]
      },
      "target": "body",
      "target_injection": "after",
      "url_filter": {
        "matches": [],
        "type": "include"
      },
      "viewport_filter": {
        "matches": [],
        "type": "include"
      },
      "start": null,
      "end": null,
      "label": "Test Config",
      "unit": "adhesion"
    },
    "revision": 1,
    "date_added": "2025-10-29 13:28:19",
    "date_updated": "2025-10-29 13:28:19",
    "status": 0,
    "in_experiment": false
  },
  "success": true
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

uid
integer
required

Publisher ID

Body

application/json
audience_filter
object
browser_filter
object
device_filter
object
disable_adhesion_bg
boolean
disable_branding
boolean
floors_model
string
geo_filter
object
in_view
boolean
limit
string
os_filter
object
refresh
boolean
region_filter
object
relocate
boolean
sizes
object
target
string
target_injection
string
unit
string
url_filter
object
viewport_filter
object
stack
integer
label
string

Response

201 - application/json
results
object
required
success
boolean
required