Get the details of a File
GET /vaults/{vaultUuid}/items/{itemUuid}/files/{fileUuid}
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”The UUID of the Vault to fetch Item from
The UUID of the Item to fetch File from
The UUID of the File to fetch
Query Parameters
Section titled “Query Parameters ”true
Tells server to return the base64-encoded file contents in the response.
Responses
Section titled “ Responses ”OK
object
Base64-encoded contents of the file. Only set if size <= OP_MAX_INLINE_FILE_SIZE_KB kb and inline_files
is set to true
.
Path of the Connect API that can be used to download the contents of this file.
ID of the file
Name of the file
For files that are in a section, this field describes the section.
object
Size in bytes of the file
{ "content": "VGhlIGZ1dHVyZSBiZWxvbmdzIHRvIHRoZSBjdXJpb3VzLgo=", "content_path": "v1/vaults/ionaiwtdvgclrixbt6ztpqcxnq/items/p7eflcy7f5mk7vg6zrzf5rjjyu/files/6r65pjq33banznomn7q22sj44e/content", "id": "6r65pjq33banznomn7q22sj44e", "name": "foo.txt", "size": 35}
Invalid or missing token
object
A message detailing the error
HTTP Status Code
Example
{ "message": "Invalid token signature", "status": 401}
Unauthorized access
object
A message detailing the error
HTTP Status Code
Example
{ "message": "vault {vaultUuid} is not in scope", "status": 403}
File not found
object
A message detailing the error
HTTP Status Code
Examples
File not found
{ "message": "file {fileUuid} not found", "status": 404}
Item not found
{ "message": "item {itemUuid} not found", "status": 404}
Vault not found
{ "message": "vault {vaultUuid} not found", "status": 404}
File content too large to display
object
A message detailing the error
HTTP Status Code
Examples
File too large
{ "message": "File is too large to inline in request. Use the /v1/vaults/{vaultUUID}/items/{itemUUID}/files/{fileUUID}/content endpoint instead.", "status": 413}