Information submitted through the support site is private but is not hosted within your secure CDD Vault. Please do not include sensitive intellectual property in your support requests.

File [GET]

Return a single file

GET /api/v1/vaults/<vault_id>/files/<id>

Note: The contents are base64 encoded

 

Example 

curl -H "X-CDD-Token: $TOKEN" https://app.collaborativedrug.com/api/v1/vaults/489978881/files/1069448031

Returns:

{
  "id": 1069448031,
  "class": "uploaded file",
  "name": "tmp.txt",
  "mime_type":
  {
    "synonyms": [],
    "symbol": "text",
    "string": "text/plain",
    "hash": -1147906696977776415
  },
"character_set": "US-ASCII", "contents": "VGhpcyBpcyBhIGZpbGUK" }

Following this up with:

echo VGhpcyBpcyBhIGZpbGUK | base64 -D

Returns:

This is a file

Note: "This is a file" is the actual content of this text file

Have more questions? Submit a request

0 Comments

Article is closed for comments.