POST /projects/{project_reference}/external-files/{provider}/foldersCreate external folder.
Servers
[
{
"url": "https://api.veryfront.com"
}
]Authentication
[
{
"bearerAuth": []
},
{
"apiKeyAuth": []
}
]{
"bearerAuth": {
"type": "http",
"scheme": "bearer",
"bearerFormat": "JWT or API Key",
"description": "Use a JWT bearer token or a Veryfront API key in the `Authorization` header."
},
"apiKeyAuth": {
"type": "apiKey",
"in": "header",
"name": "X-API-Key",
"description": "Alternative API key header for `vf_<prefix>_<secret>` tokens."
}
}Parameters
Parameter contracts
[
{
"schema": {
"$ref": "#/components/schemas/ProjectReference"
},
"required": true,
"description": "Project slug, UUID, or domain that identifies the project.",
"name": "project_reference",
"in": "path"
},
{
"schema": {
"type": "string",
"enum": [
"onedrive",
"sharepoint",
"drive"
],
"description": "External file provider: `onedrive`, `sharepoint` or `drive` (Google Drive)."
},
"required": true,
"name": "provider",
"in": "path"
},
{
"schema": {
"type": "string",
"minLength": 1,
"maxLength": 128,
"pattern": "^\\S+$",
"description": "Key of 1-128 characters without whitespace. A retry with the same key and request within 24 hours returns the first result instead of creating another item; the same key with a different request returns 409 conflict."
},
"required": false,
"name": "idempotency-key",
"in": "header"
}
]Request body
{
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/CreateExternalFolderRequest"
}
}
}
}Responses
201
The created folder.
{
"description": "The created folder.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ExternalFile"
}
}
}
}400
Bad request
{
"description": "Bad request",
"content": {
"application/problem+json": {
"schema": {
"$ref": "#/components/schemas/ExternalFileProblem"
}
}
}
}401
Unauthorized
{
"description": "Unauthorized",
"content": {
"application/problem+json": {
"schema": {
"$ref": "#/components/schemas/ExternalFileProblem"
}
}
}
}402
Payment required
{
"description": "Payment required",
"content": {
"application/problem+json": {
"schema": {
"$ref": "#/components/schemas/ExternalFileProblem"
}
}
}
}403
Forbidden
{
"description": "Forbidden",
"content": {
"application/problem+json": {
"schema": {
"$ref": "#/components/schemas/ExternalFileProblem"
}
}
}
}404
Not found
{
"description": "Not found",
"content": {
"application/problem+json": {
"schema": {
"$ref": "#/components/schemas/ExternalFileProblem"
}
}
}
}409
Conflict
{
"description": "Conflict",
"content": {
"application/problem+json": {
"schema": {
"$ref": "#/components/schemas/ExternalFileProblem"
}
}
}
}413
Payload too large
{
"description": "Payload too large",
"content": {
"application/problem+json": {
"schema": {
"$ref": "#/components/schemas/ExternalFileProblem"
}
}
}
}428
Precondition required
{
"description": "Precondition required",
"content": {
"application/problem+json": {
"schema": {
"$ref": "#/components/schemas/ExternalFileProblem"
}
}
}
}429
Rate limit exceeded
{
"description": "Rate limit exceeded",
"content": {
"application/problem+json": {
"schema": {
"$ref": "#/components/schemas/ExternalFileProblem"
}
}
}
}500
Server error
{
"description": "Server error",
"content": {
"application/problem+json": {
"schema": {
"$ref": "#/components/schemas/ExternalFileProblem"
}
}
}
}503
Service unavailable
{
"description": "Service unavailable",
"content": {
"application/problem+json": {
"schema": {
"$ref": "#/components/schemas/ExternalFileProblem"
}
}
}
}Referenced contracts
components/parameters/ProjectReference
{
"schema": {
"$ref": "#/components/schemas/ProjectReference"
},
"required": true,
"description": "Project slug, UUID, or domain that identifies the project.",
"name": "project_reference",
"in": "path"
}components/schemas/ProjectReference
{
"type": "string"
}components/schemas/CreateExternalFolderRequest
{
"type": "object",
"properties": {
"folder_id": {
"type": "string",
"minLength": 1,
"maxLength": 1024,
"description": "Parent folder item ID, or `root`."
},
"name": {
"type": "string",
"minLength": 1,
"maxLength": 255,
"pattern": "^[^/]*$",
"description": "Folder name, 1-255 characters without `/`."
}
},
"required": [
"folder_id",
"name"
]
}components/schemas/ExternalFile
{
"type": "object",
"properties": {
"id": {
"type": "string",
"minLength": 1,
"maxLength": 1024,
"description": "Provider item ID. Opaque. SharePoint items use `{siteId}|{itemId}` and site roots `sp-site:{siteId}`. Site IDs also accept Microsoft Graph root and hostname aliases."
},
"provider": {
"type": "string",
"enum": [
"onedrive",
"sharepoint",
"drive"
],
"description": "Provider that stores the item."
},
"name": {
"type": "string",
"description": "File or folder name."
},
"kind": {
"type": "string",
"enum": [
"file",
"folder"
],
"description": "Whether the item is a file or a folder."
},
"parent_id": {
"type": [
"string",
"null"
],
"minLength": 1,
"maxLength": 1024,
"description": "Provider ID of the parent folder, or null."
},
"path": {
"type": "string",
"description": "Provider path of the item, with the same meaning as on the legacy routes."
},
"mime_type": {
"type": "string",
"minLength": 1,
"description": "MIME type. Folders report the provider folder type or `folder`."
},
"size_bytes": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991,
"description": "Size in bytes. Folders may report 0."
},
"modified_at": {
"type": [
"string",
"null"
],
"format": "date-time",
"description": "Last modification time in RFC 3339 UTC, or null when the provider reports none.",
"example": "2026-03-02T09:15:27.000Z"
},
"etag": {
"type": [
"string",
"null"
],
"minLength": 1,
"maxLength": 1024,
"pattern": "^(?:\\*|(?:W\\/)?\"[\\x21\\x23-\\x7e]*\"(?:[ \\t]*,[ \\t]*(?:W\\/)?\"[\\x21\\x23-\\x7e]*\")*|[!#$%&'*+.^_`|~0-9A-Za-z-]+)$",
"description": "Provider version tag. Send it as `If-Match` on update to refuse a stale write."
},
"thumbnail_url": {
"type": [
"string",
"null"
],
"description": "Provider thumbnail URL (https), or null."
},
"web_url": {
"type": [
"string",
"null"
],
"description": "Provider URL (https) that opens the item, or null."
}
},
"required": [
"id",
"provider",
"name",
"kind",
"parent_id",
"path",
"mime_type",
"size_bytes",
"modified_at",
"etag",
"thumbnail_url",
"web_url"
]
}components/schemas/ExternalFileProblem
{
"allOf": [
{
"$ref": "#/components/schemas/Problem"
},
{
"type": "object",
"properties": {
"code": {
"type": "string",
"enum": [
"invalid_input",
"unauthenticated",
"not_found",
"forbidden",
"conflict",
"limit_exceeded",
"not_ready",
"internal"
],
"description": "Stable error code."
},
"reason": {
"type": "string",
"enum": [
"provider_connection_required",
"personal_connection_required",
"provider_unavailable",
"provider_rate_limited",
"file_too_large",
"content_too_large",
"storage_quota_exceeded"
],
"description": "Why the error happened, where a code has more than one cause."
},
"provider": {
"type": "string",
"enum": [
"onedrive",
"sharepoint",
"drive"
],
"description": "Provider of the request."
},
"connect_url": {
"type": "string",
"format": "uri",
"description": "With not_ready: URL that starts connecting your own provider account. A hint, not a redirect."
},
"retry_after_seconds": {
"type": "integer",
"minimum": 0,
"description": "Seconds to wait before retrying."
},
"size_bytes": {
"type": "integer",
"minimum": 0,
"description": "Size of the file that hit a limit."
},
"limit_bytes": {
"type": "integer",
"minimum": 0,
"description": "Byte limit that was exceeded."
},
"limit_chars": {
"type": "integer",
"minimum": 0,
"description": "Character limit that was exceeded."
}
},
"required": [
"code"
]
}
]
}components/schemas/Problem
{
"type": "object",
"properties": {
"cause": {
"type": "string",
"enum": [
"schedule_concurrency_forbidden",
"schedule_fire_in_progress",
"schedule_run_limit_reached"
],
"description": "Schedule admission refusal."
},
"idempotency": {
"type": "object",
"properties": {
"state": {
"type": "string",
"enum": [
"in_progress",
"payload_mismatch",
"outcome_unknown"
]
},
"operation": {
"type": "string",
"minLength": 1
},
"retryable": {
"type": "boolean"
},
"retry_after_seconds": {
"type": [
"integer",
"null"
],
"minimum": 0
},
"expires_at": {
"type": [
"string",
"null"
]
},
"recovery": {
"type": "object",
"properties": {
"available": {
"type": "boolean"
},
"description": {
"type": "string"
},
"resource_url": {
"type": "string"
}
},
"required": [
"available",
"description"
]
}
},
"required": [
"state",
"operation",
"retryable",
"retry_after_seconds",
"expires_at"
],
"description": "Replay status, retry timing, and recovery lookup."
},
"type": {
"type": "string",
"description": "URI reference identifying the problem type",
"example": "https://api.veryfront.com/errors/validation-failed"
},
"title": {
"type": "string",
"description": "Short human-readable summary of the problem",
"example": "Validation Failed"
},
"status": {
"type": "integer",
"minimum": 100,
"maximum": 599,
"description": "HTTP status code",
"example": 400
},
"code": {
"type": "string",
"description": "Stable machine-readable error code",
"example": "RUN_INVALID_INPUT"
},
"detail": {
"type": "string",
"description": "Human-readable explanation specific to this occurrence",
"example": "The 'email' field must be a valid email address"
},
"instance": {
"type": "string",
"description": "URI reference identifying the specific occurrence",
"example": "/projects/my-project/members"
},
"slug": {
"type": "string",
"description": "Stable identifier for the problem type",
"example": "validation-failed"
},
"category": {
"type": "string",
"enum": [
"AUTH",
"RESOURCE",
"VALIDATION",
"DATABASE",
"SUBSCRIPTION",
"INTEGRATION",
"INTERNAL"
],
"description": "API error category",
"example": "VALIDATION"
},
"suggestion": {
"type": "string",
"description": "Suggested action to resolve the problem",
"example": "Check the request body and query parameters against the API documentation."
},
"errors": {
"type": "array",
"items": {
"type": "object",
"properties": {
"field": {
"type": "string",
"description": "Field path that caused the error",
"example": "email"
},
"message": {
"type": "string",
"description": "Error message for this field",
"example": "Invalid email format"
},
"code": {
"type": "string",
"description": "Error code for this field",
"example": "INVALID_FORMAT"
}
},
"required": [
"field",
"message"
]
},
"description": "Detailed field-level errors for validation failures"
}
},
"required": [
"type",
"title",
"status"
]
}Operation contract
{
"operationId": "createExternalFolder",
"tags": [
"integrations/External storage/External Files"
],
"summary": "Create external folder",
"description": "Create external folder.",
"parameters": [
{
"$ref": "#/components/parameters/ProjectReference"
},
{
"schema": {
"type": "string",
"enum": [
"onedrive",
"sharepoint",
"drive"
],
"description": "External file provider: `onedrive`, `sharepoint` or `drive` (Google Drive)."
},
"required": true,
"name": "provider",
"in": "path"
},
{
"schema": {
"type": "string",
"minLength": 1,
"maxLength": 128,
"pattern": "^\\S+$",
"description": "Key of 1-128 characters without whitespace. A retry with the same key and request within 24 hours returns the first result instead of creating another item; the same key with a different request returns 409 conflict."
},
"required": false,
"name": "idempotency-key",
"in": "header"
}
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/CreateExternalFolderRequest"
}
}
}
},
"responses": {
"201": {
"description": "The created folder.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ExternalFile"
}
}
}
},
"400": {
"description": "Bad request",
"content": {
"application/problem+json": {
"schema": {
"$ref": "#/components/schemas/ExternalFileProblem"
}
}
}
},
"401": {
"description": "Unauthorized",
"content": {
"application/problem+json": {
"schema": {
"$ref": "#/components/schemas/ExternalFileProblem"
}
}
}
},
"402": {
"description": "Payment required",
"content": {
"application/problem+json": {
"schema": {
"$ref": "#/components/schemas/ExternalFileProblem"
}
}
}
},
"403": {
"description": "Forbidden",
"content": {
"application/problem+json": {
"schema": {
"$ref": "#/components/schemas/ExternalFileProblem"
}
}
}
},
"404": {
"description": "Not found",
"content": {
"application/problem+json": {
"schema": {
"$ref": "#/components/schemas/ExternalFileProblem"
}
}
}
},
"409": {
"description": "Conflict",
"content": {
"application/problem+json": {
"schema": {
"$ref": "#/components/schemas/ExternalFileProblem"
}
}
}
},
"413": {
"description": "Payload too large",
"content": {
"application/problem+json": {
"schema": {
"$ref": "#/components/schemas/ExternalFileProblem"
}
}
}
},
"428": {
"description": "Precondition required",
"content": {
"application/problem+json": {
"schema": {
"$ref": "#/components/schemas/ExternalFileProblem"
}
}
}
},
"429": {
"description": "Rate limit exceeded",
"content": {
"application/problem+json": {
"schema": {
"$ref": "#/components/schemas/ExternalFileProblem"
}
}
}
},
"500": {
"description": "Server error",
"content": {
"application/problem+json": {
"schema": {
"$ref": "#/components/schemas/ExternalFileProblem"
}
}
}
},
"503": {
"description": "Service unavailable",
"content": {
"application/problem+json": {
"schema": {
"$ref": "#/components/schemas/ExternalFileProblem"
}
}
}
}
},
"x-documentation-source-tag": "External Files",
"x-canonical-documentation": {
"domain": "integrations",
"resource": "External storage",
"subgroup": "External Files",
"name": "Create external folder",
"description": "Create external folder.",
"operationId": "createExternalFolder"
},
"x-mint": {
"href": "/cloud/rest/api-reference/integrations-external-storage-external-files/create-external-folder"
}
}