API reference
Replace a conversation's metadata.
const url = 'https://api.helping.io/v1/conversations/example';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"metadata":{}}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.helping.io/v1/conversations/example \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "metadata": {} }'metadata is required: this operation exists to set it. Send {} to clear
the labels.
Authorizations
Section titled “Authorizations”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters”The opaque conv_... id of the conversation
Request Bodyrequired
Section titled “Request Bodyrequired”The metadata to store.
Replace a conversation’s labels.
metadata is required: this operation exists to set it. Send {} to clear.
object
The labels to store, replacing whatever was there.
object
Examplegenerated
{ "metadata": {}}Responses
Section titled “ Responses ”The conversation, with its new metadata.
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"}Missing metadata, or metadata outside the documented limits (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 one this key cannot reach.
The Idempotency-Key was already used and its result cannot be returned for this request, or its first request is still being processed (the error envelope)
This organization has exhausted its 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.