DELETE/v1/messages/{threadId}

Delete a message thread

Deletes a specific message thread. Use threadId to identify the thread to remove. A successful response confirms deletion without returning a response body.

1 parameter
threadIdstringrequired
The unique identifier of the thread to delete.

3 status codes
204Returns no content after the thread is deleted.
401Returned when the request is unauthenticated.
errorobjectoptional
404Returned when the thread does not exist.
errorobjectoptional

Error handling

A 401 is returned when the request is unauthenticated. A 404 is returned when the threadId path parameter does not identify an existing thread.