Skip to main content

Endpoints

GET file versions

A list of the versions of a file.

info

This is a Tier 2 endpoint and requires the file_versions:read scope.

HTTP Endpoint

GET /v1/files/:key/versions

Return value

{
"versions": Version[],
"pagination": {
"prev_page": String,
"next_page": String
}
}
Path parametersDescription
key
keyString
File to get version history from. This can be a file key or branch key. Use GET /v1/files/:key with the branch_data query param to get the branch key.
Error codeDescription
403The developer / OAuth token is invalid or expired
404The specified file was not found