> For the complete documentation index, see [llms.txt](https://docs.sprinthub.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.sprinthub.com/topicos/api/api-como-relacionar-um-objeto-customizado-a-um-contato.md).

# API - Como Relacionar um Objeto Customizado a um Contato

### Rota

<mark style="color:green;">`POST`</mark> `/customobjects/link?apitoken=seu-token&i=sua-instancia`

### Query Params

<table><thead><tr><th width="291">Key/Chave</th><th width="450">Descrição</th></tr></thead><tbody><tr><td>i</td><td>Identificador da sua instância, subdomínio.</td></tr><tr><td>apitoken</td><td>Token da API.</td></tr></tbody></table>

### Body

<table><thead><tr><th width="291">Key/Chave</th><th width="450">Descrição</th></tr></thead><tbody><tr><td>objectId</td><td>ID do Objeto criado. Caso ele tenha sido criado via API, é retornado por <a href="/pages/BVliSB4lCBfaWNQq6k1l">esta chamada</a>.</td></tr><tr><td>linkType</td><td>Deve ser <code>"lead"</code>.</td></tr><tr><td>targetId</td><td>ID do contato dentro da Sprinthub que vai ser relacionado ao Objeto Customizado.</td></tr><tr><td>amount</td><td>Deve ser <code>1</code>.</td></tr></tbody></table>

## Testando Relacionamento de Objeto Customizado

O envio da requisição foi realizado utilizando o software *Postman*. A resposta esperada é um objeto representando o a relação Objeto com o lead.

<div data-with-frame="true"><figure><img src="/files/cquoUJRITotHpBPc5Vdo" alt=""><figcaption><p><em>Requisição para relacionar Objeto Customizado a um contato.</em></p></figcaption></figure></div>

### Verificando nos Dados Completos do Lead

Ao relacionar um Objeto Customizado a um contato, ele deve parecer como na imagem abaixo.

<div data-with-frame="true"><figure><img src="/files/f0bA8xwyGsnSflrtxT7F" alt=""><figcaption><p><em>Aba do Objeto Customizado dentro do contato.</em></p></figcaption></figure></div>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.sprinthub.com/topicos/api/api-como-relacionar-um-objeto-customizado-a-um-contato.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
