Adding and deleting visitors

You can use the REST API to search for visitors and delete visitors from your project using the POST and DELETE calls.

Searching for visitors

To search for visitors in your project using the REST API, you need to create a filters array.

filters objects

The objects in the filters array must contain a name and value parameter.

POST https://api.eu.smartlook.cloud/api/v1/visitors/search
{
  "filters": [
    {
      "name": "uid",
      "value": "some-uid"
    }
  ]
}

For more information, see the Search visitors in the API reference.

Deleting visitors

To delete visitors from your project using the REST API, you need to use the DELETE call with the uids of the visitor you want to delete.

// To delete one visitor
DELETE https://api.eu.smartlook.cloud/api/v1/visitors/visitor-uid
// To delete multiple visitors
DELETE https://api.eu.smartlook.cloud/api/v1/visitors/visitors?uids=visitor-uid1,visitor-uid2

For more information, see Delete visitor or Delete visitors in the API reference.