---
updatedAt: 2025-07-22T09:06:45.000Z
agentTools:
  projectIndex: https://pt-developers.kommo.com/llms.txt
---

# Obtendo um contato pelo seu ID

Este método permite obter os dados de um contato específico pelo seu ID

**Limitações**\
O método está disponível de acordo com os direitos do usuário.

**Parâmetros “with”**

| Parâmetro         | Descrição                                                             |
| :---------------- | :-------------------------------------------------------------------- |
| leads             | Adiciona informações sobre os leads vinculados ao contato na resposta |
| catalog\_elements | Adiciona elementos das listas vinculados ao contato na resposta       |

**Cabeçalho de tipo de dado quando a solicitação é bem-sucedida**\
Content-Type: application/hal+json

**Cabeçalho de tipo de dado em caso de erro**\
Content-Type: application/problem+json

**Parâmetros de resposta**

<Table align={["left","left","left"]}>
  <thead>
    <tr>
      <th>
        Parâmetro
      </th>

      <th>
        Tipo de dado
      </th>

      <th>
        Descrição
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        id
      </td>

      <td>
        int
      </td>

      <td>
        ID de Contato
      </td>
    </tr>

    <tr>
      <td>
        name
      </td>

      <td>
        string
      </td>

      <td>
        Nome completo do Contato
      </td>
    </tr>

    <tr>
      <td>
        first\_name
      </td>

      <td>
        string
      </td>

      <td>
        Primeiro nome do Contato
      </td>
    </tr>

    <tr>
      <td>
        last\_name
      </td>

      <td>
        string
      </td>

      <td>
        Último nome do Contato
      </td>
    </tr>

    <tr>
      <td>
        responsible\_user\_id
      </td>

      <td>
        int
      </td>

      <td>
        ID do usuário responsável pelo Contato
      </td>
    </tr>

    <tr>
      <td>
        group\_id
      </td>

      <td>
        int
      </td>

      <td>
        ID do Grupo do usuário responsável pelo Contato
      </td>
    </tr>

    <tr>
      <td>
        created\_by
      </td>

      <td>
        int
      </td>

      <td>
        ID do usuário que criou o Contato
      </td>
    </tr>

    <tr>
      <td>
        updated\_by
      </td>

      <td>
        int
      </td>

      <td>
        ID do usuário que atualizou o Contato pela última vez
      </td>
    </tr>

    <tr>
      <td>
        created\_at
      </td>

      <td>
        int
      </td>

      <td>
        Data de criação do Contato no formato Unix Timestamp
      </td>
    </tr>

    <tr>
      <td>
        updated\_at
      </td>

      <td>
        int
      </td>

      <td>
        Data de atualização do Contato no formato Unix Timestamp
      </td>
    </tr>

    <tr>
      <td>
        closest\_task\_at
      </td>

      <td>
        int
      </td>

      <td>
        Data da tarefa aberta mais próxima no formato Unix Timestamp
      </td>
    </tr>

    <tr>
      <td>
        custom\_fields\_values
      </td>

      <td>
        array|null
      </td>

      <td>
        Um array dos valores dos campos personalizados atuais do contato
      </td>
    </tr>

    <tr>
      <td>
        account\_id
      </td>

      <td>
        int
      </td>

      <td>
        ID da conta onde o contato está localizado
      </td>
    </tr>

    <tr>
      <td>
        * embedded
      </td>

      <td>
        object
      </td>

      <td>
        Dados das entidades incorporadas
      </td>
    </tr>

    <tr>
      <td>
        * embedded[tags]
      </td>

      <td>
        array
      </td>

      <td>
        Array de dados das Tags do contato
      </td>
    </tr>

    <tr>
      <td>
        * embedded[tags][0]
      </td>

      <td>
        object
      </td>

      <td>
        Modelo da Tag do contato
      </td>
    </tr>

    <tr>
      <td>
        * embedded[tags][0][id]
      </td>

      <td>
        int
      </td>

      <td>
        ID da Tag
      </td>
    </tr>

    <tr>
      <td>
        * embedded[tags][0][name]
      </td>

      <td>
        string
      </td>

      <td>
        Nome da Tag
      </td>
    </tr>

    <tr>
      <td>
        * embedded[tags][0][color]
      </td>

      <td>
        string/null
      </td>

      <td>
        Cor da Tag
      </td>
    </tr>

    <tr>
      <td>
        * embedded[companies]
      </td>

      <td>
        array
      </td>

      <td>
        Array de dados da empresa vinculada. Este array sempre consiste em 1 elemento.
      </td>
    </tr>

    <tr>
      <td>
        * embedded[companies][0]
      </td>

      <td>
        object
      </td>

      <td>
        Dados da Empresa vinculada
      </td>
    </tr>

    <tr>
      <td>
        * embedded[companies][0][id]
      </td>

      <td>
        int
      </td>

      <td>
        ID da Empresa vinculada
      </td>
    </tr>

    <tr>
      <td>
        * embedded[leads]
      </td>

      <td>
        array
      </td>

      <td>
        **O parâmetro GET “with” é obrigatório**\
        Array de dados dos leads vinculados
      </td>
    </tr>

    <tr>
      <td>
        * embedded[leads][0]
      </td>

      <td>
        object
      </td>

      <td>
        Dados do lead vinculado
      </td>
    </tr>

    <tr>
      <td>
        * embedded[leads][0][id]
      </td>

      <td>
        int
      </td>

      <td>
        ID do lead vinculado
      </td>
    </tr>

    <tr>
      <td>
        * embedded[catalog\_elements][catalog_elements]
      </td>

      <td>
        array
      </td>

      <td>
        **O parâmetro GET “with” é obrigatório**\
        Array de dados dos elementos das listas vinculadas
      </td>
    </tr>

    <tr>
      <td>
        * embedded[catalog\_elements][0]
      </td>

      <td>
        object
      </td>

      <td>
        Dados do elemento vinculado da lista
      </td>
    </tr>

    <tr>
      <td>
        * embedded[catalog\_elements][0][id]
      </td>

      <td>
        int
      </td>

      <td>
        ID do elemento vinculado
      </td>
    </tr>

    <tr>
      <td>
        * embedded[catalog\_elements][0][metadata]
      </td>

      <td>
        object
      </td>

      <td>
        Metadados do elemento
      </td>
    </tr>

    <tr>
      <td>
        * embedded[catalog\_elements][0][quantity]
      </td>

      <td>
        int
      </td>

      <td>
        Quantidade de elementos vinculados
      </td>
    </tr>

    <tr>
      <td>
        * embedded[catalog\_elements][0][catalog\_id][catalog_id]
      </td>

      <td>
        int
      </td>

      <td>
        ID da lista do elemento vinculado
      </td>
    </tr>
  </tbody>
