1Password Connect
  1. Files
1Password Connect
  • Activity
    • Retrieve a list of API Requests that have been made.
      GET
  • Health
    • Get state of the server and its dependencies.
      GET
    • Ping the server for liveness
      GET
  • Metrics
    • Query server for exposed Prometheus metrics
      GET
  • Vaults
    • Get all Vaults
      GET
    • Get Vault details and metadata
      GET
  • Items
    • Get all items for inside a Vault
      GET
    • Create a new Item
      POST
    • Delete an Item
      DELETE
    • Get the details of an Item
      GET
    • Update a subset of Item attributes
      PATCH
    • Update an Item
      PUT
  • Files
    • Get all the files inside an Item
      GET
    • Get the details of a File
      GET
    • Get the content of a File
      GET
  1. Files

Get the details of a File

GET
/vaults/{vaultUuid}/items/{itemUuid}/files/{fileUuid}
Files
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET '/vaults//items//files/'
Response Response Example
200 - Example 1
{
  "content": "VGhlIGZ1dHVyZSBiZWxvbmdzIHRvIHRoZSBjdXJpb3VzLgo=",
  "content_path": "v1/vaults/ionaiwtdvgclrixbt6ztpqcxnq/items/p7eflcy7f5mk7vg6zrzf5rjjyu/files/6r65pjq33banznomn7q22sj44e/content",
  "id": "6r65pjq33banznomn7q22sj44e",
  "name": "foo.txt",
  "size": 35
}

Request

Path Params
vaultUuid
string 
required
The UUID of the Vault to fetch Item from
itemUuid
string 
required
The UUID of the Item to fetch File from
fileUuid
string 
required
The UUID of the File to fetch
Query Params
inline_files
string 
optional
Tells server to return the base64-encoded file contents in the response.

Responses

🟢200OK
application/json
Body
content
string <byte>
optional

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

content_path
string 
read-onlyoptional
Path of the Connect API that can be used to download the contents of this file.
id
string 
optional
ID of the file
name
string 
optional
Name of the file
section
object 
optional
For files that are in a section, this field describes the section.
id
string 
optional
size
integer 
optional
Size in bytes of the file
🟠401Invalid or missing token
🟠403Unauthorized access
🟠404File not found
🟠413File content too large to display
Modified at 2022-09-02 07:10:37
Previous
Get all the files inside an Item
Next
Get the content of a File
Built with