---
updatedAt: 2025-07-15T09:06:38.000Z
agentTools:
  projectIndex: https://docs.appery.io/llms.txt
---

# Creating a File from Base64

To create a new `base64` string, send a ***POST*** request to the following URL:

```curl POST
https://api.appery.io/rest/1/db/files/
```

## Example

**cURL**:

```curl cURL
curl -X POST \
       -H "X-Appery-Database-Id: 526fdbd8e4b07c3286b537f1" \
       -H "X-Appery-Session-Token: 6fb9515d-82fd-43b3-9124-f0534dceca8e" \
       -H "Content-Type: application/json" \
       -d '{ "_id": "test_file.txt", "contentType": "text/plain", "content": "SGVsbG8gdGhlcmUh" }' \
       https://api.appery.io/rest/1/db/files/
```
```json Response
{
 "_id": "d92537bd-dbb9-4283-9dc3-984dd75002c5.test_file.txt",
 "contentType": "text/plain",
 "owner": null,
 "_createdAt": "2021-03-03 10:02:29.318",
 "length": 12,
 "acl": null
}
```