Get Script Tag

Retrieves details about a specific script tag by its unique ID.

🔒

Requires read_script_tag access 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:

  1. Viewing the configuration details of an existing script tag
  2. Verifying the source URL and implementation scope of a script
  3. Auditing client-side integrations and their configurations

Request Parameters

Public Request Parameters

📘

Path Parameters

ParameterTypeRequiredDescriptionExample
idstringYesUnique identifier of the script tag.f50950fa-40ec-441f-b98d-e1869050bdf2

Response Explanation

Public Response Parameters

📘

Successful Response

ParameterTypeExampleDescription
codestring"200"HTTP status code
messagestring"Success"Operation result message
data.script_tagobject-The updated script tag object

Script Tag Object

ParameterTypeExampleDescription
idstring"script_tag_123456789"Unique identifier for the script tag
display_scopestring"index"Indicates where the script tag is applied
srcstring"https://shoplazza.com/x.js"URL of the script file
event_typestring"myapp"The tag type, as specified during creation
created_atstring"2025-06-15T10:30:00Z"Timestamp when the script tag was created (ISO 8601 format)
updated_atstring"2025-06-15T11:45:00Z"Timestamp when the script tag was last updated (ISO 8601 format)

Error Response

FieldTypeExampleDescription
codestringInvalidParameterError http message
messagestring``Error message
Language
Credentials
Header
URL
Click Try It! to start a request and see the response here!