
Connectors / Marketing · HTTP Connector
Automate Rokt with Tray.ai
Rokt is an ecommerce advertising network that places offers in the checkout and confirmation pages of partner sites, and tracks the conversions…
What can you do with Rokt on Tray.ai?
Rokt is an ecommerce advertising network that places offers in the checkout and confirmation pages of partner sites, and tracks the conversions advertisers get from them. Tray.ai connects to Rokt through the HTTP Connector, so your workflows can call the Rokt API alongside the rest of your stack. API access comes through Rokt's partner program or API plan, so you need approved credentials first.
- Send a conversion event to Rokt when an order is confirmed in your e-commerce store.
- Get campaign metadata from Rokt and load it into your marketing reporting.
- Get creative metadata from Rokt to match ad creatives with results in your data warehouse.
- Connects through
- HTTP Connector
- Authentication
- Basic authentication or OAuth 2.0 or a bearer token
- Base URL
- https://s2s.us2.mparticle.com
Set it up
Connect Rokt to Tray.ai
Each step uses Rokt's own API details, from its documentation.
Step 1
Save Rokt's username and password
Ask Rokt for API access. Once it's approved, save the credentials Rokt gives you as a Tray.ai authentication. The HTTP Client sends them as basic auth. They stay out of the workflow and out of the logs.
Step 2
Point the HTTP Client at the API
Add an HTTP Client step and use https://s2s.us2.mparticle.com as the base URL. Or paste a cURL example from Rokt's API docs, and Tray.ai fills in the method, URL, and headers.
Step 3
Start with “Get campaign metadata”
It's one of 5 documented actions, under Campaigns. The response comes back as data the next step can map into your other apps.
Step 4
Hand it to an AI agent
Wrap “Send a conversion event” and “Send a page view event” 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 Rokt tools
Build an MCP server on Rokt 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
- Send a conversion event
- Get campaign metadata
- Send a page view event
- Get audience metadata
- Get creative metadata
What the Rokt API covers
2 resources and 5 documented actions, each one a call the HTTP Connector can make from a Tray.ai workflow. Rokt gives API access on request, so approved credentials come first. Connecting it takes a few clicks: here's how.
Events
- Send a conversion event
- Send a page view event
Campaigns
- Get campaign metadata
- Get audience metadata
- Get creative metadata
Checked against Rokt's own documentation on 2026-11-08
How Tray.ai makes this work
Rokt 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 Rokt — with guardrails, audit, and human-in-the-loop.
Learn more →Agent Gateway for MCP
Expose Rokt actions as governed MCP tools — observable, rate-limited, authenticated.
Learn more →Tray Helix
Build apps on Rokt 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 Rokt?
+
The Rokt API documents 5 actions across 2 resources (Events, Campaigns). For example: Send a conversion event; Get campaign metadata. A workflow can make any documented call through the HTTP Connector.
How does Tray.ai authenticate with Rokt?
+
The Rokt API uses basic authentication, OAuth 2.0, and a bearer token. 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 Rokt API?
+
Yes. Rokt gives API access on request, so you need approved credentials before a Tray.ai workflow can call it.
See Rokt 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.