πŸ‘¨πŸ½β€πŸ’» Webchat

Collection of endpoints useful to get and post information specific to a Vambe Webchat

πŸ’» Webchat Contact Metadata

Use this endpoint to add metadata to a webchat contact, allowing you to enrich conversations with custom attributes such as CRM IDs, UTM sources, user preferences, or any internal identifiers.


πŸ”½ POST /api/public/webchat/contact/add-metadata – Add Metadata for a Webchat Contact

Click to expand full details

πŸ”Ή URL

POST /api/public/webchat/contact/add-metadata

πŸ”Ή Headers

NameTypeRequiredDescription
x-api-keystringβœ…Your API key for authentication

πŸ”Ή Body Parameters

FieldTypeRequiredDescription
metadataobjectβœ…A key-value object with custom metadata fields
externalUserIdstringβœ…Unique external ID of the webchat contact

πŸ”Ή Example Request

curl --request POST \
  'https://api.vambe.me/api/public/webchat/contact/add-metadata' \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: YOUR_API_KEY' \
  --data-raw '{
    "metadata": {
      "utm_source": "google",
      "preferred_language": "en",
      "crm_id": "crm_1029"
    },
    "externalUserId": "webchat_user_456"
  }'


πŸ”Ή Response Codes

CodeMeaningDescription
201CreatedMetadata saved successfully
400Bad RequestOne or more parameters are invalid
401UnauthorizedMissing or invalid API key