Skip to main content
GET
/
scripts
/
integration
/
{integrationId}
Get scripts for an integration
curl --request GET \
  --url https://api.salesive.com/api/v1/scripts/integration/{integrationId} \
  --header 'Authorization: Bearer <token>'
{
  "status": 200,
  "success": true,
  "message": "Scripts retrieved",
  "data": {
    "scripts": [
      {
        "_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 every script attached to the given integration. 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

integrationId
string
required

The integration's id (Mongo ObjectId).

Response

Scripts for the integration.

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