# Create a folder `POST /api/v1/files` Creates a folder in the workspace library. ## Permissions Send your API key in `X-API-Key`. Required permissions are **Files → Write**. ## Body parameters - `name` (string, required) — Original filename or folder name, up to 160 characters. - `is_folder` (boolean, required) — Set to true to create a folder. - `parent_id` (integer or null) — ID of the parent folder. Use null for the root. Alias folder_id on creation. ## Request Set ASDINCLOUD_API_KEY and any variables named in the example before running it. ```sh curl --request POST \ --url "https://api.asdincloud.com/api/v1/files" \ --header "X-API-Key: $ASDINCLOUD_API_KEY" \ --header "Content-Type: application/json" \ --data '{"name":"Club forms","is_folder":true,"parent_id":null}' ``` ## Response **201 Created** Returns the created folder in `data`. Example with fictional data and selected fields. ```json { "status": "success", "data": { "id": 20, "parent_id": null, "is_folder": true, "name": "Club forms", "friendly_name": null, "url": null } } ``` ## Errors - `401` — The API key is missing or invalid. - `403` — The API key lacks the required permission. - `422` — One or more fields failed validation.