API reference
Delete a stored chat completion
DELETE
/v1/chat/completions/{completion_id}Only complete, settled results explicitly saved with store=true are accessible to the same API Key for seven days. An empty query does not prove non-execution: never automatically refund or resend. store and metadata do not guarantee idempotency.
Authentication and permissions
Use your current GloopAPI key. Available models, capabilities and permissions depend on its catalog and the endpoint documentation.
Authorization: Bearer $GLOOP_API_KEYAuthentication schemes: BearerAuth
Request
Path parameters
completion_idstringRequired
Responses and errors
HTTP 200
Success
application/json
- Type
- object
HTTP 400
Invalid parameters
application/json
- Type
- object
- Required fields
error
errorobjectRequirederror child fields (4)
codestringOptionalmessagestringOptionaltypestringOptionalrequest_idstringOptional
HTTP 401
Invalid Key
application/json
- Type
- object
- Required fields
error
errorobjectRequirederror child fields (4)
codestringOptionalmessagestringOptionaltypestringOptionalrequest_idstringOptional
HTTP 404
Result missing, deleted, expired, or not yet deliverable
application/json
- Type
- object
- Required fields
error
errorobjectRequirederror child fields (4)
codestringOptionalmessagestringOptionaltypestringOptionalrequest_idstringOptional
HTTP 503
Temporarily unavailable
application/json
- Type
- object
- Required fields
error
errorobjectRequirederror child fields (4)
codestringOptionalmessagestringOptionaltypestringOptionalrequest_idstringOptional