</Table>

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "referencias-de-api-da-kommo",
    "version": "1.1"
  },
  "servers": [
    {
      "url": "https://{subdomain}.kommo.com",
      "variables": {
        "subdomain": {
          "default": "subdomain"
        }
      }
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "oauth2",
        "flows": {}
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/api/v4/contacts/{id}": {
      "get": {
        "summary": "Obtendo um contato pelo seu ID",
        "description": "Este método permite obter os dados de um contato específico pelo seu ID",
        "operationId": "obtendo-um-contato-pelo-seu-id",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "ID do Contato",
            "schema": {
              "type": "integer",
              "format": "int32"
            },
            "required": true
          },
          {
            "name": "with",
            "in": "query",
            "description": "Este parâmetro aceita uma string que pode consistir em vários valores separados por vírgulas.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Solicitação bem-sucedida": {
                    "value": "{\n    \"id\": 3,\n    \"name\": \"João Silva\",\n    \"first_name\": \"João\",\n    \"last_name\": \"Silva\",\n    \"responsible_user_id\": 504141,\n    \"group_id\": 0,\n    \"created_by\": 504141,\n    \"updated_by\": 504141,\n    \"created_at\": 1582117331,\n    \"updated_at\": 1590943929,\n    \"closest_task_at\": null,\n    \"custom_fields_values\": [\n        {\n            \"field_id\": 3,\n            \"field_name\": \"Telefone de trabalho\",\n            \"field_code\": \"PHONE\",\n            \"field_type\": \"multitext\",\n            \"values\": [\n                {\n                    \"value\": \"+14155551234\",\n                    \"enum_id\": 1,\n                    \"enum\": \"WORK\"\n                }\n            ]\n        }\n    ],\n    \"account_id\": 28805383,\n    \"_links\": {\n        \"self\": {\n            \"href\": \"https://example.amocrm.com/api/v4/contacts/3\"\n        }\n    },\n    \"_embedded\": {\n        \"tags\": [],\n        \"leads\": [\n            {\n                \"id\": 1,\n                \"_links\": {\n                    \"self\": {\n                        \"href\": \"https://example.amocrm.com/api/v4/leads/1\"\n                    }\n                }\n            },\n            {\n                \"id\": 3916883,\n                \"_links\": {\n                    \"self\": {\n                        \"href\": \"https://example.amocrm.com/api/v4/leads/3916883\"\n                    }\n                }\n            }\n        ],\n        \"customers\": [\n            {\n                \"id\": 134923,\n                \"_links\": {\n                    \"self\": {\n                        \"href\": \"https://example.amocrm.com/api/v4/customers/134923\"\n                    }\n                }\n            }\n        ],\n        \"catalog_elements\": [],\n        \"companies\": [\n            {\n                \"id\": 1,\n                \"_links\": {\n                    \"self\": {\n                        \"href\": \"https://example.amocrm.com/api/v4/companies/1\"\n                    }\n                }\n            }\n        ]\n    }\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "integer",
                      "example": 3,
                      "default": 0
                    },
                    "name": {
                      "type": "string",
                      "example": "João Silva"
                    },
                    "first_name": {
                      "type": "string",
                      "example": "João"
                    },
                    "last_name": {
                      "type": "string",
                      "example": "Silva"
                    },
                    "responsible_user_id": {
                      "type": "integer",
                      "example": 504141,
                      "default": 0
                    },
                    "group_id": {
                      "type": "integer",
                      "example": 0,
                      "default": 0
                    },
                    "created_by": {
                      "type": "integer",
                      "example": 504141,
                      "default": 0
                    },
                    "updated_by": {
                      "type": "integer",
                      "example": 504141,
                      "default": 0
                    },
                    "created_at": {
                      "type": "integer",
                      "example": 1582117331,
                      "default": 0
                    },
                    "updated_at": {
                      "type": "integer",
                      "example": 1590943929,
                      "default": 0
                    },
                    "closest_task_at": {},
                    "custom_fields_values": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "field_id": {
                            "type": "integer",
                            "example": 3,
                            "default": 0
                          },
                          "field_name": {
                            "type": "string",
                            "example": "Telefone de trabalho"
                          },
                          "field_code": {
                            "type": "string",
                            "example": "PHONE"
                          },
                          "field_type": {
                            "type": "string",
                            "example": "multitext"
                          },
                          "values": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "value": {
                                  "type": "string",
                                  "example": "+14155551234"
                                },
                                "enum_id": {
                                  "type": "integer",
                                  "example": 1,
                                  "default": 0
                                },
                                "enum": {
                                  "type": "string",
                                  "example": "WORK"
                                }
                              }
                            }
                          }
                        }
                      }
                    },
                    "account_id": {
                      "type": "integer",
                      "example": 28805383,
                      "default": 0
                    },
                    "_links": {
                      "type": "object",
                      "properties": {
                        "self": {
                          "type": "object",
                          "properties": {
                            "href": {
                              "type": "string",
                              "example": "https://example.amocrm.com/api/v4/contacts/3"
                            }
                          }
                        }
                      }
                    },
                    "_embedded": {
                      "type": "object",
                      "properties": {
                        "tags": {
                          "type": "array"
                        },
                        "leads": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "integer",
                                "example": 1,
                                "default": 0
                              },
                              "_links": {
                                "type": "object",
                                "properties": {
                                  "self": {
                                    "type": "object",
                                    "properties": {
                                      "href": {
                                        "type": "string",
                                        "example": "https://example.amocrm.com/api/v4/leads/1"
                                      }
                                    }
                                  }
                                }
                              }
                            }
                          }
                        },
                        "customers": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "integer",
                                "example": 134923,
                                "default": 0
                              },
                              "_links": {
                                "type": "object",
                                "properties": {
                                  "self": {
                                    "type": "object",
                                    "properties": {
                                      "href": {
                                        "type": "string",
                                        "example": "https://example.amocrm.com/api/v4/customers/134923"
                                      }
                                    }
                                  }
                                }
                              }
                            }
                          }
                        },
                        "catalog_elements": {
                          "type": "array"
                        },
                        "companies": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "integer",
                                "example": 1,
                                "default": 0
                              },
                              "_links": {
                                "type": "object",
                                "properties": {
                                  "self": {
                                    "type": "object",
                                    "properties": {
                                      "href": {
                                        "type": "string",
                                        "example": "https://example.amocrm.com/api/v4/companies/1"
                                      }
                                    }
                                  }
                                }
                              }
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "204": {
            "description": "204",
            "content": {
              "application/json": {
                "examples": {
                  "The contact with the specified ID does not exist": {
                    "value": "No Content"
                  }
                }
              }
            }
          },
          "401": {
            "description": "401",
            "content": {
              "application/json": {
                "examples": {
                  "Usuário não autorizado": {
                    "value": "{}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```