> For clean Markdown of any page, append .md to the page URL. > For a complete documentation index, see https://docs.withpersona.com/2021-05-14/pagination/llms.txt. > For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.withpersona.com/_mcp/server. # Pagination > Paginate list endpoints with cursors and configurable page sizes. Pagination is implemented with a cursor to ensure that consecutive requests of pages are not affected by newly created objects. When listing a resource, the response will contain a list of objects up to the specified page size. The most recently created object will appear first. All pagination fields are optional and should be passed in as URL parameters. | Parameter | Description | | ------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | page\[after] | A cursor for use in pagination. `page[after]` is the object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `inq_bar`, your subsequent call can include `page[after]=inq_bar` in order to fetch the next page of the list. | | page\[before] | A cursor for use in pagination. `page[before]` is the object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `inq_bar`, your subsequent call can include `page[before]=inq_bar` in order to fetch the previous page of the list. | | page\[size] | A limit on the number of objects returned. Limit can range between 1 and 100 (default is 10). | **`ruby`** ```ruby ruby require 'http' response = HTTP. headers('Authorization': "Bearer #{api_key}"). get('https://api.withpersona.com/api/v1/inquiries?page[after]=inq_4eC39HqLyjWDarjtT1zdp7dc&page[size]=100') inquiry = JSON.parse(response.body) ``` **`python`** ```python python import requests response = requests.get( 'https://withpersona.com/api/v1/inquiries?page[after]=inq_4eC39HqLyjWDarjtT1zdp7dc&page[size]=100', headers: { 'Authorization': 'Bearer {}'.format(api_key) }, ) inquiry = response.json() ``` **`javascript`** ```javascript javascript const request = require("request"); request( { json: true, url: "https://withpersona.com/api/v1/inquiries?page[after]=inq_4eC39HqLyjWDarjtT1zdp7dc&page[size]=100", headers: { Authorization: 'Bearer ' + apiKey } }, (err, res, body) => { inquiry = res; } ); ``` > Paginate list endpoints with cursors and configurable page sizes.