Get a paginated, per-flow breakdown of an organization's integrations (ActivePieces) task usage.
Before You Begin
- GraphQL Playground:
🔗 All examples should be run in the GraphQL Playground.
➡️ New to GraphQL? Review the Playground Basics Guide. - Authentication:
🛠️ Use Service Account tokens (Personal Access Tokens are deprecated).
Prerequisites
- A role with usage stats access (
Admin/Super Admin) on theOrganization. Organization UUID.
Step 1. Find the Organization UUID
Find the organization UUID. You can retrieve it using this query:
{
organization(id: "<ORGANIZATION_ID>") {
uuid
}
}
The organization ID can be found on the home page url: https://app.pipefy.com/organizations/<ORGANIZATION_ID>
Step 2. Execute the query
query integrationsUsageDetails(
$organizationUuid: ID!
$period: PeriodFilter!
$status: String
$search: String
$sort: SortCriteria
$first: Int
$after: String
) {
integrationsUsageDetails(
organizationUuid: $organizationUuid
period: $period
status: $status
search: $search
sort: $sort
first: $first
after: $after
) {
totalFlows
totalTasks
edges {
node {
name
project {
name
icon
color
}
tasks
runs
percentOfTotal
lastRunAt
status
}
}
pageInfo {
hasNextPage
endCursor
}
}
}
Variables:
{
"organizationUuid": "<ORGANIZATION_UUID>",
"period": "current_month",
"first": 20,
"sort": { "by": "usage", "order": "desc" }
}
Input Explanation:
- organizationUuid: The UUID of the organization you want the per-flow details for.
- period: The time window to aggregate. One of
current_month,last_month, orlast_3_months. - status: (optional) Filter by flow status (e.g.
"ENABLED","DISABLED"). - search: (optional) Free-text filter matched against the flow name and the project name.
- sort: (optional) Field and direction to sort by.
byacceptsname,usage(tasks consumed), orstatus;orderacceptsascordesc. Any other field falls back to the default sort (usagedescending). - first / after: Standard cursor-based pagination arguments.
Sample Response:
{
"data": {
"integrationsUsageDetails": {
"totalFlows": 7,
"totalTasks": 1280,
"edges": [
{
"node": {
"name": "Sync new leads to CRM",
"project": {
"name": "Sales Ops",
"icon": "rocket",
"color": "blue"
},
"tasks": 540,
"runs": 90,
"percentOfTotal": 42.19,
"lastRunAt": "2026-06-16T17:49:02Z",
"status": "ENABLED"
}
}
],
"pageInfo": {
"hasNextPage": true,
"endCursor": "MQ"
}
}
}
}
The response returns one node per flow with its tasks consumed, number of runs, percentOfTotal, lastRunAt, and status, plus the connection-level totals totalFlows and totalTasks aggregated across all pages.
Key Notes
totalFlowsandtotalTasksare computed over the full result set, not just the current page.percentOfTotalis the flow's share of the returned set's total tasks, as a percentage rounded to two decimals (so it matchestotalTasksas the denominator). It is0.0when no flow consumed tasks.- Default sort is
usage(tasks consumed) descending whensortis omitted. statusandsearchare applied before pagination, so the totals and page cursors reflect the filtered set.project.name,project.icon, andproject.colorreflect the pipe's live identity. All three arenullwhen the flow's pipe can no longer be resolved (e.g. a deleted pipe), in which case the API returns no identity rather than a UUID placeholder.- For the organization-level summary and usage time series, see Integrations usage stats query.

