Skip to content

Create a folder

Create a new folder to organize your templates.

Sample Request

Here’s a sample request to create a new folder:

ENDPOINT
POST /v1/folders
REQUEST
fetch('https://api.templated.io/v1/folder', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'Authorization': Bearer ${API_KEY}
},
body: JSON.stringify({
name: "My New Folder"
})
})

Request Body

name string REQUIRED
The name of the folder you want to create.

Response

The API returns a JSON object with the folder details.

{
"id": "fld_123abc",
"name": "My New Folder",
"createdAt": "2024-03-20T10:30:00Z",
"updatedAt": "2024-03-20T10:30:00Z"
}