Get Magic Links
curl --request GET \
--url https://production.trackstarhq.com/magic-links \
--header 'x-trackstar-api-key: <x-trackstar-api-key>'import requests
url = "https://production.trackstarhq.com/magic-links"
headers = {"x-trackstar-api-key": "<x-trackstar-api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-trackstar-api-key': '<x-trackstar-api-key>'}};
fetch('https://production.trackstarhq.com/magic-links', 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://production.trackstarhq.com/magic-links",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-trackstar-api-key: <x-trackstar-api-key>"
],
]);
$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://production.trackstarhq.com/magic-links"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-trackstar-api-key", "<x-trackstar-api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://production.trackstarhq.com/magic-links")
.header("x-trackstar-api-key", "<x-trackstar-api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://production.trackstarhq.com/magic-links")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-trackstar-api-key"] = '<x-trackstar-api-key>'
response = http.request(request)
puts response.read_body{
"magic_links": [
{
"id": "c0a4fef52f664ecf9e766c16811c3289",
"url": "https://link.trackstarhq.com/c0a4fef52f664ecf9e766c16811c3289",
"expires_at": "2025-09-17T15:01:41Z",
"integration_type": "wms",
"integration_allow_list": [
"shipbob"
],
"integration_block_list": [
"extensiv-3pl-central"
],
"integrations_with_endpoints": [
"get_inventory"
],
"customer_id": "customer-123"
}
]
}{
"error": "<string>",
"detail": {
"<location>": {
"<field_name>": [
"<string>"
]
}
}
}Admin API Reference
Get Magic Links
Get a list of all Magic Links for your organization.
GET
/
magic-links
Get Magic Links
curl --request GET \
--url https://production.trackstarhq.com/magic-links \
--header 'x-trackstar-api-key: <x-trackstar-api-key>'import requests
url = "https://production.trackstarhq.com/magic-links"
headers = {"x-trackstar-api-key": "<x-trackstar-api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-trackstar-api-key': '<x-trackstar-api-key>'}};
fetch('https://production.trackstarhq.com/magic-links', 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://production.trackstarhq.com/magic-links",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-trackstar-api-key: <x-trackstar-api-key>"
],
]);
$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://production.trackstarhq.com/magic-links"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-trackstar-api-key", "<x-trackstar-api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://production.trackstarhq.com/magic-links")
.header("x-trackstar-api-key", "<x-trackstar-api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://production.trackstarhq.com/magic-links")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-trackstar-api-key"] = '<x-trackstar-api-key>'
response = http.request(request)
puts response.read_body{
"magic_links": [
{
"id": "c0a4fef52f664ecf9e766c16811c3289",
"url": "https://link.trackstarhq.com/c0a4fef52f664ecf9e766c16811c3289",
"expires_at": "2025-09-17T15:01:41Z",
"integration_type": "wms",
"integration_allow_list": [
"shipbob"
],
"integration_block_list": [
"extensiv-3pl-central"
],
"integrations_with_endpoints": [
"get_inventory"
],
"customer_id": "customer-123"
}
]
}{
"error": "<string>",
"detail": {
"<location>": {
"<field_name>": [
"<string>"
]
}
}
}⌘I