API Keys
API keys authenticate access to the MediaLocker API. Each key has configurable scopes and optional expiry.
Creating an API Key
- Navigate to API Keys in the sidebar.
- Click Create Key.
- Enter a name for the key (e.g., "CI/CD Pipeline", "Desktop App").
- Select scopes:
- read — Read objects and metadata
- write — Upload and modify objects
- delete — Delete objects
- admin — Full account management
- Optionally set an expiration date.
- Click Create.
WARNING
The full secret key is shown only once after creation. Copy it immediately and store it securely.
Key Format
API keys have two parts, both shown once at creation:
- Access Key ID:
ml_<32 hex chars>— a public identifier, safe to share and appears in logs - Secret Access Key:
<64 hex chars>— secret, equivalent to a password
Send the Secret Access Key as the bearer token when calling the API (see below). The ml_… Access Key ID identifies the key but is not used as the bearer token on its own.
Managing Keys
Rotating a Key
Click the rotate icon next to any key to generate a new secret while keeping the same key ID and scopes. The old secret is immediately invalidated.
Revoking a Key
Click the trash icon to permanently revoke a key. Revoked keys cannot be restored.
Key Expiry
Keys with expiry dates are automatically disabled after the expiry date. You can set or remove expiry during key creation.
Using API Keys
API Authentication
curl -H "Authorization: Bearer <secret-access-key>" \
https://api.medialocker.io/api/mediaAPI keys authenticate every REST API request. The API then issues short-lived presigned URLs for direct object uploads and downloads — there is no separate S3 access key. See the Developer Docs for details.
Plan Limits
| Feature | Starter | Pro | Studio |
|---|---|---|---|
| Storage | 100 GB | 1 TB | 5 TB |
| Overage | N/A | $0.02/GB | $0.015/GB |
| Egress | 100 GB/mo | 500 GB/mo | 2 TB/mo |
| API Requests | 10,000/mo | 100,000/mo | Unlimited |
| Auto-Capacity | No | Yes | Yes |
| Support | Community | Priority | |
| Max Buckets | 10 | 50 | Unlimited |
| Max Sets | 5 | 50 | Unlimited |
| Max Storyboards | 5 | 50 | Unlimited |
| Max API Keys | 3 | 10 | Unlimited |