Contacts

Detach a document from a contact

DELETE
/api/contacts/{contactId}/documents/{documentId}

Removes the document entry from the contact's documents array. The underlying R2 object is intentionally preserved so it remains addressable by any message attachments that reference it.

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

Path Parameters

contactId*string
documentId*string

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X DELETE "https://example.com/api/contacts/string/documents/string"
{  "message": "Conversation deleted"}