Skip to content

Convert Visitor Request Payload

You can merge a Visitor to a Contact of role type lead or user.

typestringrequired

Represents the role of the Contact model. Accepts lead or user.

Example:"user"
userobject
Any of:

The unique identifiers retained after converting or merging. Required when type is user; not read when type is lead.

visitorobjectrequired
Any of:

The unique identifiers to convert a single Visitor. One of id or user_id is required; an email on its own does not identify a visitor.

{ "type": "user", "user": { "id": "8a88a590-e1c3-41e2-a502-e0649dbf721c", "user_id": "8a88a590-e1c3-41e2-a502-e0649dbf721c", "email": "winstonsmith@truth.org" }, "visitor": { "id": "8a88a590-e1c3-41e2-a502-e0649dbf721c", "user_id": "8a88a590-e1c3-41e2-a502-e0649dbf721c", "email": "winstonsmith@truth.org" } }