get https://{your-drive}.kommo.com/v1.0/files//versions
A method that allows you to get file versions.
Not sure what your drive name is?
Read a short article to find out.
Limitations
This method is available to integrations with Access to files scope.
Data type header when the request is successful/ in case of an error
Content-Type: application/json
Response parameters
| Parameter | Data type | Description |
|---|---|---|
| uuid | string | UUID of a file version |
| file_uuid | string | File UUID |
| type | string | File version type. Possible parameters– image, video, audio, document, file |
| name | string | File version name |
| sanitized_name | string | File version name in ASCII encoding |
| size | int | File version size in bytes |
| is_main | bool | This version is the active version of the file. |
| source_id | int|null | ID of the source the file version came from |
| created_at | int | Unix Timestamp file version creation time |
| created_by | object | ID of a user added the file version |
| created_by[id] | int | ID of the user who added the file version |
| created_by[type] | string | Type of user who added the file version |
| updated_at | int | Time when the file version was last updated (Unix Timestamp) |
| updated_by | object | ID of the user who updated the file version |
| metadata | object|null | File metadata |
| metadata[extension] | string | File extention |
| metadata[mime_type] | string | File MIME-type |
| previews | array|null | Array of previews for the file |
| previews[0] | object | File preview |
| previews[0][download_link] | string | URL to download preview |
| previews[0][width] | int | Preview width |
| previews[0][height] | int | Preview height |