Choosing Between API Key Management for Users in myDRE and Data Upload API (also referred to as Data Landing Zone).
In myDRE, there are now two distinct methods for uploading data into workspaces using APIs. While they both allow secure file transfers, the key difference lies in how authentication and permissions are managed. Choosing the right one depends on your use case, access level, and whether the data upload is automated or user-driven.
This article will help you understand the differences, decide which method to use, and easily navigate to the detailed documentation of each.
1. API Key Management for Users in myDRE
This is the recommended and most secure method for users who actively work in a workspace and want to upload data using a personal API key. Use this method if you're an active user of a workspace and want control over your API access.
- Keys are tied to your user account.
- You can generate and manage your key yourself.
- Keys automatically expire when you lose workspace access or your account is deactivated.
- Uploads are traceable (your myDRE user name is attached to uploaded data).
2. Data upload API (also referred to as Data Landing Zone)
Data Upload API is a more traditional and flexible method, designed for use cases where automation or external systems need to upload data to a workspace without being a member of it. Use this method if you are setting up external or automated uploads, or need to allow non-members to submit data.
- Authentication is done via two API keys:
- A Subscription key (shared across all workspaces in the Azure subscription) and requested to your local Research Support
- A Workspace API key (specific to each workspace)
- This method does not tie uploads to a specific user.
- Keys must be managed securely and manually revoked if compromised.
- Suitable for external scripts, apps, or pipelines that must deliver data without a user account.
Which One Should You Use?
You may need both, depending on the context:
- Use API Key Management for Users when you are uploading and want secure, traceable access.
- Use Data Upload API when a system or someone external needs to push data to your workspace.
Both methods can coexist and serve different purposes. However, note that:
The Subscription Key used in Data Upload API is not the same as the user-specific key used in API Key Management. They are not interchangeable.
When uploading files:
- API Key Management logs the user who uploaded the file.
- Data Upload API uploads appear without user identity, as they're based on shared keys.
Always treat API keys like passwords. Store them securely and never share them in public scripts or messages.