Get upload versions
GET
/upload_versions
Base URL
https://app.testsigma.com/api/v1
Retrieve all versions of an uploaded file, identified by its upload ID.
Authenticate with your API key as a
Bearer token in the
Authorization header. Generate a key →QUERY PARAMETERS
query | Filter by upload — e.g. uploadId:147. |
RESPONSE ATTRIBUTES
id | Unique identifier of the file version. |
createdById | ID of the user who created the version. |
updatedById | ID of the user who last updated the version. |
createdDate | Epoch timestamp when the version was created. |
updatedDate | Epoch timestamp when the version was last updated. |
name | Name of the uploaded file. |
appPath | Path where the file is stored. |
fileName | Filename including extension. |
uploadType | Type of upload — e.g. Attachment. |
fileSize | Size of the file in bytes. |
preSignedURL | Pre-signed URL granting temporary access to the file. |
signed | Whether the pre-signed URL is signed. |
REQUEST
curl -X GET \
'https://app.testsigma.com/api/v1/upload_versions' \
-H 'Authorization: Bearer <API_KEY>' \
-H 'Content-Type: application/json'const response = await fetch('https://app.testsigma.com/api/v1/upload_versions', {
method: 'GET',
headers: {
'Authorization': 'Bearer <API_KEY>',
'Content-Type': 'application/json'
}
});
const data = await response.json();import requests
response = requests.get(
'https://app.testsigma.com/api/v1/upload_versions',
headers={
'Authorization': 'Bearer <API_KEY>',
'Content-Type': 'application/json'
}
)
data = response.json()RESPONSE200OK
[
{
"id": 147,
"createdById": 43,
"updatedById": 43,
"createdDate": 1633535450000,
"updatedDate": 1635322081221,
"name": "test-file",
"appPath": "testsigmatech.com/uploads/11/147/Testfile.pdf",
"fileName": "Testfile.pdf",
"uploadType": "Attachment",
"testsigmaAppId": null,
"testsigmaSauceLabsAppId": null,
"browserStackAppId": null,
"sauceLabsAppId": null,
"fileSize": 334666,
"preSignedURL": "https://s3.amazonaws.com/.../Testfile.pdf?X-Amz-Signature=...",
"signed": false
}
]