Skip to content
You're viewing the v2 docs. Looking for v1?Go to v1 docs
Docs
Testsigma
Popular questions
↑↓ to navigate↵ to selectesc to close
Book a demo

Get upload versions

GET/upload_versions
Base URL https://app.testsigma.com/api/v1Region

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. How to authenticate →
queryFilter by upload — e.g. uploadId:147.
idUnique identifier of the file version.
createdByIdID of the user who created the version.
updatedByIdID of the user who last updated the version.
createdDateEpoch timestamp when the version was created.
updatedDateEpoch timestamp when the version was last updated.
nameName of the uploaded file.
appPathPath where the file is stored.
fileNameFilename including extension.
uploadTypeType of upload — e.g. Attachment.
fileSizeSize of the file in bytes.
preSignedURLPre-signed URL granting temporary access to the file.
signedWhether 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()
Response200 OK
[
  {
    "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
  }
]

Was this page helpful?