---
updatedAt: 2025-07-11T10:54:24.000Z
agentTools:
  projectIndex: https://developers.kommo.com/llms.txt
---

# Unlink entities

This method allows unlinking entities from a lead, contact or company.

**Limitations**\
The method is available in correspondence to the user rights.

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "kommo-api-references",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://{subdomain}.kommo.com",
      "variables": {
        "subdomain": {
          "default": "subdomain"
        }
      }
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "oauth2",
        "flows": {}
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/api/v4/{entity}/{entity_id}/unlink": {
      "post": {
        "summary": "Unlinking entities",
        "description": "This method allows unlinking entities from a lead, contact or company.",
        "operationId": "unlinking-entities",
        "parameters": [
          {
            "name": "Content-Type",
            "in": "header",
            "description": "Request header",
            "schema": {
              "type": "string",
              "default": "application/json"
            }
          },
          {
            "name": "entity",
            "in": "path",
            "description": "Entity type",
            "schema": {
              "type": "string",
              "enum": [
                "leads",
                "contacts",
                "companies"
              ]
            },
            "required": true
          },
          {
            "name": "entity_id",
            "in": "path",
            "description": "ID of a lead/contact/company to remove linked entities from",
            "schema": {
              "type": "integer",
              "format": "int32"
            },
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "RAW_BODY": {
                    "type": "array",
                    "items": {
                      "properties": {
                        "to_entity_type": {
                          "type": "string",
                          "description": "Type of entity to be unlinked (leads, contacts, companies, catalog_elements)"
                        },
                        "to_entity_id": {
                          "type": "integer",
                          "description": "ID of entity to be unlinked",
                          "format": "int32"
                        },
                        "metadata": {
                          "type": "object",
                          "properties": {
                            "catalog_id": {
                              "type": "integer",
                              "description": "List ID",
                              "format": "int32"
                            },
                            "updated_by": {
                              "type": "integer",
                              "description": "The ID of the user performing the unlinking",
                              "format": "int32"
                            }
                          }
                        }
                      },
                      "type": "object"
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "204",
            "content": {
              "application/json": {
                "examples": {
                  "Entities unlinked successfully": {
                    "value": "{}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          },
          "400": {
            "description": "400",
            "content": {
              "application/json": {
                "examples": {
                  "Invalid data is given. Details are available in the response": {
                    "value": "{}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          },
          "401": {
            "description": "401",
            "content": {
              "text/plain": {
                "examples": {
                  "The user is not authorized": {
                    "value": ""
                  }
                }
              }
            }
          },
          "403": {
            "description": "403",
            "content": {
              "text/plain": {
                "examples": {
                  "Insufficient rights to call this method": {
                    "value": ""
                  }
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```