Get scripts for an integration
curl --request GET \
--url https://api.salesive.com/api/v1/scripts/integration/{integrationId} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.salesive.com/api/v1/scripts/integration/{integrationId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.salesive.com/api/v1/scripts/integration/{integrationId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.salesive.com/api/v1/scripts/integration/{integrationId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.salesive.com/api/v1/scripts/integration/{integrationId}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.salesive.com/api/v1/scripts/integration/{integrationId}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.salesive.com/api/v1/scripts/integration/{integrationId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"status": 200,
"success": true,
"message": "Scripts retrieved",
"data": [
{
"_id": "66e1f0a3c2d4e5f6a7b8c9d0",
"integration": null,
"code": "<script>console.log('hi');</script>",
"enabled": true,
"shop": "6680aabbccddeeff00112200",
"createdAt": "2026-06-21T10:30:00.000Z",
"updatedAt": "2026-06-21T10:30:00.000Z"
}
]
}{
"status": 401,
"success": false,
"message": "Authentication required",
"data": null
}{
"status": 403,
"success": false,
"message": "Insufficient scope",
"data": null
}{
"status": 404,
"success": false,
"message": "Resource not found",
"data": null
}Scripts
Get scripts by integration
Read the scripts attached to an integration, or your app’s own scripts. Requires the READ_SCRIPTS scope.
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>'import requests
url = "https://api.salesive.com/api/v1/scripts/integration/{integrationId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.salesive.com/api/v1/scripts/integration/{integrationId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.salesive.com/api/v1/scripts/integration/{integrationId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.salesive.com/api/v1/scripts/integration/{integrationId}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.salesive.com/api/v1/scripts/integration/{integrationId}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.salesive.com/api/v1/scripts/integration/{integrationId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"status": 200,
"success": true,
"message": "Scripts retrieved",
"data": [
{
"_id": "66e1f0a3c2d4e5f6a7b8c9d0",
"integration": null,
"code": "<script>console.log('hi');</script>",
"enabled": true,
"shop": "6680aabbccddeeff00112200",
"createdAt": "2026-06-21T10:30:00.000Z",
"updatedAt": "2026-06-21T10:30:00.000Z"
}
]
}{
"status": 401,
"success": false,
"message": "Authentication required",
"data": null
}{
"status": 403,
"success": false,
"message": "Insufficient scope",
"data": null
}{
"status": 404,
"success": false,
"message": "Resource not found",
"data": null
}Returns every script attached to an integration. The store is bound to your app token server-side, so never send a shop id.
Your app as the integration
An app script belongs to the installation, so an app normally asks for itself. Pass any of these asintegrationId and the response lists the scripts your install created:
- your app id, from
GET /app/contextatdata.app.id - your client id,
app_<hex> - your installation id, from
GET /app/contextatdata.app.installationId
GET /scripts.
A catalog integration
A merchant catalog integration id returns the scripts of that integration. A missing id is404, an id with no scripts is 200 with an empty array. That difference lets you validate an id before using it.
Response shape
data is an array of scripts. An app script has integration: null and an installation id. A merchant script has an integration id and installation: null.Authorizations
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
Your app id, your client id, your installation id, or a merchant catalog integration id.
Response
Scripts for the integration.
Was this page helpful?

