Delete Response

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…

Delete Response

The Delete Response API allows you to delete a previously generated AI response using its context token. This is useful for cleaning up responses that are no longer needed or for managing response storage.

Endpoint

POST https://api.aeronpay.in/api/serviceapi-prod/api/ai/delete-response

Request Parameters

ParameterTypeRequiredDescription
client_referenceIdstringYesUnique client reference ID (max 30 characters)
context_tokenstringYesUnique token received in the response of Create API

Request Example

{
    "client_referenceId": "AI5687654362456",
    "context_token": "apay_68946e7042d481a3829228037001395f08ecc0bf999ba6b7"
}

Response Structure

Success Response (200)

{
    "status": "SUCCESS",
    "status_code": "200",
    "message": "Response deleted for context_token: apay_68946e7042d481a3829228037001395f08ecc0bf999ba6b7"
}
FieldTypeDescription
statusstringStatus of the operation (SUCCESS/FAILED)
status_codestringHTTP status code as string
messagestringConfirmation message including the deleted context token

Implementation Notes

  • The client_referenceId should be unique for each request and must not exceed 30 characters
  • The context_token must be a valid token obtained from a previous AI API response

Use Cases

  • Cleanup: Remove responses that are no longer needed to manage storage
  • Privacy: Delete sensitive responses after processing
  • Resource Management: Clear old responses to optimize system performance

Error Handling

If the deletion fails, you may receive error responses such as:

  • Invalid context token
  • Token already deleted
  • Missing required parameters

Make sure to handle these scenarios appropriately in your implementation.

Body Params
string
required
string
required
Headers
string
required
string
required
Response
200
Language
LoadingLoading…
Response
Click Try It! to start a request and see the response here!