Path parameters
| Parameter | Description | |
|---|---|---|
fileidany |
required | File Id |
Query parameters
| Parameter | Description | |
|---|---|---|
librarystring |
optional | One of sharepoint, msteams, google, onedrive, box, dropbox, cloudfiles, s3, azure, hubspot, azurefiles, sftp |
driveIdstring |
optional | Drive Id. Required when library is sharepoint or msteams. |
Header parameters
| Parameter | Description | |
|---|---|---|
Authorizationstring |
optional | Replace the API_Key placeholder with your actual API key. |
Example request
curl --request GET \ --url 'https://api.cloudfiles.io/v1/folders/:fileid?library=string&driveId=string' \ --header 'accept: application/json' \ --header 'authorization: Bearer API_Key'
Response body
{
"id": "file_789",
"name": "Proposal.pdf",
"type": "file",
"createdAt": "2026-07-02T09:00:00Z",
"updatedAt": "2026-07-08T12:00:00Z",
"createdBy": "usr_1",
"extension": "pdf",
"size": 20481,
"externalUrl": "https://cloudfiles.sharepoint.com/sites/Sales/Shared%20Documents/Proposal.pdf"
}