The commands endpoint is designed to manipulate visitor data easily. Add tags, update fields, and more with a single request. Great for tiny updates!
This endpoint is designed for single updates on a visitor. To update multiple fields consider using the batch/subscribers` or `batch/events` endpoints.
This endpoint does not trigger automations with the exception of the add_tag_via_event command.
Run Command
To run different commands, change the structure of the query.
// Tag Subscriber
{ "command": "add_tag", "email": "[email protected]", "query": "example" }
// Tag Subscriber via Event (Triggers Automations)
{ "command": "add_tag_via_event", "email": "[email protected]", "query": "example" }
// Remove Tag
{ "command": "remove_tag", "email": "[email protected]", "query": "example" }
// Add Field
{ "command": "add_field", "email": "[email protected]", "query": {"key": "test", "value": "test" }
// Remove Field
{ "command": "remove_field", "email": "[email protected]", "query": "example" }
// Subscribe
{ "command": "subscribe", "email": "[email protected]" }
// Unsubscribe
{ "command": "unsubscribe", "email": "[email protected]" }
// Change email
{ "command": "change_email", "email": "[email protected]", "query": "[email protected]" }
Copy link