Skip to main content
GET
/
scripts
/
{id}
Get a script by id
curl --request GET \
  --url https://api.salesive.com/api/v1/scripts/{id} \
  --header 'Authorization: Bearer <token>'
{
  "status": 200,
  "success": true,
  "message": "Script retrieved",
  "data": {
    "_id": "66e1f0a3c2d4e5f6a7b8c9d0",
    "integration": "66e0aabbccddeeff00112233",
    "code": "<script>console.log('hi');</script>",
    "enabled": true,
    "shop": "6680aabbccddeeff00112200",
    "createdAt": "2026-06-21T10:30:00.000Z",
    "updatedAt": "2026-06-21T10:30:00.000Z"
  }
}
Returns one script by id. The store is bound to your app token server-side — never send a shop id.

Authorizations

Authorization
string
header
required

Installed-app access token (prefix app_), issued by the OAuth install flow. The store is bound to the token server-side — never send a shop id.

Path Parameters

id
string
required

The script's id (Mongo ObjectId).

Response

The requested script.

Standard Salesive response envelope. The operation-specific payload is carried in data.

status
integer
required

HTTP status code, echoed in the body.

success
boolean
required

Whether the request succeeded.

message
string
required

Human-readable result message.

data
object

A custom storefront script/tracking snippet belonging to the store.