Skip to content
Mode logo

Connectors / Data and analytics · HTTP Connector

Automate Mode with Tray.ai

Update a report, create a report run and create a collection in Mode. Connect Mode to the rest of your data and analytics stack with Tray.ai.

What can you do with Mode on Tray.ai?

Mode is an analytics platform where teams write SQL, Python and R, build reports and charts, and share or schedule them. Tray.ai connects to Mode through the HTTP Connector, so your workflows can call the Mode API alongside the rest of your stack.

  • Create a report run each morning and share the results with finance in your team chat.
  • Get a report run when it finishes and load the figures into your data warehouse.
Connects through
HTTP Connector
Authentication
Basic authentication
Base URL
https://app.mode.com/api

Set it up

Connect Mode to Tray.ai

Each step uses Mode's own API details, from its documentation.

Step 1

Save Mode's username and password

Save the credentials Mode 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://app.mode.com/api as the base URL. Or paste a cURL example from Mode's API docs, and Tray.ai fills in the method, URL, and headers.

Step 3

Start with “Get a report”

It's one of 14 documented actions, under Reports. The response comes back as data the next step can map into your other apps.

Step 4

Hand it to an AI agent

Wrap “List reports in a collection” and “Update a report” 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 Mode

Each one uses actions and events from Mode's own API documentation.

Run Mode reports and share them in Slack

When

On a schedule

Then

  1. Create a report run
  2. Get a report run to check it finished
  3. Post the report link to the analytics channel in Slack

With Slack

Open Jira issues for failed Mode report runs

When

On a schedule

Then

  1. List report runs
  2. Create an issue in Jira for any failed run

With Jira

Apps you can build on Mode data

Internal tools your team can build with an AI assistant, each one using Mode calls from its API documentation.

Report catalog

Lists reports in each collection and lets an analyst archive stale ones.

Report run monitor

Shows recent runs for a report and lets a user start a fresh run.

Give your AI agents Mode tools

Build an MCP server on Mode 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

  • Get a report
  • List report runs
  • List collections
  • List reports in a collection
  • Update a report
  • Archive a report
  • Delete a report
  • Create a report run

What the Mode API covers

3 resources and 14 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.

Reports

  • Get a report
  • List reports in a collection
  • Update a report
  • Archive a report
  • Delete a report

Report runs

  • List report runs
  • Create a report run
  • Get a report run
  • Clone a report run

Collections

  • List collections
  • Get a collection
  • Create a collection
  • Update a collection
  • Delete a collection

Checked against Mode's own documentation on 2026-10-27

mode.com/developer/api-reference/introduction

Frequently asked questions

What can a Tray.ai workflow do in Mode?

+

The Mode API documents 14 actions across 3 resources (Reports, Report runs, Collections). For example: Get a report; List report runs; List collections. A workflow can make any documented call through the HTTP Connector.

How does Tray.ai authenticate with Mode?

+

The Mode API uses basic authentication. You save it once as a Tray.ai authentication, and the HTTP Connector adds it to every request.

See Mode working against your stack.

We'll walk through a tailored demo with your systems plugged in.

Great — a couple more details

This helps us connect you with the right person. Optional, and you can skip it.