curl --request GET \
--url http://localhost:8080/v1/vaults/{vaultUuid}/items/{itemUuid}/files/{fileUuid} \
--header 'Authorization: Bearer <token>'{
"id": "6r65pjq33banznomn7q22sj44e",
"name": "foo.txt",
"size": 35,
"content_path": "v1/vaults/ionaiwtdvgclrixbt6ztpqcxnq/items/p7eflcy7f5mk7vg6zrzf5rjjyu/files/6r65pjq33banznomn7q22sj44e/content",
"content": "VGhlIGZ1dHVyZSBiZWxvbmdzIHRvIHRoZSBjdXJpb3VzLgo="
}Get the details of a File
curl --request GET \
--url http://localhost:8080/v1/vaults/{vaultUuid}/items/{itemUuid}/files/{fileUuid} \
--header 'Authorization: Bearer <token>'{
"id": "6r65pjq33banznomn7q22sj44e",
"name": "foo.txt",
"size": 35,
"content_path": "v1/vaults/ionaiwtdvgclrixbt6ztpqcxnq/items/p7eflcy7f5mk7vg6zrzf5rjjyu/files/6r65pjq33banznomn7q22sj44e/content",
"content": "VGhlIGZ1dHVyZSBiZWxvbmdzIHRvIHRoZSBjdXJpb3VzLgo="
}Documentation Index
Fetch the complete documentation index at: https://www.1password.dev/llms.txt
Use this file to discover all available pages before exploring further.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
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
Tells server to return the base64-encoded file contents in the response.
true
Response
OK
ID of the file
Name of the file
Size in bytes of the file
Path of the Connect API that can be used to download the contents of this file.
For files that are in a section, this field describes the section.
Show child attributes
Show child attributes
Base64-encoded contents of the file. Only set if size <= OP_MAX_INLINE_FILE_SIZE_KB kb and inline_files is set to true.
Was this page helpful?