Skip to main content
Create a folder

Authorizations

Authorization
string
header
required

Authorize using an API key. Send it in the Authorization: Bearer <api-key> header. Only API keys are accepted — session tokens are rejected. Create your first API key in the Circularo web app; further keys can be managed through this API.

Headers

Idempotency-Key
string

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.

Required string length: 1 - 255
Example:

"6b8f0f2e-9d3a-4c1e-bf7a-2f1d9c0a1b23"

Body

application/json

Parameters for creating a new folder.

name
string
required

Name of the new folder. Characters not allowed in file names, such as / or :, are removed.

Required string length: 1 - 255
Example:

"Project Documents"

parentFolderId
string | null

Identifier of the parent folder to create this folder in. Omit to create the folder at the root of its tree. The parent must be in the same tree as the requested scope.

Minimum string length: 1
Pattern: ^[A-Za-z0-9_-]+$
Example:

"97cfb9de-92dd-413a-b5e7-175eff7506d6"

scope
enum<string>
default:personal

Which folder tree to create the folder in.

  • personal: Your personal folder tree, visible only to you.
  • shared: The organization-wide shared folder tree.
Available options:
personal,
shared
Example:

"personal"

Response

The folder was created.

A single folder used to organize documents.

createdAt
string<date-time> | null
required

When the folder was created.

Example:

"2024-11-02T09:15:30.000Z"

createdBy
object | null
required

The user who created the folder. Null when it cannot be determined.

id
string
required

Identifier of the folder.

Minimum string length: 1
Pattern: ^[A-Za-z0-9_-]+$
Example:

"97cfb9de-92dd-413a-b5e7-175eff7506d6"

name
string | null
required

Human-readable name of the folder.

Example:

"Project Documents"

parentFolderId
string | null
required

Identifier of the parent folder. Null when the folder sits at the root of its tree.

Minimum string length: 1
Pattern: ^[A-Za-z0-9_-]+$
Example:

"97cfb9de-92dd-413a-b5e7-175eff7506d6"

scope
enum<string>
required

Which folder tree the folder belongs to.

  • personal: Your personal folder tree, visible only to you.
  • shared: The organization-wide shared folder tree.
Available options:
personal,
shared
Example:

"personal"

trashed
boolean
required

Whether the folder is currently in the trash.

Example:

false

webUrl
string<uri> | null
required

Link to open the folder in the Circularo web app. Requires an authenticated Circularo session.

Example:

"https://sandbox.circularo.com/home/my_files?folderId=97cfb9de-92dd-413a-b5e7-175eff7506d6"