Integrations Usage Details

Get a paginated, per-flow breakdown of an organization's integrations (ActivePieces) task usage.

Before You Begin

Prerequisites

  • A role with usage stats access (Admin / Super Admin) on the Organization.
  • 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, or last_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. by accepts name, usage (tasks consumed), or status; order accepts asc or desc. Any other field falls back to the default sort (usage descending).
  • 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

  • totalFlows and totalTasks are computed over the full result set, not just the current page.
  • Default sort is usage (tasks consumed) descending when sort is omitted.
  • status and search are applied before pagination, so the totals and page cursors reflect the filtered set.
  • project.icon and project.color are reserved on the contract and may be null.
  • For the organization-level summary and usage time series, see Integrations usage stats query.