Skip to main content
POST
/
vault
/
folders
Create a vault folder
curl --request POST \
  --url https://api.example.com/vault/folders \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'X-Fanvue-API-Version: <x-fanvue-api-version>' \
  --data '
{
  "name": "<string>"
}
'
{
  "name": "My Photos",
  "createdAt": "2025-01-15T10:30:00.000Z",
  "mediaCount": 0
}
Required scope
  • write:media — Upload, modify, and manage media files and content assets. Also required for vault folder management.

Authorizations

Authorization
string
header
required

OAuth 2.0 access token, presented as a JWT bearer token in the Authorization header. Obtain a token via the authorization-code flow; the scopes granted to the token determine which operations it may call.

Headers

X-Fanvue-API-Version
string
default:2025-06-26
required

API version to use for the request

Example:

"2025-06-26"

Body

application/json
name
string
required

Name for the new folder

Required string length: 1 - 255

Response

Folder created

name
string
required

Folder name

createdAt
string<date> | null
required

When the folder was created

mediaCount
number
required

Number of media items in the folder