Skip to main content

API Keys

An API key gives an application an independent way to authenticate to Files.com. Its account, permission scope, Workspace, path restriction, and lifetime together determine the authority you are giving that application. Choose those controls for the integration's actual work rather than copying the access of the administrator setting it up.

Creation Controls and Existing Keys

The site-wide Allow Users To Create API Keys setting governs creation of users' own integration keys. It is disabled by default, leaving Site Administrators responsible for creating those credentials.

Enabling it lets users create their own keys within their existing account permissions. This lets an organization choose whether integration credentials are issued centrally or by individual users.

Turning the setting off does not revoke existing keys or prevent users from listing or deleting keys they are otherwise authorized to manage.

Updating an existing credential is separate from issuing a new one. Full Access keys and Desktop or Mobile app credentials can change their own expiration even when users may not create API keys.

Other key-management operations remain subject to ownership, administrative authority, and the user's account-management permissions. The creation setting never gives an ordinary user authority over another user's keys.

Use key deletion, expiration, or the appropriate account controls when the intended result is to end existing access. A creation policy cannot replace the lifetime and revocation controls for credentials already issued.

Files.com also issues dedicated app and Online Editor credentials independently of this setting. Their existence does not mean that the user has permission to create integration keys.

App and Online Editor Credentials

Desktop App, Mobile App, and Online Editor credentials let apps continue file work and editors save documents without repeating interactive sign-in for every request. They carry the user's permissions, narrowed by the credential's own scope, rather than the management capabilities of a Full Access integration key.

A user with a valid login session can request these credentials for their own account through the API key creation serviceExternal LinkThis link leads to an external website and will open in a new tab, even when Allow Users To Create API Keys is disabled or the user cannot manage their own integration keys. Another API client can make an equivalent request; the selected credential type does not prove that the official app is installed. Its access restrictions apply regardless of which client requests or presents it.

CredentialPermitted workExpiration
Desktop AppFile and Share Link operations supported by the app, within the user's permissions and the credential's scope. It does not provide general site administration.Subject to the site's Desktop App Session Lifetime.
Mobile AppFile and Share Link operations supported by the app, within the user's permissions and the credential's scope. It does not provide general site administration.Subject to the site's Mobile App Session Lifetime.
Online EditorEditor operations through Files.com's trusted editor service, within the user's permissions and a folder restriction. The credential alone does not authorize an ordinary API connection.An expiration is required and is capped at 24 hours ahead when issued or updated.

An Online Editor credential requires an existing file or folder the user can read. When issued for a file, its restriction covers the containing folder and its descendants, rather than only that document. This supports editor operations such as saving a copy in the same folder; each operation still requires the user's applicable permission.

Desktop App Enabled and Mobile App Enabled are the site controls for the corresponding app credentials. The app session reference explains normal app sign-in checks, expiration updates, and revocation. Disabling the user ends access through all three credential types.

The web interface separates Desktop and Mobile connections from integration keys. Authorized API listing and deletion can still find and revoke Desktop and Mobile credentials. Online Editor credentials are excluded from ordinary key listings and deletion by ID.

Issuing these credentials does not create a Settings Changes entry. Later explicit credential updates or deletions can create entries, so neither an integration-key list nor the absence of a creation entry is a complete inventory of continuing app or editor access.

User Keys and Site-Wide Keys

A user key acts with its associated user's permissions, narrowed by the key's own restrictions. It stops working when that user is disabled or deleted. A dedicated non-administrator user is a useful owner when an integration needs a defined set of files and should not inherit a person's unrelated access.

A site-wide key belongs to the site and has no associated user. With Full Access, it has administrative authority within its Workspace scope, including permission to delete files or users.

Disabling the administrator who created it does not revoke it, and its actions have no associated username in logs or notifications. Use a descriptive name and a separate key for each integration so its purpose and retirement are clear.

On the Developer API creation form, leaving the User blank and retaining Full Access creates a site-wide administrative key. The API uses equivalent defaults for a Site Administrator's request that omits user_id and permission_set.

Select the intended user and permission scope explicitly. API key creation covers those choices.

Permission, Workspace, and Path Scope

ControlWhat it limits
Associated userThe account's existing permissions and administrative access. A user key does not add permissions to the account.
Files OnlyPermits file and folder operations and file actions, except ad hoc GPG encryption and decryption. Supporting access is limited to file migration status within its scope and reading its own key record.
Full AccessPreserves management operations available to the key's account and scope. It is different from a user's Full folder permission.
WorkspaceCustom Workspace keys and Files Only keys stay in their creation Workspace. Full Access keys created in the Default Workspace can also use their account's cross-workspace access.
PathLimits a Files Only integration key to file and folder work within one folder and its subfolders. Full Access keys do not support a path restriction.

Files Only permits only those file operations and supporting lookups. Every other operation is refused, including reads of site or security configuration. The associated user's administrative access does not expand this scope.

The GPG Encrypt and GPG Decrypt actions use the associated user's GPG key access, which for a Site Administrator includes every key in the current Workspace. A Files Only key cannot run either action, regardless of who owns it.

GPG encryption and decryption configured as folder settings still apply to files uploaded with the key.

For Full Access keys created in the Default Workspace, a user key follows its user's current Workspace access; a site-wide key can access every Workspace on the site. Create a key in a Custom Workspace when the integration must stay there. Workspace Scoping gives the full comparison.

API keys belong to one site. A key issued on the Parent Site does not authenticate to a Child Site.

Full Access and Files Only user keys require the user to belong to the site where the key was created. Choose the site and Workspace before creating an integration credential.

Desktop and Mobile App sign-in can issue a dedicated key on a Child Site for a Parent Site user who has access to it. That key acts with the user's permissions on that Child Site only.

