Metadata Endpoint
Helper can retrieve additional information about your customers through a metadata endpoint passed in the client SDK.
How It Works
When customerInfoUrl
is provided to the chat or create message API, Helper will make a GET request to the endpoint with the customer's email and timestamp. You can return metadata to improve AI responses and enable more features in the mailbox.
Request Example
Parameter | Type | In | Description |
---|---|---|---|
email | string | query | The customer's email address. |
timestamp | number | query | The current timestamp, optionally used for HMAC authentication. |
Authorization | string | header | The HMAC signature for the request. |
Response Format
Your server must return a JSON response in this format:
HMAC Authentication
Helper authenticates requests to your endpoint using HMAC-SHA256.
We strongly recommend you verify the request is legitimate by generating the same HMAC signature on your server and checking it matches the header. Without this verification, if a malicious actor discovers your metadata endpoint they could continuously make requests with different emails to try and scrape customer data.
The signature is generated from the query string (?email=...×tamp=...
) and the HMAC secret shown in your settings.