REST API Keys
REST API keys let you authenticate programmatic requests to the Storj public API without using your account password or session cookies. They are distinct from S3-compatible credentials and access grants — REST API keys grant access to account management operations such as listing projects, managing access grants, and retrieving usage data.
REST API keys are available to Pro users only.
Creating a REST API Key
- Log in to the Storj satellite dashboard.
- Click API Keys in the sidebar (or go directly to
https://us1.storj.io/account/api-keys). - Click Create New Key.
- Enter a name and optionally set an expiration date.
- Click Create. Copy the key immediately — it will not be shown again.
Revoking a REST API Key
- Click API Keys in the sidebar (or go directly to
https://us1.storj.io/account/api-keys). - Find the key you want to revoke and click Revoke.
Revoking a key immediately invalidates it. Any in-flight requests using that key will fail.
Using a REST API Key
Include your key as a Bearer token in the Authorization header of every request:
All endpoints are served from your satellite's base URL (e.g. https://us1.storj.io).
Available Endpoints
User
Get User Info
Returns the account details for the authenticated user.
Example:
Response:
Projects
List Projects
Returns all projects owned by the authenticated user.
Example:
Create Project
Request body:
Example:
Update Project
Request body: any subset of name or description.
Delete Project
Bucket Usage
Single Bucket Rollup
Returns usage statistics for a single bucket.
All Bucket Rollups
Returns usage statistics for all buckets in a project.
Access Grants (API Keys)
List Project Access Grants
Returns all access grants (API keys) for a project.
Create Access Grant
Request body:
Delete Access Grant
Key Properties
| Property | Details |
|---|---|
| Format | UUID string |
| Storage | Only the SHA-256 hash is stored; the plaintext key is shown once at creation |
| Expiration | Optional. Once expired, the key is automatically rejected |
| Scope | Grants access to all endpoints listed above for the owning account |
| Revocation | Immediate; no grace period |