Get Entry Attachment
GET/v1/vaults/:vault/entries/:entry/attachments/:index
Read the selected attachment as base64.
Required token scope: secrets:read.
Request
Responses
- 200
- 401
- 403
- 404
- 422
- 423
- 503
OK
Unauthorized
UNAUTHORIZED. Supply a valid bearer token.
Response Headers
WWW-Authenticate
Bearer authentication challenge.
Forbidden
FORBIDDEN. Check the required scope and send the request without an Origin header.
Not Found
-
VAULT_NOT_FOUND. Check the vault ID and the token's owner. -
ENTRY_NOT_FOUND. Get the entry UUID from the entry list. -
ATTACHMENT_NOT_FOUND. Get the current index from the entry's attachment list.
Unprocessable Entity
-
INVALID_REQUEST. Check the request parameters and JSON body against the schema. -
ATTACHMENT_LIMIT. Inline transfers are limited to 32 KiB of decoded data. Uploads must be nonempty.
Locked
VAULT_LOCKED. Unlock the vault and retry.
Service Unavailable
STORE_UNAVAILABLE. Check the data directory, permissions, and available space.