POST
/
magic-links
Create Magic Link
curl --request POST \
  --url https://production.trackstarhq.com/magic-links \
  --header 'Content-Type: application/json' \
  --header 'x-trackstar-api-key: <x-trackstar-api-key>' \
  --data '{
  "connection_id": "",
  "integration_allow_list": [
    "shipbob"
  ],
  "integration_block_list": [
    "shipbob"
  ],
  "integrations_with_endpoints": [
    "get_inventory",
    "get_products",
    "create_order"
  ],
  "integration_type": "",
  "link_duration": 7,
  "customer_id": "customer_id"
}'
{
  "magic_link": {
    "id": "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"
  }
}

Headers

x-trackstar-api-key
string
required

Your organization-level Trackstar API key.

Example:

"<x-trackstar-api-key>"

Body

application/json

Response

Successful response

The response is of type object.