v2

latestOpenAPI 3.0.02026-08-07103189636.5 KB
Files

List recently uploaded files

This lists recently uploaded files, and returns a maximum of 100 files.

get/files-api/v2/projects/{projectId}/files/list

Path parameters

projectIdstring required

A unique project identifier. This can be found in the Smartling Dashboard under Account Settings > API.

Query parameters

uriMaskstring

Returns only files with a URI containing the given substring. Case is ignored. For example, the value .json will match strings.json and STRINGS.JSON but not json.strings

fileTypes[]FileType[]
lastUploadedAfterstring YYYY-MM-DDThh:mm:ssZ

Returns all files uploaded after the specified date.

lastUploadedBeforestring YYYY-MM-DDThh:mm:ssZ

Returns all files uploaded before the specified date.

orderBy'created' | 'fileUri' | 'lastUploaded' | 'created_asc' | 'created_desc' | 'fileUri_asc' | 'fileUri_desc' | 'lastUploaded_asc' | 'lastUploaded_desc'

Sets the name and direction of the parameter to order results by. If ascending or descending is not specified, the default is ascending

limitinteger

In order to get consistent pagination, make sure to specify the orderBy parameter.

offsetinteger

Standard Smartling limit and offset to paginate through results.

Response

OK

Example response

{
  "response": {
    "data": {
      "items": [
        {
          "created": "2016-12-31T00:00:00Z",
          "fileType": "json",
          "fileUri": "file.json",
          "hasInstructions": false,
          "lastUploaded": "2016-01-01T00:00:00Z"
        }
      ]
    }
  }
}