Contact support and we will keep this article attached to your request.
Overview
What do I need?
- Braze connected, and leads sent to Braze. Read the Braze lead guide.
- An event in Braze that shows a lead became a customer, for example a purchase or a custom event like First purchase.
- A Referral Factory plan with API access. The webhook uses the Referral Factory API.
- About 5 minutes in Braze.
Step 1: Choose “Yes, Braze tells us”

Step 2: Copy the webhook details
- Method:
PUT - Webhook URL:
https://api.referral-factory.com/api/v3/leads/qualification - Header:
Authorization: Bearer YOUR_API_TOKEN - Header:
Content-Type: application/json - Request body:
{"campaign_id": "{{custom_attribute.${RF - Campaign ID}}}", "email": "{{${email_address}}}", "qualified": true}

Step 3: Create the Canvas in Braze




Two things to know about the Canvas
- Braze may show the note “Credentials should not be stored in headers.” You can ignore it. The webhook works with the Authorization header.
- Changed a Canvas that is already live? Braze keeps your changes as a draft. Go to the Summary step and select Update Canvas, or your changes are not used.
Step 4: Check that it works

Can Braze reach my custom goals too?
https://api.referral-factory.com/api/v3/leads/goal, and the request body shown for the goal. The body has the goal’s ID and "mark_as_reached": true.