# Using Javascript to Manipulate Records Without Tadabase REST API

> This method will expose your API credentials, which we highly recommend not doing and recommend looking into our Tadabase Rest API.

Source: https://tadabase.com/docs/snippets/using-javascript-to-manipulate-records-without-tadabase-rest-api  
Status: Not yet re-checked. Moved from our previous help site and not yet re-checked against the current product. Last edited Sep 20, 2024.

> **Warning:** This method will expose your API credentials, which we highly recommend not doing and recommend looking into our Tadabase Rest API.

You can use this example code snippet to create a new record. You must be sure to update all the field_id’s and API credentials.

```
var form = new FormData();

form.append("field_35", "From API");
form.append("field_36", "Test 1");

var settings = {
    "url": "https://api.tadabase.io/api/v1/data-tables/eykNOvrDY3/records",
    "method": "POST",
    "timeout": 0,
    "headers": {
        "X-Tadabase-App-id": "YOUR_APP_ID",
        "X-Tadabase-App-Key": "YOUR_APP_KEY",
        "X-Tadabase-App-Secret": "YOUR_APP_SECRET",
    },
    "processData": false,
    "mimeType": "multipart/form-data",
    "contentType": false,
    "data": form
};
$.ajax(settings).done(function(response) {
    console.log(response);
});
```

![Screenshot for “Using Javascript to Manipulate Records Without Tadabase REST API”](https://tadabase-docs-assets.s3.amazonaws.com/uploads/images/gallery/2022-09/scaled-1680-/2022-09-16_10-12-36.png)

**Original Community Post:**

[Adding and removing from a database using javascript - Community Discussions / How Do I - Tadabase Community](https://community.tadabase.io/t/adding-and-removing-from-a-database-using-javascript/1714/2)
