Skip to main content

API Keys

An API key is an authentication credential used with the Files.com APIExternal LinkThis link leads to an external website and will open in a new tab and SDKs to integrate Files.com with your own applications, such as iPaaS applications. API keys can also authenticate FTP, SFTP, and WebDAV connections. API keys are independent from one another. Generating a unique API key for each application or server lets you revoke any one of them without disrupting your other integrations.

Types of API Keys

Files.com supports two types of API keys: site-wide keys and user keys. A site-wide key is not associated with a user account. A user key provides access based on the permissions of its associated user. A Full Access user key includes the administrative API functions available to its associated user. It does not give that user additional permissions.

We strongly recommend associating all API keys with a non-administrator user account whenever possible. Site-wide keys with Full Access, or Full Access keys associated with a Site Administrator's user account, can perform any function available in their Workspace scope, including deleting files or users. A path restriction limits direct file operations made with the key, but does not limit its administrative capabilities.

Site-wide keys with Full Access have the same administrative access as a Site Administrator within their Workspace scope. We recommend generating a separate site-wide key for each custom integration that requires one, so that you can disable one key without affecting your other automated processes.

User keys are associated with a single user account. The key's permission scope, path restriction, and Workspace scope can further narrow the access available through that key.

Permission Scopes

When creating or editing an API key, you can set its permission scope to Full Access or Files Only. A Full Access user key permits its associated user's operations within the key's Workspace scope. It does not grant the user any additional permissions, and the Full Access scope of an API key is not the same as the Full Folder Permission of a user. A path restriction limits direct file and folder operations; it does not restrict management operations such as creating Automations.

A Files Only key can only interact with files and folders. It cannot act as a site administrator, workspace administrator, folder administrator, group administrator, or partner administrator, and it cannot access billing.

A Files Only key cannot run ad hoc GPG Encrypt or GPG Decrypt on a file. This applies to user keys regardless of the associated user's administrative permissions, and to site-wide keys. GPG encryption and GPG decryption configured as folder settings still apply to files uploaded with the key.

Files Only keys are built for AI agents and other file-only automation, where the key needs to move files but must never administer the site. They are also the right key to issue when another Files.com site connects to yours through a Files.com Remote Server, since that connection only ever works with files and folders. Connecting to Another Files.com Site covers that setup for both sites. We recommend Files Only for any integration that only reads and writes files.

Path Restrictions

An API key's path restriction limits direct file and folder operations to one folder and its contents, including subfolders. Use it when an integration needs only part of the file access available to its associated user, such as one folder used to exchange files with another system. The restriction does not change the user's access through other keys or sessions.

The restricted folder is identified using Files.com's path comparison rules, which ignore case and accents on native storage and Remote Server Mounts alike. If a mount contains separate archive/reports and archive/REPORTS folders, a restriction to archive/reports includes both folders and their contents. It does not include a differently named sibling such as archive/reports-private. Use names that compare differently when an integration must be restricted to only one of the remote folders.

Use Files Only together with a path restriction when an integration must be confined to that folder. A path restriction on a Full Access key does not provide that protection: the key can still create Automations or perform other management operations when it otherwise has permission to do so. Those Automations can operate outside the key's restricted path using their own permissions. This is by design. The path restriction controls direct file requests, not the permissions of workflows configured with the key. API Keys explains this distinction when choosing access for an integration.

Path restrictions apply to both Full Access and Files Only keys. They work alongside the key's Workspace scope and associated user's permissions, and never grant access the user does not already have. API key configurationExternal LinkThis link leads to an external website and will open in a new tab documents programmatic creation and configuration.

For direct file and folder requests, every path the request accesses must be within the restricted folder. For copy and move operations, both the source and destination must be within it. For example, a key restricted to shared/docs can work with shared/docs/report.pdf when its user has the required permissions, but cannot directly copy that file to shared/archive or read files there.

A direct file or folder request outside the allowed path is refused, even if the associated user can access that location through another key or session.

Workspace Scoping

A key's Workspace and permission scope determine whether an integration stays within one Workspace or can use its account's access across Workspaces.

Key created inKey type and permission scopeWorkspace access
Custom WorkspaceUser or site-wide key, Full Access or Files OnlyOnly the Workspace where the key was created.
Default WorkspaceUser or site-wide key, Files OnlyOnly the Default Workspace, even when the associated user has access to other Workspaces.
Default WorkspaceUser key, Full AccessThe Default Workspace and Custom Workspaces the associated user can access.
Default WorkspaceSite-wide key, Full AccessEvery Workspace on the site, with the same authority as a Site Administrator.

Selecting a Workspace for an API request does not expand the key's access. A request selecting a Workspace outside the key's allowed scope is refused.

A Full Access user key created in the Default Workspace uses the user's current permissions in the selected Workspace, including Workspace Administrator access where granted. Access is evaluated on every request, so adding or removing the user's Workspace access changes the access available through an existing key without recreating it.

To create a key confined to a Custom Workspace, switch to that Workspace before creating it. This confines the integration to that Workspace even when its associated user has broader access.

User Key Creation

