curl --request POST \
--url https://sandbox.circularo.com/api/v2/folders \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "Employment agreements",
"scope": "personal"
}
'import requests
url = "https://sandbox.circularo.com/api/v2/folders"
payload = {
"name": "Employment agreements",
"scope": "personal"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({name: 'Employment agreements', scope: 'personal'})
};
fetch('https://sandbox.circularo.com/api/v2/folders', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://sandbox.circularo.com/api/v2/folders",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'name' => 'Employment agreements',
'scope' => 'personal'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://sandbox.circularo.com/api/v2/folders"
payload := strings.NewReader("{\n \"name\": \"Employment agreements\",\n \"scope\": \"personal\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://sandbox.circularo.com/api/v2/folders")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"Employment agreements\",\n \"scope\": \"personal\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.circularo.com/api/v2/folders")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"Employment agreements\",\n \"scope\": \"personal\"\n}"
response = http.request(request)
puts response.read_body{
"createdAt": "2026-05-11T09:30:00.000Z",
"createdBy": {
"email": "john.smith@example.com",
"fullname": "John Smith",
"userId": "john.smith@example.com"
},
"id": "Th5nQd8XcW2bRv6yLpKm",
"name": "Employment agreements",
"parentFolderId": null,
"scope": "personal",
"trashed": false,
"webUrl": "https://sandbox.circularo.com/home/my_files?folderId=Th5nQd8XcW2bRv6yLpKm"
}{
"status": 400,
"type": "VALIDATION:INPUT_INVALID",
"message": "Invalid input",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}{
"status": 401,
"type": "AUTH:UNAUTHORIZED",
"message": "Authentication failed",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}{
"status": 403,
"type": "AUTH:ACCESS_DENIED",
"message": "Access denied",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}{
"status": 409,
"type": "RESOURCE:STATE_CONFLICT",
"message": "Resource state conflict",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}{
"status": 422,
"type": "VALIDATION:IDEMPOTENCY_KEY_REUSED",
"message": "Idempotency-Key reused with a different request",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}{
"status": 429,
"type": "SYSTEM:RATE_LIMIT_EXCEEDED",
"message": "Rate limit exceeded",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}Create a folder
POST /folders
Creates a folder for organizing documents, either in your personal folder tree or in the organization-wide shared tree.
Create a folder at the root of its tree, or nest it under an existing folder by passing that folder’s identifier as the parent. A folder and its parent must live in the same tree.
Response headers
Idempotency-Replayed— Present only on a replay: the request was recognized as a retry of an earlier one by itsIdempotency-Key, and this is the stored response of that original request.
curl --request POST \
--url https://sandbox.circularo.com/api/v2/folders \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "Employment agreements",
"scope": "personal"
}
'import requests
url = "https://sandbox.circularo.com/api/v2/folders"
payload = {
"name": "Employment agreements",
"scope": "personal"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({name: 'Employment agreements', scope: 'personal'})
};
fetch('https://sandbox.circularo.com/api/v2/folders', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://sandbox.circularo.com/api/v2/folders",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'name' => 'Employment agreements',
'scope' => 'personal'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://sandbox.circularo.com/api/v2/folders"
payload := strings.NewReader("{\n \"name\": \"Employment agreements\",\n \"scope\": \"personal\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://sandbox.circularo.com/api/v2/folders")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"Employment agreements\",\n \"scope\": \"personal\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.circularo.com/api/v2/folders")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"Employment agreements\",\n \"scope\": \"personal\"\n}"
response = http.request(request)
puts response.read_body{
"createdAt": "2026-05-11T09:30:00.000Z",
"createdBy": {
"email": "john.smith@example.com",
"fullname": "John Smith",
"userId": "john.smith@example.com"
},
"id": "Th5nQd8XcW2bRv6yLpKm",
"name": "Employment agreements",
"parentFolderId": null,
"scope": "personal",
"trashed": false,
"webUrl": "https://sandbox.circularo.com/home/my_files?folderId=Th5nQd8XcW2bRv6yLpKm"
}{
"status": 400,
"type": "VALIDATION:INPUT_INVALID",
"message": "Invalid input",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}{
"status": 401,
"type": "AUTH:UNAUTHORIZED",
"message": "Authentication failed",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}{
"status": 403,
"type": "AUTH:ACCESS_DENIED",
"message": "Access denied",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}{
"status": 409,
"type": "RESOURCE:STATE_CONFLICT",
"message": "Resource state conflict",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}{
"status": 422,
"type": "VALIDATION:IDEMPOTENCY_KEY_REUSED",
"message": "Idempotency-Key reused with a different request",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}{
"status": 429,
"type": "SYSTEM:RATE_LIMIT_EXCEEDED",
"message": "Rate limit exceeded",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}Authorizations
Headers
A unique key that makes a create request safe to retry. Generate a fresh value for each distinct operation. If a retry with the same key arrives while the original is still being processed you get a conflict; once it has completed you get the original result back instead of creating a duplicate, and reusing the key with a different request body is rejected. Stored results are retained for a limited time, after which a retry executes the request again.
1 - 255"6b8f0f2e-9d3a-4c1e-bf7a-2f1d9c0a1b23"
Body
Parameters for creating a new folder.
Response
The folder was created.
A single folder used to organize documents.