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
filters
objectsThe 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 uid
s 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.
Updated about 1 month ago