The site-wide Allow Users To Create API Keys setting controls whether users can create credentials for their own integrations. This lets Site Administrators keep control of integration credentials while users continue working in the Files.com apps. User keys remain subject to the associated user's permissions and the key's access scope.

By default, only Site Administrators can create these integration keys. Enabling the setting lets other users, including Workspace Administrators, create their own.

When the setting is disabled, users who are not Site Administrators cannot create API keys for their own integrations. Site Administrators can create or remove API keys for individual users.

The setting governs creation only. Disabling it does not revoke existing keys or prevent users from listing, managing, or deleting keys they are otherwise authorized to manage, including keys created for them by an administrator. The user's account-management permissions still apply.

Whether the setting is enabled or disabled, users who are not Site Administrators, including Workspace Administrators, cannot create, view, edit, or delete API keys for other users, even within a Workspace they administer.

To end an integration's existing access, revoke its key or apply the appropriate account control. API Keys explains how the creation policy differs from key scope, expiration, and revocation.

Creating Site-Wide API Keys

Only Site Administrators can create site-wide API keys, including keys limited to a single Workspace. On the Developer API page, the Create API Key form opens with the User field blank and Full Access selected. If you enter a name and save without changing those defaults, Files.com creates a site-wide key with Full Access. This is not a key for your own administrator account. It has administrative access within the key's Workspace scope, including the ability to delete files or users. Adding a path restriction limits direct file operations, but does not remove administrative access or confine workflows created with the key to that path.

To create a key for yourself or another user, select that account in the User field. To prevent a key from performing administrative operations, select Files Only. Whenever possible, use both protections: associate the key with a user who is not a Site Administrator and select Files Only for an integration that only needs to work with files and folders.

A site-wide key belongs to the site, not to the Site Administrator who created it. The key has no associated user, so disabling or deleting the creator's account does not disable the key. It continues working until a Site Administrator deletes it or its expiration date passes. Actions performed with a site-wide key have no associated username in logs or notifications.

A user key has the opposite lifecycle. It stops working when its associated user is disabled or deleted.

Provide a human-readable name so you can track why each key was generated. You can also include an expiration date.

The key value is shown only when the key is first created. You cannot retrieve the value later, so save it immediately.

Creating User API Keys

Site Administrators can create user API keys for users who belong to their site. If your site settings allow it, users who are not Site Administrators can create their own user API keys.

A user API key must be associated with a user. In the web interface, select the account in the User field. Also provide a human-readable name to track why the key was generated. You can include an expiration date.

The key value is shown only when the key is first created. You cannot retrieve the value later, so store it immediately.

The Desktop App and Mobile App also receive dedicated user API keys automatically at sign-in. These keys serve as long-lived session tokens so users can return to their files without repeatedly signing in. This sign-in process is available even when Allow Users To Create API Keys is disabled; that setting controls credentials users create for their own integrations.

The site's separate Desktop App Session Lifetime and Mobile App Session Lifetime settings control the expiration of each app's tokens independently. App session keys are excluded from the web interface's integration-key list. Their issuance during app sign-in does not mean that user-created integration keys are enabled.

S3 Compatible API Keys

You can create S3-compatible API keys by selecting the Enable use with Inbound S3-compatible clients option when creating a key. This enables connections to your Files.com site from S3-compatible applications using the Amazon S3 protocol.

S3-compatible API keys are tied to individual user accounts and do not support site-wide access. The S3 connection signs in as the associated user, so choose the account whose file access the integration needs. That user must have S3-Compatible Endpoint protocol permission. Creating an S3-compatible key does not grant this permission, and the separate Web, Desktop App, and API permission does not control S3 access.

When you enable this option, Files.com displays an Access Key ID and a corresponding Secret Key. Store these values immediately. Once you close the window, you cannot retrieve them again.

Disabling and Revoking API Keys

You can temporarily disable a user API key by updating its permission set to none. You can later reactivate the same key by updating its permissions again.

To permanently revoke a key, delete it. Only Site Administrators can delete site-wide API keys. Any Site Administrator can delete user keys for any user. If your site settings allow it, users who are not Site Administrators can delete their own user API keys. Expiration and Key Lifecycle Rules can also end a key's access. Changing a password or ending a web session does not revoke API keys.

Viewing Existing API Keys

The key value is shown only when the key is first created. You cannot access the value of an existing API Key afterward. This is a standard security precaution that most platforms take to maintain the secrecy of important credentials.

If you have lost the contents of your key, delete the existing API Key entry and create a new one.

Using API Keys with Child Sites

An API key is linked to a single site. Whether the key is site-wide or for one user, it only works with the site it was created on. A key created on a Parent Site only works on that Parent Site; a key created on a Child Site only works on that Child Site.

Full Access and Files Only user keys require the user to belong to the same site where the key was created. For a custom integration that connects directly to a Child Site, create its user account and API key on that Child Site.

The Desktop App and Mobile App support Parent Site users without requiring a separate Child Site account. When a Parent Site user signs in to a Child Site they can access through either app, the app automatically receives a dedicated user key issued on that Child Site. The key acts with that user's permissions on that Child Site only; it does not authenticate to the Parent Site or another Child Site. Child Site Administrators cannot create API keys for Parent Site users.