api/docs/vault/init.md

29 lines
764 B
Markdown
Raw Normal View History

# `/vault/init` - POST
Sets up a vault for the authenticated user.
## HTTP Headers
| Header | Content |
|---------------|--------------------|
| Authorization | `Bearer {token}` |
| Content-Type | `application/json` |
## Content - JSON
| Field | Description |
|-------|-----------------------------------------|
| key | The encrypted ContentKey for the vault. |
## Responses
### 200 - Success
Successfully set up the vault.
### 208 - Already Reported
The authenticated user already has a vault.
### 400 - Error: Bad Request
The request was malformed.
### 401 - Error: Unauthorized
The provided auth token doesn't allow you to perform this operation.
### 403 - Error: Forbidden
Blocked for security reasons.