Skip to content

Get the content of a File

GET
/vaults/{vaultUuid}/items/{itemUuid}/files/{fileUuid}/content
curl --request GET \
--url http://1password.local/vaults/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/items/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/files/example/content \
--header 'Authorization: Bearer <token>'
vaultUuid
required
string format: uuid

The UUID of the Vault the item is in

itemUuid
required
string format: uuid

The UUID of the Item the File is in

fileUuid
required
string

UUID of the file to get content from

Success

string format: binary
Content-Disposition
string
Example
attachment; filename="privkey.pem"
Content-Length
string
Example
6432

Invalid or missing token

object
message

A message detailing the error

string
status

HTTP Status Code

integer
Example
{
"message": "Invalid token signature",
"status": 401
}

File not found

object
message

A message detailing the error

string
status

HTTP Status Code

integer
Examples

File not found

{
"message": "file {fileUuid} not found",
"status": 404
}