Child Site Administrators cannot create API keys for Parent Site users. API Keys with Child Sites explains the distinction between integration credentials and app sign-in.

Only Files Only integration keys support a path restriction. Files.com refuses creation of a Full Access key with a path. Combining Files Only with a path restriction confines the key's file operations to that folder and its descendants, without granting management access that could configure work elsewhere.

Every path a file request accesses must stay inside the restriction, including both ends of a copy or move. A refused request returns not-authorized/api-key-is-path-restricted, even when the associated user can reach that location through a different credential. The restriction does not change that user's other keys or sessions.

A path-restricted key can read the status of only the file migrations it started, such as background copies and moves. Reading that status does not grant access to files outside the restriction.

Path matching follows Files.com's comparison rules on native storage and Remote Server Mounts.

On a remote system that stores reports and REPORTS separately under the same parent, restricting a key to either folder includes both and their contents. Case, accent, and other Unicode differences that compare equally cannot separate access; choose names that compare differently when only one remote folder should be included.

A remote system can also resolve names Files.com keeps separate to the same content. A key restricted to a mounted parent can reach a confidential subfolder through an alternate name such as HR. when that system opens it as HR, even if a Permission Fence on HR blocks the user's inherited grant at that spelling. The key and user still need permission on the requested path. Keep confidential content outside the key's permitted mounted subtree; Path Matching on Mounted Storage explains the boundary and appropriate folder layouts.

S3-Compatible Access Keys

An S3-compatible Access Key ID and Secret Access Key pair belongs to a user-associated Files.com API key. S3 file operations carry that key's permission scope, Workspace scope, and path restriction, alongside the user's applicable folder permissions. This lets an S3 integration have narrower file access than its user needs elsewhere.

For an S3 integration limited to one folder, use a Files Only key with a path restriction. Every path an S3 file operation accesses must stay within that restriction. A copy requires both the source and destination to be inside it. Broader permissions available to the user through another credential do not expand the S3 key's scope.

For multipart uploads, which send one file in several parts, the restriction also applies to the destination of the existing upload that each part belongs to. An upload ID identifies a transfer; it does not grant permission to write to its destination. A part request must satisfy the restriction for both its requested path and the upload's original destination.

Manage these restrictions on the associated API key and user. Deleting, disabling, or expiring that key ends further file access through its S3 credentials; disabling the user ends access through that user's keys. S3 access control and connection settings explain protocol permission and client configuration.

Full Access and Automations

Full Access preserves management operations available to the key's account and Workspace scope. These include configuring Automations when the account has the required authority. Automations use their own execution permissions, so file access through management operations cannot be described by a single folder restriction.

For an integration that needs Full Access, review the associated user's permissions and the key's Workspace scope, together with the permissions of the workflows it can manage. A site-wide Full Access key has administrative authority within its Workspace scope.

Automations v1 and Ownership and Permissions (v2) explain the execution permissions of each version.

Choosing Access for a Folder-Limited Integration

Use a Files Only key restricted to the folder the integration needs. This applies to file exchange through the API, S3-compatible clients, and connections from another Files.com site. The key can work with files in that folder and its descendants, but cannot manage Automations, Share Links, or other resources to arrange access elsewhere.

Whenever possible, associate the key with a dedicated non-administrator user whose folder permissions cover only the required work. Choose the appropriate Workspace as well. These controls limit the authority available to the integration independently of the key's path setting.

API Keys covers configuration and path matching, including names on remote storage that compare equally despite different spelling.

Lifetime, Replacement, and Revocation

API keys authenticate independently of browser sign-in and password-based 2FA. Changing a Files.com password or ending a web session does not revoke an independent API key.

Set an expiration date when the integration has a defined end, and use Key Lifecycle Rules when your policy calls for disabling unused keys.

Changing a Credential's Own Expiration

An expiration date ends authentication once it is reached. Whether the credential can change that date itself depends on its permission scope:

CredentialChanges to its own expiration
Full Access integration keyShorten, extend, or remove the expiration. Desktop and Mobile session lifetime settings do not cap integration keys.
Desktop or Mobile app credentialShorten or extend the expiration, up to the original sign-in time plus that app's currently configured session lifetime. It cannot remove the expiration.
Files Only integration keyCannot update its own expiration because key-management operations are outside its scope. An authorized user or Site Administrator manages the key separately.

A Full Access key's expiration-only update does not require Site Administrator access or permission to create new keys. This applies to user keys, including keys belonging to Shared/Bot users, and to site-wide keys. Changing only its expiration does not grant permission to change other key settings or manage another user's keys.

App credentials remain subject to their session lifetime for every user, including Site Administrators, regardless of whether users may create integration keys. Extending an app credential does not restart the sign-in clock. Desktop & Mobile App Sessions explains how the limit applies when a credential or Site lifetime changes. These limits require app users to authenticate again under the site's sign-in requirements.

The credential must still be valid and authorized when it requests a change. An expired, disabled, or deleted key cannot use an expiration update to restore its own access.

Use Files Only when an integration needs only file operations and its expiration must be managed separately from that credential. Issuing a Full Access key also delegates control of its own expiration; setting a date or disabling key creation does not remove that ability. The API key referenceExternal LinkThis link leads to an external website and will open in a new tab documents programmatic updates.

Replacement and Revocation

A key's secret is shown only at creation. Store it in the integration's credential storage and keep it out of source files, shared messages, and logs.

If the value is lost or needs replacement, create a new key with the required scope, update and verify the integration, then delete the old key. Creating a replacement does not revoke the previous key automatically.

Deleting a key ends that credential's use and associated sessions. It does not undo file operations already completed or remove resources created with it.

If the integration created Automations or Share Links, review those resources separately when retiring it. Access Revocation explains the distinction between stopping authentication and ending the work or access previously arranged.