Add Domain

Generate tracking pixel scripts for your domain by adding custom domains. This ensures all customer interactions and tracking are seamlessly integrated and reflect your brand.

curl --location 'https://api.maximise.ai/v1/whitelabel-api/add-domain' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
    "domain": "example.com",
    "identify_accounts": false
}'

Example response

Status Code: 200 OK

{
    "message": "Successfully added domain to whitelabeled account",
    "uid": "22bb64ef-0c82-4870-a5ef-082084b4295a",
    "id": "KA-nyoNJWbjWglN5P",
    "domain": "example.com",
    "team": "670296297231defa325d5c0f4",
    "active": true,
    "archived": false,
    "verified": false,
    "capturing": false,
    "identification_preferences": {
        "accounts": true
    },
    "whitelabel": "66795bdfa4dace0e98d77bed",
    "script": "<script type=\"text/javascript\">\n(function (w, d, s, u, wid, id, tid, dm) {\n    w.mxq = w.mxq || [];\n    w.mxq.push({ wid: wid, id: id, tid: tid, dm: dm });\n    var js, fjs = d.getElementsByTagName(s)[0];\n    js = d.createElement(s);\n    js.async = true;\n    js.src = u + \"?t=\" + new Date().getTime();\n    fjs.parentNode.insertBefore(js, fjs);\n})(window, document, \"script\", \"https://idgraph.nyc3.cdn.digitaloceanspaces.com/pixel.min.js\", \"RMieIJj0M7RIDmr7\", \"KA-nyoNJWbjWglN5P\", \"67029429223126a325d5c0f4\", [\"example.com\"]);\n</script>",
    "createdAt": "2024-10-07T22:08:48.859Z"
}

Last updated