API reference
Remove an item from a conversation.
const url = 'https://api.helping.io/v1/conversations/example/items/example';const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request DELETE \ --url https://api.helping.io/v1/conversations/example/items/example \ --header 'Authorization: Bearer <token>'Only items you added can be removed. The answer is the conversation.
Authorizations
Section titled “Authorizations”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters”The opaque conv_... id of the conversation
The item’s id, as the item list returned it
Responses
Section titled “ Responses ”The conversation the item was removed from.
A conversation.
OpenAI requires all four fields, so none of them is optional here and none
is skipped when empty. metadata in particular: a conversation with no
labels answers with {}, never with the field absent.
object
When the conversation was created, in seconds since the Unix epoch.
The conversation’s opaque id, conv_....
The customer’s own labels on this conversation.
object
Always conversation.
Examplegenerated
{ "created_at": 1, "id": "example", "metadata": {}, "object": "example"}The item was produced by a response and cannot be removed (the error envelope)
Missing or invalid API key (the error envelope)
The key is not entitled to what the request asked for (the error envelope)
No such conversation or item, or one this key cannot reach.
This organization has exhausted its delete allowance; retry after the Retry-After header.
The request could not be completed; quote the x-request-id response header when reporting it.
The request could not be served this instant; retry after the Retry-After header.