# API - How to Create a Custom Object

### Route

<mark style="color:green;">`POST`</mark> `/customobjects/objects/:id_definition?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\_definition | ID of the Custom Object definition. You can check the list of available IDs [here](/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*. Should be inserted in the *body* the fields to be filled 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="/files/967ecf8c9141a36ca2b23778ae5d6e26a8ae8727" alt=""><figcaption><p><em>Request to Create Custom Object.</em></p></figcaption></figure></div>


---

# Agent Instructions: 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:

```
GET https://docs.sprinthub.com/en/topics/api/api-how-to-create-a-custom-object.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
