Retrieve a File
Changed onRetrieves one or more files available to your user. Files are not associated with a project or a memory. They are unprocessed and can be used later in the project/document creation workflow step.
To retrieve a specific file, specify the <strong>id</strong> request parameter. To retrieve all files, omit the <strong>id</strong> request parameter.
Example CURL command:
curl -X GET https://api.lilt.com/v2/files?key=API_KEY&id=274
Request
- Base URLhttps://api.lilt.com
- URLhttps://api.lilt.com/v2/files
- AuthHTTP basic
Query parameters
A unique File identifier.
One or more labels. This will return the files which contain all of the given labels.
Response
A list of files.
Example response
[
{
"id": 46530,
"name": "en_US.json",
"file_hash": "3858f62230ac3c915f300c664312c63f",
"detected_lang": "de",
"detected_lang_confidence": 0.7,
"category": "REFERENCE",
"labels": [],
"created_at": "2019-10-16T22:12:34Z",
"updated_at": "2019-10-16T22:12:34Z"
}
]Changes
- info
api operation id
getFileswas added - info
added the new optional
queryrequest parameterid - info
added the new optional
queryrequest parameterlabels - info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the success response with the status
- info