get
https://{subdomain}.myshoplaza.com/openapi/2025-06/script_tags/
Retrieves details about a specific script tag by its unique ID.
Requiresread_script_tagaccess scope. More access scope
This Get Script Tag API endpoint allows developers to retrieve detailed information about a specific script tag in a Shoplazza store's storefront by its unique identifier.
This API is especially useful for:
- Viewing the configuration details of an existing script tag
- Verifying the source URL and implementation scope of a script
- Auditing client-side integrations and their configurations
Request Parameters
Public Request Parameters
Path Parameters
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
id | string | Yes | Unique identifier of the script tag. | f50950fa-40ec-441f-b98d-e1869050bdf2 |
Response Explanation
Public Response Parameters
Successful Response
| Parameter | Type | Example | Description |
|---|---|---|---|
code | string | "200" | HTTP status code |
message | string | "Success" | Operation result message |
data.script_tag | object | - | The updated script tag object |
Script Tag Object
| Parameter | Type | Example | Description |
|---|---|---|---|
id | string | "script_tag_123456789" | Unique identifier for the script tag |
display_scope | string | "index" | Indicates where the script tag is applied |
src | string | "https://shoplazza.com/x.js" | URL of the script file |
event_type | string | "myapp" | The tag type, as specified during creation |
created_at | string | "2025-06-15T10:30:00Z" | Timestamp when the script tag was created (ISO 8601 format) |
updated_at | string | "2025-06-15T11:45:00Z" | Timestamp when the script tag was last updated (ISO 8601 format) |
Error Response
| Field | Type | Example | Description |
|---|---|---|---|
code | string | InvalidParameter | Error http message |
message | string | `` | Error message |
