Connectors / Marketing · HTTP Connector
TUNE integration and API
Create an offer, create an affiliate and create an advertiser in TUNE. Connect TUNE to the rest of your marketing stack with Tray.ai.
What can you do with TUNE on Tray.ai?
TUNE, formerly HasOffers, is a partner marketing platform that networks use to run affiliate offers, track conversions, manage partners, and pay commissions. Tray.ai connects to TUNE through the HTTP Connector, so your workflows can call the TUNE API alongside the rest of your stack. API access comes through TUNE's partner program or API plan, so you need approved credentials first.
- Create a conversion when your ecommerce platform records a sale from an affiliate link.
- Get affiliate commissions monthly and send the totals to finance for payout.
- Update a conversion status to rejected when your billing system records a refund.
- Create an affiliate when a partner application is approved in your CRM.
- Connects through
- HTTP Connector
- Authentication
- An API key in the query string
- Base URL
- https://{network_id}.api.hasoffers.com/Apiv3/json
Set it up
Connect TUNE to Tray.ai
Each step uses TUNE's own API details, from its documentation.
Save TUNE's API key
Ask TUNE for API access. Once it's approved, save the key as a Tray.ai authentication and add it to the query string from $.auth, so it never sits in the workflow itself.
Point the HTTP Client at the API
Add an HTTP Client step and use https://{network_id}.api.hasoffers.com/Apiv3/json as the base URL. Or paste a cURL example from TUNE's API docs, and Tray.ai fills in the method, URL, and headers.
Start with “List offers”
It's one of 18 documented actions, under Offers. The response comes back as data the next step can map into your other apps.
Hand it to an AI agent
Wrap “Get an offer” and “Create an offer” in workflows, and Tray.ai's Agent Gateway for MCP publishes them as governed tools Claude and other AI agents can call.
Workflows to build with TUNE
Connect TUNE with Shopify, HubSpot and NetSuite
Each one uses actions and events from TUNE's own API documentation.
Record Shopify orders as TUNE conversions
When
An order is paid in Shopify
Then
- Create a conversion in TUNE for the order and referring affiliate
With Shopify
Create TUNE affiliates from approved HubSpot partners
When
A partner is approved in HubSpot
Then
- Create an affiliate in TUNE
- Set affiliate approval on the default offer
With HubSpot
Send monthly TUNE commissions to NetSuite
When
On a schedule
Then
- Get affiliate commissions from TUNE
- Create a bill in NetSuite for each affiliate payout
With NetSuite
Apps you can build on TUNE data
Internal tools your team can build with an AI assistant, each one using TUNE calls from its API documentation.
Conversion review queue
Lists recent conversions by affiliate and offer and lets a manager approve or reject each one.
Affiliate approval board
Lists affiliates and offers and lets a partner manager approve an affiliate for an offer or block them.
Commission report
Shows affiliate commissions next to offer stats for the monthly payout review.
TUNE MCP server for AI agents
Build an MCP server on TUNE 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 offers
- List affiliates
- List advertisers
- List conversions
- Get stats
- Get an offer
- Create an offer
- Update an offer
What the TUNE API covers
5 resources and 18 documented actions, each one a call the HTTP Connector can make from a Tray.ai workflow. TUNE gives API access on request, so approved credentials come first. Connecting it takes a few clicks: here's how. New to APIs? Read what an API integration is.
Offers
- List offers
- Get an offer
- Create an offer
- Update an offer
- Set affiliate approval
Affiliates
- List affiliates
- Get an affiliate
- Create an affiliate
- Block an affiliate
Advertisers
- List advertisers
- Get an advertiser
- Create an advertiser
Conversions
- List conversions
- Create a conversion
- Update a conversion status
Reports
- Get stats
- Get conversion reports
- Get affiliate commissions
Checked against TUNE's own documentation on 2026-10-22
How Tray.ai makes this work
TUNE 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 TUNE, with a person's approval on any tool you choose.
Learn moreAgent Gateway for MCP
Expose TUNE actions as governed MCP tools: observable, rate-limited and authenticated.
Learn moreTray Helix
Build apps on TUNE 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 TUNE?
The TUNE API documents 18 actions across 5 resources (Offers, Affiliates, Advertisers, Conversions, Reports). For example: List offers; List affiliates; List advertisers. A workflow can make any documented call through the HTTP Connector.
How does Tray.ai authenticate with TUNE?
The TUNE API uses an API key in the query string. You save it once as a Tray.ai authentication, and the HTTP Connector adds it to every request.
Do I need special access to the TUNE API?
Yes. TUNE gives API access on request, so you need approved credentials before a Tray.ai workflow can call it.
See TUNE 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.