Delete a contact from the workspace. This cannot be undone. The contact's conversations stay, without a contact, and can no longer send. A contact connected right now, as a website visitor with the chat widget open, is kept and the call is refused with 422 and code: contact_online; retry once they have left. The key needs chat_contacts.delete. A personal key deletes the contact as its owner: their role must allow deleting contacts (disableChatContactDelete). A personal key acts as its owner and never does more than they can in the app, right now: the owner's role, and for a conversation the owner's inboxes, teams and conversation access, decide. A refusal is 403 with details.code API_KEY_OWNER_PERMISSION_DENIED, naming the key permission and the part of the role that withholds it. A workspace key acts as Robô for the whole workspace and is held to no person's access. Every operation is scoped by the required workspaceId. A workspace-scoped API key that names any other workspace is refused with 403 before any query runs, so a workspace key can only ever reach its own workspace. A contact in another workspace is reported as 404, never as denied.
/api/v1/chat/contacts/{contactId}Authorization
apiKey Your Studio API key, personal or workspace-scoped. Generate one under Settings, then API Keys. Operations that reject workspace keys say so in their own description.
In: header
Path Parameters
Contact to delete.
1 <= lengthQuery Parameters
Workspace the contact belongs to.
1 <= lengthResponse Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X DELETE "https://agent-studio.seeyu.ai/api/v1/chat/contacts/string?workspaceId=string" \ -H "X-API-Key: YOUR_API_KEY"{
"success": true,
"contactId": "cnt_01J8F2K3N5P9"
}{
"error": "Invalid input: expected string, received undefined",
"details": [
{
"code": "invalid_type",
"expected": "string",
"path": [
"phone"
],
"message": "Invalid input: expected string, received undefined"
}
]
}{
"error": "Unauthorized"
}{
"error": "The owner of this API key can't use the chat_messages.send permission: their role in this workspace doesn't allow disableChatMessageSend",
"details": {
"code": "API_KEY_OWNER_PERMISSION_DENIED",
"permission": "chat_messages.send",
"control": "disableChatMessageSend"
}
}{
"error": "Conversation not found"
}{
"error": "Cannot delete a contact while they are online",
"code": "contact_online"
}{
"error": "Rate limit exceeded",
"message": "API rate limit exceeded. Please retry after 2026-09-13T12:00:00.000Z",
"retryAfter": 1789286400000
}{
"error": "Internal server error",
"requestId": "req_01J9Z2K3M4N5P6Q7R8S9T0"
}