Skip to main content
Question

Row First - Doesn`t work

  • October 15, 2025
  • 1 reply
  • 40 views

ricardopestana

I'm setting the first parameter to 500, but the API response contains only 50 records.

This the query:

query Cards($pipe_id: ID!, $first: Int!, $after: String) {
        cards(pipe_id: $pipe_id, first: $first, after: $after) {
            edges {
                node {
                    id
                    fields { name value }
                    }
                }
            }
            pageInfo {
                endCursor
                hasNextPage
            }
        }
    }

1 reply

Alan dOliveira
Pipefy Staff
Forum|alt.badge.img

The Pipefy API enforces a maximum limit of 50 records per request to ensure stability. This limit applies even if you ask for a larger number in the first parameter.

 

To retrieve more than 50 records, you must use cursor-based pagination. This means you make your first request (for 50 items) and check the pageInfo in the response. If hasNextPage is true, you take the endCursor value and pass it as the after parameter in your next request to fetch the next batch of 50. You repeat this process until hasNextPage is false.