---
title: "Get one revision of a script"
method: GET
path: "/projects/{projectId}/scripts/{scriptId}/revisions/{version}"
tags: ["Scripts"]
---

# Get one revision of a script

`GET /projects/{projectId}/scripts/{scriptId}/revisions/{version}`

## Request

- Base URL: `https://api.loadster.com`
- URL: `https://api.loadster.com/projects/{projectId}/scripts/{scriptId}/revisions/{version}`
- Auth: HTTP bearer

## Path parameters

- `projectId` string, required
- `scriptId` string, required
- `version` integer, required

## Response `200`

OK

- Script
  - `id` string
  - `version` integer
  - `name` string
  - `createdDate` string, date-time
  - `modifiedDate` string, date-time
  - `projectId` string
  - `modifiedBy` User
    - `username` string
    - `name` string
    - `enabled` boolean
    - `invited` boolean
  - `type` 'HTTP' | 'BROWSER' | 'PLAYWRIGHT'
  - `commands` union[]
    - union
      - CodeCommand
        - `id` string
        - `enabled` boolean
        - `type` string
        - `label` string
        - `language` string
        - `code` string
      - CommentCommand
        - `id` string
        - `enabled` boolean
        - `type` string
        - `label` string
        - `text` string
      - ElementCommand
        - `id` string
        - `enabled` boolean
        - `type` string
        - `label` string
        - `element` string
        - `action` 'Click' | 'DoubleClick' | 'Drag' | 'Type' | 'Select' | 'ChooseFiles' | 'Hover' | 'KeyPress' | 'WaitFor'
        - `options` object
        - `locators` ElementLocator[]
          - `method` 'getByRole' | 'getByLabel' | 'getByText' | 'getByTitle' | 'getByTestId' | 'getByPlaceholder' | 'getByAltText' | 'locator' | 'frameLocator' | 'filter' | 'first' | 'last' | 'nth'
          - `options` object
          - `attributes` object
        - `requiredBlobs` Blob[]
          - `key` string
      - EvaluateCommand
        - `id` string
        - `enabled` boolean
        - `type` string
        - `label` string
        - `script` string
      - HttpCommand
        - `id` string
        - `enabled` boolean
        - `type` string
        - `label` string
        - `method` string
        - `baseUrl` string
        - `queryString` string
        - `authType` string
        - `authUsername` string
        - `authPassword` string
        - `authWorkstation` string
        - `authDomain` string
        - `authToken` string
        - `resources` string[]
        - `validationRules` union[]
          - union
            - JsValidationRule
              - …
            - SizeValidationRule
              - …
            - StatusValidationRule
              - …
            - TextValidationRule
              - …
            - TimeValidationRule
              - …
        - `capturingRules` TextCapturingRule[]
          - `type` string
          - `mechanism` string
          - `headerName` string
          - `destinationVariableName` string
          - `textBefore` string
          - `textAfter` string
          - `htmlFormInputName` string
          - `regularExpression` string
          - `regularExpressionOutput` string
          - `javaScript` string
          - `query` string
          - `greedy` boolean
        - `customHeaders` CustomHeader[]
          - `name` string
          - `value` string
        - `requestBody` Blob
          - `key` string
        - `requestContentType` string
        - `requestBodyInterpolated` boolean
        - `throwOnError` boolean
        - `ignoreHttpErrors` boolean
        - `requiredBlobs` Blob[]
          - `key` string
      - IncludeCommand
        - `id` string
        - `enabled` boolean
        - `type` string
        - `label` string
        - `scriptId` string
      - NavigateCommand
        - `id` string
        - `enabled` boolean
        - `type` string
        - `label` string
        - `url` string
      - PlaywrightCommand
        - `id` string
        - `enabled` boolean
        - `type` string
        - `label` string
        - `code` string
      - ScrapeCommand
        - `id` string
        - `enabled` boolean
        - `type` string
        - `label` string
      - ScreenshotCommand
        - `id` string
        - `enabled` boolean
        - `type` string
        - `label` string
        - `fullPage` boolean
        - `forced` boolean
      - SetBrowserVariableCommand
        - `id` string
        - `enabled` boolean
        - `type` string
        - `label` string
        - `name` string
        - `value` unknown
      - TraceCommand
        - `id` string
        - `enabled` boolean
        - `type` string
        - `label` string
        - `htmlTracingEnabled` boolean
      - WaitCommand
        - `id` string
        - `enabled` boolean
        - `type` string
        - `label` string
        - `milliseconds` integer
      - WaitForUrlCommand
        - `id` string
        - `enabled` boolean
        - `type` string
        - `label` string
        - `url` string
        - `options` object
  - `commandsCount` integer
  - `variables` ScriptVariable[]
    - `dataSetId` string
    - `name` string
    - `updateStrategy` string
    - `selectionStrategy` string

---

[API](https://skmtc.dev/loadster/apis/loadster-api.md) · [All operations](https://skmtc.dev/loadster/apis/loadster-api/llms.txt) · [OpenAPI document](https://skmtc.dev/loadster/apis/loadster-api/revisions/1cf3073616fd?raw)
