Response Lifecycle With Cleanup
A 3-step recipe with ChatGPT. We can help you get access.
Recipe · 3 steps
Response Lifecycle With Cleanup
with ChatGPT · Artificial Intelligence Management
Create, read, and delete a single stored Responses API response.
- Create the stored response so it can be retrieved and later deleted.
- Retrieve the stored response by id to capture the generated text and token usage before deleting it.
- Delete the stored response so it no longer persists on the account, and confirm the deletion flag in the body.
What you'll need to have ready
- apiKey: OpenAI API key used as the Bearer credential.
- model: Model ID used to generate the response (e.g. gpt-4o).
- input: The prompt to send to the model.
For your developer
Arazzo workflow chatgpt:response-lifecycle-cleanup, 3 operations: createResponse → getResponse → deleteResponse. Specs on APIs.io.