Skip to main content
GET
Get provider file

Authorizations

Authorization
string
header
required

Use a JWT bearer token or a Veryfront API key in the Authorization header.

Path Parameters

provider
enum<string>
required

External storage provider identifier: onedrive, sharepoint, or drive (Google Drive).

Available options:
onedrive,
sharepoint,
drive
file_id
string
required

Provider-specific file or folder identifier.

Query Parameters

project_reference
string

Optional project UUID or slug that scopes the caller's provider connection.

project_id
string

Deprecated project ID or slug alias. Use project_reference.

projectId
string

Deprecated camelCase project ID or slug alias. Use project_reference.

Response

File metadata

id
string
required

Provider-specific file or folder ID.

name
string
required

File or folder name.

path
string
required

Provider path for the file or folder. For a folder returned by list-files, pass this value unchanged as path to list its contents (a drive-relative path for OneDrive, an sp-site: path for SharePoint, the folder ID for Google Drive). Google Drive files keep their name. Search results may not carry a navigable path.

mime_type
string
required

MIME type, or the legacy folder sentinel for folders.

size
number
required

File size in bytes. Folders may report 0.

size_bytes
number
required

File size in bytes; equal to size. Folders may report 0.

is_folder
boolean
required

Whether this item is a folder. Equivalent to kind === "folder".

kind
enum<string>
required

Whether this item is a file or a folder.

Available options:
file,
folder
modified_at
string<date-time> | null
required

Provider last-modified timestamp in ISO 8601, or null when the provider does not report a valid one.

Example:

"2026-03-02T09:15:27.000Z"

thumbnail
string

Optional provider thumbnail URL.