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.