API V1 cursor index pagination

I am having trouble with cursor pagination index values. I have no issue with start offset pagination. However, I need advice on how to get the cursor= index value (initial and next page) which is documented to be a format of ‘opaque string value’ as opposed to ‘string’. From what I read outside of Pipedrive, the cursor index is the base64 encoded value of some string representing an index value. Please advise on how to get the cursor index for the first (or any) page. In case it makes any difference, I am trying to get pagination to work on the deals/changelog endoint. Thank you.

ex:This is the https/url that I am trying to get to work for deal id 2719:
image|683x23

You don’t need to send the cursor value on the first query. You receive back the first chunk of results along with additional_data which has the next_cursor value that you then use on the next API call setting cursor=XXXXXX and keep repeating until next_cursor comes back as null

  ],
    "additional_data": {
        "next_cursor": "aWQ6MjYz"
    }
}

@calford-vertify Thank you so much. Your advice to not send any cursor value on the first query was the breakthrough I needed :slight_smile:

You are very welcome. Sometimes these things just need another set of eyes on it!

Craig
Dripping Springs, TX