Add metadata for a webchat contact
externalUserId rather than the Vambe contact ID.
| Field | Type | Required | Description |
|---|---|---|---|
externalUserId | string | Yes | Your unique identifier for the webchat user |
metadata | object | Yes | Key-value pairs of metadata to add/update |
externalUserId is typically set when:
editAllFields: true mode| Status Code | Description |
|---|---|
| 400 | Bad Request - Invalid metadata format |
| 401 | Unauthorized - Invalid or missing API key |
| 404 | Not Found - Contact not found with that user ID |
| 500 | Internal Server Error - Something went wrong |
| Feature | Webchat Metadata (This) | General Metadata |
|---|---|---|
| Identifier | externalUserId (your ID) | aiContactId (Vambe UUID) |
| Channel | Webchat only | All channels |
| Use When | Have external user ID | Have Vambe contact ID |
| Widget Integration | ✅ Perfect for widgets | ❌ Need contact ID lookup |