curl --request GET \
--url 'https://sandbox.circularo.com/api/v1/folders/{folderId}?token='import requests
url = "https://sandbox.circularo.com/api/v1/folders/{folderId}?token="
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://sandbox.circularo.com/api/v1/folders/{folderId}?token=', 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/v1/folders/{folderId}?token=",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://sandbox.circularo.com/api/v1/folders/{folderId}?token="
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://sandbox.circularo.com/api/v1/folders/{folderId}?token=")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.circularo.com/api/v1/folders/{folderId}?token=")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"_esHighlight": "<string>",
"_version": 3,
"date": "2023-11-07T05:31:56Z",
"definition": "d_default",
"deletionInfo": {
"deletedBy": "john.doe@example.com",
"deletedDate": "2023-11-07T05:31:56Z",
"isDeleted": true
},
"documentTitle": "Contract Agreement",
"folder": {
"global": {
"accessible": true,
"level": 123,
"name": "<string>",
"parentFolderId": "97cfb9de-92dd-413a-b5e7-175eff7506d6",
"path": [
{
"folderId": "97cfb9de-92dd-413a-b5e7-175eff7506d6",
"level": 123,
"name": "<string>"
}
],
"username": "john.doe@example.com"
},
"user": {
"accessible": true,
"level": 123,
"name": "<string>",
"parentFolderId": "97cfb9de-92dd-413a-b5e7-175eff7506d6",
"path": [
{
"folderId": "97cfb9de-92dd-413a-b5e7-175eff7506d6",
"level": 123,
"name": "<string>"
}
],
"username": "john.doe@example.com"
}
},
"folderId": "8d25c1a9-1ee2c7f56-1da2-00ac83ba54ce",
"isFolder": true,
"lastModified": "2023-11-07T05:31:56Z",
"rights": {
"editGroups": [
"<string>"
],
"editUsers": [
"john.doe+member@example.com"
],
"private": true,
"readGroups": [
"<string>"
],
"readUsers": [
"john.doe+member@example.com"
]
},
"star": true,
"tags": {
"global": [
"<string>"
],
"user": [
"<string>"
]
},
"type": "ext",
"user": {
"name": "john.doe@example.com",
"type": "internal"
}
}{
"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": 404,
"type": "RESOURCE:NOT_FOUND",
"message": "Resource not found",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}Get a folder
GET /folders/{folderId}
Returns one folder: its name, who created it and when, where it sits in the tree, who may read or edit it, and whether the caller has starred it.
The placement comes back with the whole chain of ancestors up to the root, and each step of that chain carries the name of the folder it points at - which is what lets a client draw a breadcrumb from a single request instead of walking up the tree one call at a time.
A folder the caller may not read is reported as not found, so nothing here reveals that a folder exists. Deleting a folder does not remove it at once but moves it to the trash, and a trashed folder is only returned when the request asks for the trash.
Token authorization: Authorize using a token — either a session token obtained from login or an API key — to call this endpoint.
curl --request GET \
--url 'https://sandbox.circularo.com/api/v1/folders/{folderId}?token='import requests
url = "https://sandbox.circularo.com/api/v1/folders/{folderId}?token="
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://sandbox.circularo.com/api/v1/folders/{folderId}?token=', 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/v1/folders/{folderId}?token=",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://sandbox.circularo.com/api/v1/folders/{folderId}?token="
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://sandbox.circularo.com/api/v1/folders/{folderId}?token=")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.circularo.com/api/v1/folders/{folderId}?token=")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"_esHighlight": "<string>",
"_version": 3,
"date": "2023-11-07T05:31:56Z",
"definition": "d_default",
"deletionInfo": {
"deletedBy": "john.doe@example.com",
"deletedDate": "2023-11-07T05:31:56Z",
"isDeleted": true
},
"documentTitle": "Contract Agreement",
"folder": {
"global": {
"accessible": true,
"level": 123,
"name": "<string>",
"parentFolderId": "97cfb9de-92dd-413a-b5e7-175eff7506d6",
"path": [
{
"folderId": "97cfb9de-92dd-413a-b5e7-175eff7506d6",
"level": 123,
"name": "<string>"
}
],
"username": "john.doe@example.com"
},
"user": {
"accessible": true,
"level": 123,
"name": "<string>",
"parentFolderId": "97cfb9de-92dd-413a-b5e7-175eff7506d6",
"path": [
{
"folderId": "97cfb9de-92dd-413a-b5e7-175eff7506d6",
"level": 123,
"name": "<string>"
}
],
"username": "john.doe@example.com"
}
},
"folderId": "8d25c1a9-1ee2c7f56-1da2-00ac83ba54ce",
"isFolder": true,
"lastModified": "2023-11-07T05:31:56Z",
"rights": {
"editGroups": [
"<string>"
],
"editUsers": [
"john.doe+member@example.com"
],
"private": true,
"readGroups": [
"<string>"
],
"readUsers": [
"john.doe+member@example.com"
]
},
"star": true,
"tags": {
"global": [
"<string>"
],
"user": [
"<string>"
]
},
"type": "ext",
"user": {
"name": "john.doe@example.com",
"type": "internal"
}
}{
"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": 404,
"type": "RESOURCE:NOT_FOUND",
"message": "Resource not found",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}Authorizations
Path Parameters
Query Parameters
Response
Returns the folder, with the names of its ancestors filled into its path.