> 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/en/topics/api/api-how-to-create-a-custom-object.md).

# API - How to Create a Custom Object

How to dynamically create Custom Objects through the Sprinthub API.

### Route

<mark style="color:green;">`POST`</mark> `/customobjects/objects/:id_definicao?apitoken=your-token&i=your-instance`

### Query Params

<table><thead><tr><th width="291">Key</th><th width="450">Description</th></tr></thead><tbody><tr><td>i</td><td>Identifier of your instance, subdomain.</td></tr><tr><td>apitoken</td><td>API token.</td></tr></tbody></table>

### Path Params

| Key            | Description                                                                                                                                                              |
| -------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| :id\_definicao | Custom Object definition ID. You can check the list of available IDs [here](https://docs.sprinthub.com/en/topics/api/api-how-to-relate-a-custom-object-to-a-contact.md). |

## Testing Custom Object Creation

The request was sent using the software *Postman*. It should be inserted into the *body* the fields to be filled in for the Custom Objects, the key must match the alias of each field. The expected response is an object representing the created Object.

{% hint style="info" %}
To link the created Object to a lead, use the ID returned in this call in the Custom Object relationship request.
{% endhint %}

<div data-with-frame="true"><figure><img src="https://684109703-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9FzUKkagBNy5uQ7AtGNa%2Fuploads%2FTaSQvTk3siLU7b9p5eF1%2Fimage.png?alt=media&amp;token=b0cebf19-3073-4507-8861-9a53d925988e" alt=""><figcaption><p><em>Custom Object Creation Request.</em></p></figcaption></figure></div>
