# Zernio Files API

**Canonical:** https://apis.io/apis/zernio-com/zernio-com-files-api/  
**Provider:** Zernio — https://apis.io/providers/zernio-com/  
**Base URL:** https://zernio.com/api  
**Documentation:** https://docs.zernio.com/api-reference

Zernio Files API is one of 94 APIs that [Zernio](https://apis.io/providers/zernio-com/) publishes on the [APIs.io](https://apis.io/) network, described by a machine-readable OpenAPI specification. Tagged areas include File. The published artifact set on APIs.io includes an OpenAPI specification.

Google Drive and OneDrive files of a connected account: list, download, upload, folders, rename, move, trash and share links. Connect with `scopes=files`. Attach a file to a post as `{ fileId, accountId }` in `mediaItems`. **Google Drive access is per file.** Google accounts are connected with Google's `drive.file` scope, not full Drive access. Zernio, and so your integration, can open only: - files created through Zernio (`POST /v1/files`, `POST /v1/files/folders`), and - files the user picked in Google Picker: in the Zernio dashboard, or on a hosted picker page you open with `POST /v1/files/picker-sessions`. Everything else in the user's Drive is invisible. Listing returns only the files above, and a folder the user never picked lists empty (picking a folder does not grant its contents). Any per-file call on another id answers 404 `resource_not_found` with `details.reason: file_not_granted`. The fix is always to have the user pick the file. Picked files in shared drives work. Grants last until the user removes Zernio from their Google account. OneDrive (Microsoft accounts) has no such limit: the account reaches every file the user can see, and picker sessions do not apply.

## Operations (9)

| Method | Path | Summary |
|---|---|---|
| GET | `/v1/files` | List files in a folder or search the drive |
| POST | `/v1/files` | Upload a file |
| POST | `/v1/files/folders` | Create a folder |
| POST | `/v1/files/picker-sessions` | Create a hosted Google Picker session |
| GET | `/v1/files/{fileId}` | Get a file or folder |
| PATCH | `/v1/files/{fileId}` | Rename or move a file |
| DELETE | `/v1/files/{fileId}` | Move a file to the trash |
| GET | `/v1/files/{fileId}/download` | Download a file |
| GET | `/v1/files/{fileId}/share-link` | Get an anyone-with-the-link share link |

## Machine-readable artifacts (1)

- **OpenAPI** — https://artifacts.apis.io/zernio-com/openapi/zernio-com-files-api-openapi.yml

## Other Zernio APIs (12)

- [Zernio Account Groups API](https://apis.io/apis/zernio-com/zernio-com-account-groups-api/)
- [Zernio Account Settings API](https://apis.io/apis/zernio-com/zernio-com-account-settings-api/)
- [Zernio Accounts API](https://apis.io/apis/zernio-com/zernio-com-accounts-api/)
- [Zernio Ad Accounts API](https://apis.io/apis/zernio-com/zernio-com-ad-accounts-api/)
- [Zernio Ad Audiences API](https://apis.io/apis/zernio-com/zernio-com-ad-audiences-api/)
- [Zernio Ad Campaign Results API](https://apis.io/apis/zernio-com/zernio-com-ad-campaign-results-api/)
- [Zernio Ad Campaigns API](https://apis.io/apis/zernio-com/zernio-com-ad-campaigns-api/)
- [Zernio Ad Changes API](https://apis.io/apis/zernio-com/zernio-com-ad-changes-api/)
- [Zernio Ad Creatives API](https://apis.io/apis/zernio-com/zernio-com-ad-creatives-api/)
- [Zernio Ad Insights API](https://apis.io/apis/zernio-com/zernio-com-ad-insights-api/)
- [Zernio Ad Library API](https://apis.io/apis/zernio-com/zernio-com-ad-library-api/)
- [Zernio Ad Rules API](https://apis.io/apis/zernio-com/zernio-com-ad-rules-api/)

## Tags

File

## Use this from code or an agent

- **REST, no key:** `GET https://apis.io/api/v1/providers/zernio-com` returns the provider's full profile as JSON.
- **MCP:** `https://apis.io/mcp` (Streamable HTTP) — search the catalog, read any provider, compare providers, check agent readiness.
- **Free API key** for catalog-wide search, ratings and comparisons: sign in with GitHub, Google or LinkedIn at https://apis.io/developer/account/ (plans: https://apis.io/developer/plans/).

---

Profiled by [API Evangelist](https://apievangelist.com) and published on [APIs.io](https://apis.io/apis/zernio-com/zernio-com-files-api/). The API's provider profile, Kin Score and agent-readiness rating are at https://apis.io/providers/zernio-com/.
