Skip to main content
POST
Create a cloud drive source

Authorizations

Authorization
string
header
required

API key (fam_..., created under Settings → API Keys) or an OAuth 2.0 access token (fam_at_...). REST operations also require API Access for the credential's workspace. Keys can be restricted to scopes such as assistants:read, calls:write, campaigns:write, automations:read, dashboards:read, dashboards:write, leads:write, segments:write, loop:read, loop:write, phone_numbers:write, sip_trunks:write, knowledge:write, voices:read, billing:read, settings:write, platform:read, platform:write; a *:write scope implies the matching *:read. Automation and dashboard endpoints also accept the legacy calls:* scope. Keys without scope restrictions have full access within the workspace's available capabilities.

Path Parameters

id
string<uuid>
required

Knowledge base ID.

Body

application/json
provider
enum<string>
required

Cloud drive provider.

Available options:
googledrive,
one_drive,
box,
dropbox,
sharepoint_graph
connection_id
string<uuid>
required

App connection ID — a connection under Automations → Connections whose toolkit matches provider.

folder_id
string
required

Remote folder ID to sync.

name
string

Optional custom display name shown for this source. If omitted, folder_name or folder_id is used initially and can be edited later.

Required string length: 1 - 128
Example:

"Support knowledge"

folder_name
string

Optional remote folder name captured from the connected drive. This is provider metadata, not the editable source name.

drive_id
string

Document library drive ID. REQUIRED for provider "sharepoint_graph"; optional for "one_drive" (SharePoint/Business drives accessed via the OneDrive toolkit); unused otherwise.

include_subfolders
boolean

Recurse into subfolders. Default true.

max_files
integer

Maximum files per run. Default 50.

Required range: 1 <= x <= 500
auto_sync
boolean

Re-sync automatically on a schedule. Default false.

sync_interval_hours
integer

Hours between auto-sync runs. Default 24.

Required range: x >= 1

Response

The created cloud drive source.

data
object
required