Connectors / Marketing · HTTP Connector
Automate TUNE with Tray.ai
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.
Step 1
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.
Step 2
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.
Step 3
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.
Step 4
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.
Give your AI agents TUNE tools
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.
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
Intelligent Integration
Integrate and automate across 10,000+ apps, databases, APIs, and services with visual workflows, error handling, and observability.
Learn more →Agent Builder
Build AI agents that read, write, and take action in TUNE — with guardrails, audit, and human-in-the-loop.
Learn more →Agent Gateway for MCP
Expose TUNE actions as governed MCP tools — observable, rate-limited, authenticated.
Learn more →Tray Helix
Build apps on TUNE data with your AI assistant, then deploy, run, and govern them on Tray.ai.
Learn more →More 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.