Definition

Pipefy allows you to set up reports for the pipes within your organization. The reports can be used to gather information regarding the cards within your process, based on the filters and conditions you've configured

Hierarchy and Relations

Accessible through: Pipes

Phases in our API

Through our API you can fetch information about a pipe's reports using a query.

Report Query

This is an example of a query which retrieves information about a report. Replace '12345' with the ID of the pipe containing the reports you'd like to query for. The pipe ID can be retrieved on the interface by looking at the URL of the pipe's page.

378378

Where to find a pipe's ID

If you need to know more attributes regarding a pipe, you can fetch them with a pipe query. Check our GraphQL Console to see what other attributes are available.

{
  pipe(id: 12345) {
    reports {
      id
      name
    }
  }
}

Export Report

To get the link to download the report in .xlsx format, the following steps are required:

  • exportPipeReport mutation to create the export object.
  • pipeReportExport query to get the url to download the file.

exportPipeReport mutation

Replace '1' and '2' with the ID of the pipe and report respectively.

mutation {
  exportPipeReport(input: {pipeId: 1, pipeReportId: 2}) {
    pipeReportExport {
      id
    }
  }
}

pipeReportExport query

Replace '20' with the ID returned by the exportPipeReport mutation.

{
  pipeReportExport(id: 20) {
    fileURL
    state
    startedAt
    requestedBy {
      id
    }
  }
}

Testing our API

When querying for reports, there's much more information available than the ones in the examples of the query shown in the Reports Query section.
Also, keep in mind that our API has a lot of queries and mutations available, not just regarding phases.

For a full list of our GraphQL capabilities, you can access our GraphQL playground and play around with it.

📘

API authentication

Our API is protected, so you have to provide your access token to be able to complete the requests to our API.
You can read more about our Authentication and how to get your access token in our Authentication section.

Once you have the token in hands, within our playground you'll have to add a key in the headers named "Authorization", and the value must be the name "Bearer" followed by your token, like in the image below.

806806

authorization