v1

latestOpenAPI 3.0.02026-07-1329122146.2 KB
ChatService

Deletes specific turns from a conversation within the chat history corpus. This enables developers to remove inaccurate or inappropriate responses from the conversation history.

Some tips for this API:

  • This operation authenticates with either an API Key or OAuth 2.0 (in a JWT "Bearer Token"). You can find details of how to set up an API key or use OAuth 2.0 here.
post/v1/delete-turns

Headers

customer-idinteger required

Enter the Customer ID to use for the request.

timeoutstring

(Optional) Enter the timeout value of the request in seconds, such as 10S or 30S.

Request body

conversationIdstring

The ID of the conversations from which to delete turns.

turnIdstring

The ID of the turn to start deletion from. All turns in this conversation starting from this turn (inclusive) will be deleted.

Response

A successful response.