> ## Documentation Index
> Fetch the complete documentation index at: https://koreai-ai-for-process-dev.mintlify.app/llms.txt
> Use this file to discover all available pages before exploring further.

# Data Insert API

<Badge icon="arrow-left" color="gray">[Back to API List](/ai-for-service/apis/automation/api-list)</Badge>

Used to insert data into a Data Table.

| Property          | Value                                                                                                                                                                                                                                                             |
| ----------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Method**        | POST                                                                                                                                                                                                                                                              |
| **Endpoint**      | `https://{{host}}/api/public/tables/{{tableName}}`                                                                                                                                                                                                                |
| **Content Type**  | `application/json`                                                                                                                                                                                                                                                |
| **Authorization** | `auth: {{JWT}}` — See [How to generate the JWT Token](/ai-for-service/apis/automation/api-introduction/#generating-the-jwt-token).                                                                                                                                |
| **App Access**    | Write access to the Data Table from the Data Definition in DaaS. For more information, see [app assignment for accessing the data in a table](../../../administration/data/data-services/) and [Data as a Service](../../../administration/data/data-as-service). |

## Path Parameters

| Parameter   | Description                                              |
| ----------- | -------------------------------------------------------- |
| `host`      | Environment URL, for example, `https://platform.kore.ai` |
| `tableName` | Name of the table to insert data into                    |

## Sample Request

```json  theme={null}
curl -X POST \
  https://{{host}}/api/public/tables/{{tableName}} \
  -H 'auth: {{YOUR_JWT_ACCESS_TOKEN}}' \
  -H 'content-type: application/json' \
  -d '{
      "data": {
        "First_Name": "test",
        "Last_Name": "name",
        "Gender": "female",
        "Number": 263
       }
     }'
```

## Body Parameters

| Parameter | Description                                                                                              |
| --------- | -------------------------------------------------------------------------------------------------------- |
| `data`    | Object with column\_name/value pairs: `"data": { "<col1_name>": "<value1>", "<col2_name>": "<value2>" }` |

## Sample Response

```json  theme={null}
{
    "First_Name": "test",
    "Last_Name": "name",
    "Gender": "female",
    "Number": 263,
    "Updated_On": "2020-03-28T07:02:09.652Z",
    "Created_On": "2020-03-28T07:02:09.652Z",
    "Updated_By": "st-98e05480-0257-5e35-b6d2-66a323834f9d",
    "Created_By": "st-98e05480-0257-5e35-b6d2-66a323834f9d",
    "sys_Id": "sys-545dae21-8675-5a95-9c1b-a223bc6f4bc8",
    "_id": "23n473m816309s629374218f"
}
```


Built with [Mintlify](https://mintlify.com).