Skip to main content
GET
/
vaults
/
{vaultUuid}
/
items
/
{itemUuid}
/
files
Get all the files inside an Item
curl --request GET \
  --url http://localhost:8080/v1/vaults/{vaultUuid}/items/{itemUuid}/files \
  --header 'Authorization: Bearer <token>'
[
{
"id": "6r65pjq33banznomn7q22sj44e",
"name": "foo.txt",
"size": 35,
"content_path": "v1/vaults/ionaiwtdvgclrixbt6ztpqcxnq/items/p7eflcy7f5mk7vg6zrzf5rjjyu/files/6r65pjq33banznomn7q22sj44e/content",
"content": "VGhlIGZ1dHVyZSBiZWxvbmdzIHRvIHRoZSBjdXJpb3VzLgo="
}
]

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

vaultUuid
string<uuid>
required

The UUID of the Vault to fetch Items from

itemUuid
string<uuid>
required

The UUID of the Item to fetch files from

Query Parameters

inline_files
boolean

Tells server to return the base64-encoded file contents in the response.

Example:

true

Response

OK

id
string

ID of the file

name
string

Name of the file

size
integer

Size in bytes of the file

content_path
string

Path of the Connect API that can be used to download the contents of this file.

section
object

For files that are in a section, this field describes the section.

content
string<byte>

Base64-encoded contents of the file. Only set if size <= OP_MAX_INLINE_FILE_SIZE_KB kb and inline_files is set to true.