External Publication
Visit Post

Issue With Costs API Pagination – Invalid Page Token Returned

OpenAI Developer Community March 30, 2026
Source

Thanks for reporting this. We identified an issue in the Costs API pagination flow where certain parameter changes between paginated requests could cause an invalid_page_token error, even when the query was logically equivalent.

A fix for this has been deployed, and the cases we were able to reproduce are now working correctly. Could you retry your request and let us know if you’re still seeing the issue?

If it’s still happening, please open a support request with us at support@openai.com and share:

  • the exact request URLs/parameters you’re using for each page

  • the request IDs for the failed calls

  • a short snippet of how you’re handling pagination in code

That will help us confirm whether you’re hitting a remaining edge case. PLEASE make sure to share the case id/case subject here so we can track your request. Thank you!

Discussion in the ATmosphere

Loading comments...