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
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": null,
"color": null
},
"tasks": 540,
"runs": 90,
"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, 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.- Default sort is
usage(tasks consumed) descending whensortis omitted. statusandsearchare applied before pagination, so the totals and page cursors reflect the filtered set.project.iconandproject.colorare reserved on the contract and may benull.- For the organization-level summary and usage time series, see Integrations usage stats query.
