Connectors / Marketing · HTTP Connector
Referral Factory integration and API
Create a referrer and create a lead in Referral Factory, and start a workflow when Referral Factory sends “Referrer joined a campaign”.
What can you do with Referral Factory on Tray.ai?
Referral Factory is a referral program builder that runs referral campaigns, tracks referrers and the leads they bring in, and manages the rewards owed to them. Tray.ai connects to Referral Factory through the HTTP Connector, so your workflows can call the Referral Factory API alongside the rest of your stack.
- When Referral Factory sends “Lead qualified”, create a deal for the referred lead in your CRM.
- Issue a due reward once finance confirms the referred customer's first payment.
- When Referral Factory sends “Referrer joined a campaign”, add them to your email marketing list.
- Update lead qualification when a referred deal closes in your CRM.
- Connects through
- HTTP Connector
- Authentication
- A bearer token
- Base URL
- https://api.referral-factory.com/api/v3
Set it up
Connect Referral Factory to Tray.ai
Each step uses Referral Factory's own API details, from its documentation.
Save Referral Factory's API token
Save the token Referral Factory issues as a Tray.ai authentication. The HTTP Client sends it as a bearer token on every call. The token stays out of the workflow and out of the logs.
Point the HTTP Client at the API
Add an HTTP Client step and use https://api.referral-factory.com/api/v3 as the base URL. Or paste a cURL example from Referral Factory's API docs, and Tray.ai fills in the method, URL, and headers.
Start with “List all campaigns”
It's one of 18 documented actions, under Campaigns. The response comes back as data the next step can map into your other apps.
Start workflows from Referral Factory events
Give Referral Factory the URL of a Tray.ai webhook trigger. “Referrer joined a campaign” can then start a workflow, and so can 2 other events.
Workflows to build with Referral Factory
Connect Referral Factory with Salesforce and Slack
Each one uses actions and events from Referral Factory's own API documentation.
Send Referral Factory leads to Salesforce
When
Lead joined a campaign
Then
- Create the referred lead in Salesforce
- Note the referrer on the lead in Salesforce
With Salesforce
Qualify Referral Factory leads when Salesforce deals close
When
A deal closes in Salesforce
Then
- List all leads
- Update lead qualification
With Salesforce
Tell the team in Slack about Referral Factory rewards due
When
Lead qualified
Then
- List due rewards
- Post the due rewards to the marketing channel in Slack
With Slack
Apps you can build on Referral Factory data
Internal tools your team can build with an AI assistant, each one using Referral Factory calls from its API documentation.
Lead qualification queue
Lists referred leads by campaign and lets sales mark each lead as qualified or not.
Reward payout board
Shows rewards due to referrers and lets the team issue or cancel each one.
Give your AI agents Referral Factory tools
Build an MCP server on Referral Factory in Agent Gateway and choose which actions your agents can call. Every call runs with access control and an audit trail. How Agent Gateway works
- List all campaigns
- List all referrers
- List all leads
- List all goals
- List due rewards
- Retrieve a campaign
- Create a referrer
- Update a referrer
What the Referral Factory API covers
5 resources and 18 documented actions, each one a call the HTTP Connector can make from a Tray.ai workflow. Connecting it takes a few clicks: here's how.
Campaigns
- List all campaigns
- Retrieve a campaign
Referrers
- List all referrers
- Create a referrer
- Update a referrer
- Delete a referrer
Leads
- List all leads
- Create a lead
- Update a lead
- Update lead qualification
- Delete a lead
Goals
- List all goals
- Retrieve a goal
- Search goals
Rewards
- List due rewards
- Issue a due reward
- Cancel a due reward
- List issued rewards
Events Referral Factory can send to a Tray.ai webhook trigger
- Referrer joined a campaign
- Lead joined a campaign
- Lead qualified
Checked against Referral Factory's own documentation on 2026-10-22
How Tray.ai makes this work
Referral Factory plugs into the whole Tray.ai platform
Tray iPaaS
Integrate and automate across 12,000+ apps, databases, APIs, and services with visual workflows, error handling, and observability.
Learn moreTray Helix agents
Agents in the apps your teams run on Tray Helix that read, write, and act in Referral Factory, with a person's approval on any tool you choose.
Learn moreAgent Gateway for MCP
Expose Referral Factory actions as governed MCP tools: observable, rate-limited and authenticated.
Learn moreTray Helix
Build apps on Referral Factory data with your AI assistant, then deploy, run, and govern them on Tray.ai.
Learn moreMore marketing apps on Tray.ai
Dedicated connectors and other apps Tray.ai reaches in the same category. See every marketing connector →
Frequently asked questions
What can a Tray.ai workflow do in Referral Factory?
The Referral Factory API documents 18 actions across 5 resources (Campaigns, Referrers, Leads, Goals, Rewards). For example: List all campaigns; List all referrers; List all leads. A workflow can make any documented call through the HTTP Connector.
How does Tray.ai authenticate with Referral Factory?
The Referral Factory API uses a bearer token. You save it once as a Tray.ai authentication, and the HTTP Connector adds it to every request.
Which Referral Factory events can start a Tray.ai workflow?
Referral Factory sends 3 events to a webhook URL, for example: Referrer joined a campaign; Lead joined a campaign; Lead qualified. A Tray.ai webhook trigger receives them and starts a workflow.
See Referral Factory working against your stack.
We'll walk through a tailored demo with your systems plugged in.
Thanks. Someone from our team will be in touch soon.