404 reply when recursively listing input items with Responses API

Ola Ingvarsson 25 Reputation points
2025-05-07T10:12:00.3766667+00:00

When listing input items with the Responses API we get the first 20 items. When we try to list the next 20 items using last_id and the after parameter we get an error message like this:

NotFoundError: 404 No item found with id 'msg_681b2a06fbfc8190b8028aa84411af720d7696e647f77df5'

We can see that the message with the above id indeed exists when we list the first 20 items.

Azure OpenAI Service
Azure OpenAI Service
An Azure service that provides access to OpenAI’s GPT-3 models with enterprise capabilities.
4,006 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.