Skip to main content
GET
/
api
/
files
/
{filename}
File Download
curl --request GET \
  --url https://api.example.com/api/files/{filename}
{
  "first_name": "Satya",
  "last_name": "Nadella",
  "company": "Microsoft"
}

Request

filename
string
required
The filename to download. Returned in the files field of a lookup response.Format: {sanitized_email}.json or {sanitized_email}.csvExample: satya_at_microsoft_com.json

Example request

curl https://encrata.com/api/files/satya_at_microsoft_com.json -o result.json

Response

Returns the file contents directly with the appropriate content type.
  • .json files return application/json
  • .csv files return text/csv
{
  "first_name": "Satya",
  "last_name": "Nadella",
  "company": "Microsoft"
}