**Version: 202201**

# Get Script Tag

**GET** `/openapi/2022-01/script_tags_new/:id`

## Request

**Path Parameters**

- `id` string (required)

  Script's ID

## Responses

**200 | 404**

200

**application/json**

**Schema | Example | Result**

**Schema**

- `script_tag` object

  - `id` string

    **Example:** `f50950fa-40ec-441f-b98d-e1869050dbf2`
  - `display_scope` string

    **Example:** `all`
  - `event_type` string

    **Example:** `app`
  - `src` string

    **Example:** `https://shoplazza.com/x.js`
  - `created_at` string

    **Example:** `2024-04-29T03:22:50Z`
  - `updated_at` string

    **Example:** `2024-04-29T03:22:50Z`

```json
{
  "script_tag": {
    "id": "f50950fa-40ec-441f-b98d-e1869050dbf2",
    "display_scope": "all",
    "event_type": "app",
    "src": "https://shoplazza.com/x.js",
    "created_at": "2024-04-29T03:22:50Z",
    "updated_at": "2024-04-29T03:22:50Z"
  }
}
```

```json
{
  "script_tag": {
    "id": "f50950fa-40ec-441f-b98d-e1869050dbf2",
    "display_scope": "all",
    "event_type": "app",
    "src": "https://shoplazza.com/x.js",
    "created_at": "2024-04-29T03:22:50Z",
    "updated_at": "2024-04-29T03:22:50Z"
  }
}
```

404

**application/json**

**Schema | Example | Result**

**Schema**

- `errors` string[]

```json
{
  "errors": [
    "record not found"
  ]
}
```

```json
{
  "errors": [
    "record not found"
  ]
}
```
