Skip to content

Pull your workflow run data into your own dashboards

The numbers in the Insights Hub, from active workflows to data volume to failed runs, are now a documented API. Pull them into the dashboard, report or alert your team already uses.

Tray iPaaS

What you need: Any Tray organization. Call it with an API user's token. What comes back follows that user's organization role.

run resource q time
enrich-accounts 2 2.1s
sync-orders 0 0.9s
nightly-export 5 queued
score-leads 0 short
one place · not assembled

Monday morning, the integrations team at a software company wants one screen. How many workflows ran over the weekend, how many failed, which projects are busiest, and which of their customers’ embedded solutions are moving the most data. The answers have always been in the Insights Hub. But the Hub is one more tab to open, and nobody can put it on the wall next to the rest of the company’s metrics.

Now the same figures come out of an API, alongside the monitoring built into every workflow. Call it from the BI tool, a nightly script or a Slack alert, and the team’s dashboard fills in on its own.

An example

The integrations team builds an “Acme operations” dashboard in the BI tool the company already runs.

1. The headline numbers

One call to the KPIs endpoint returns active workflows, data volume, end users and more, each with the change against the previous period of the same length. Those become the tiles across the top.

2. The chart

A call to the time series endpoint returns workflow runs over the month, broken down by project, workflow, connector or user. The ten largest series come back with the rest combined as “Others”, and a CSV version is there if the BI tool prefers a file.

3. The table that gets acted on

The table endpoint returns one row per workflow, ordered by failed runs. The team’s Monday meeting starts with the top of that list, and a script posts the same rows to Slack whenever one crosses a threshold they set.

4. Pickers that follow the data

The list endpoints return the workflows, projects, solutions and solution instances to filter by, so the dashboard’s dropdowns are built from the account itself and stay current as things are added.

What it covers

  • KPIs. Active workflows, task runs, data volume, solutions, solution instances and end users, plus MCP tool calls and the people using them.
  • Time series. Charts by workflow, project, connector or user, over any period you ask for.
  • Tables. One row per workflow, project, connector, workspace or solution instance, with a column list so you can build the headers.
  • Lists. Workflows, projects, solutions and solution instances, with search and paging.

Who gets something out of it

Platform and integration teams. A morning view of what ran and what failed, in the tool the rest of the company already reads.

Teams running Tray for their customers. A usage view per customer from the solution instance figures, so customer success can see who is busy and who has gone quiet.

Teams rolling out MCP. Tool call totals and the number of people using workflow and connector tools, for a weekly adoption report.

Finance and operations. A monthly pull of run and data volume by project, to show which team’s automations carry the load.

Before you build one

Use an API user’s token. Create the API user and token first. Its role decides which workspaces the numbers cover.

Every call is a POST to a path under /insights/v1/, with the query in the JSON body.

Give each query a start. startPeriod is required, and the interval follows the range: 5 minutes under 50 hours, 1 hour up to 50 days, 1 day beyond.

Page through big tables. Follow endCursor as after until hasNextPage is false.

Solution instance tables cover up to 31 days and run one at a time per organization.

How each endpoint works, with requests and responses, is in the docs linked above.

Read more

Quick answers

Who can call it?

An API user, with its token. Owners and admins see every workspace. Contributors and viewers see the workspaces they can access, and the list endpoints only ever return items in workspaces the caller can reach.

How fresh is the data?

About 20 minutes after a run ends. Solution instance figures can take up to 40 minutes after the end of the hour.

How often can I call it?

Up to 300 requests a minute and 5,000 an hour. Past that the API returns 429, and the RateLimit-Limit, RateLimit-Remaining and RateLimit-Reset headers say where you stand.

Are these the figures I'm billed on?

No. Insights task runs are for monitoring. Billable usage comes from the Usage APIs.

I already use the undocumented endpoints. What should I do?

Move to the documented ones. They are the supported way to read this data, and the docs give a request and a response for each.

Try it on Tray Free

Tray Free includes Tray iPaaS and Tray Helix, with a $100 starter credit and no time limit.