> ## Documentation Index
> Fetch the complete documentation index at: https://docs.trackstarhq.com/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Trackstar is a unified REST API for WMS, cart, and carrier systems. Base URL: https://production.trackstarhq.com. There is no SDK; call the API with plain HTTP.
> Send x-trackstar-api-key on every request. Endpoints scoped to one connection also need x-trackstar-access-token. Read both from environment variables and never print them.
> Reads return data Trackstar has already synced from the connected system. Writes (POST, PUT, PATCH, DELETE) are forwarded to the connected system immediately.
> A new connection has no data until its initial sync finishes. Wait for the connection.historical-sync-completed webhook, or poll GET /connections/{connection_id} and check historical_sync_completed.
> List endpoints page with page_token and next_token (limit is capped at 1000). Repeat every filter on every page. Filters use field[operator]=value, for example created_date[gte]=2026-01-01T00:00:00Z.
> Write bodies must not contain null or empty strings; omit the field instead. Call GET /integrations/{integration_type}/{integration_name}/write-info first to learn the exact fields an integration accepts.
> To test without real credentials, POST /sandbox/generate-sandbox/{wms|cart|carrier} with the API key returns a sandbox access token. Start at https://docs.trackstarhq.com/how-to-guides/build-with-ai.md and install the skills with: npx skills add https://docs.trackstarhq.com

# Get Magic Link

> Get a Magic Link by its ID.



## OpenAPI

````yaml get /magic-links/{magic_link_id}
openapi: 3.1.0
info:
  description: >

    Trackstar is a Unified API that provides standard endpoints for Supply Chain
    Logistics. We currently offer an API for Warehouse Management Systems (WMS).
  title: Trackstar API
  version: 0.1.0
servers:
  - description: Trackstar API
    url: https://production.trackstarhq.com
security: []
tags: []
externalDocs:
  description: Trackstar API Documentation
  url: https://docs.trackstarhq.com
paths:
  /magic-links/{magic_link_id}:
    get:
      tags:
        - Auth
      summary: Get Magic Link
      description: Get a Magic Link by its ID.
      operationId: get_get_magic_link_external
      parameters:
        - in: path
          name: magic_link_id
          schema:
            type: string
          required: true
        - in: header
          name: x-trackstar-api-key
          description: Your organization-level Trackstar API key.
          schema:
            type: string
            example: <x-trackstar-api-key>
          required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MagicLinkResponseSchema'
          description: Successful response
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPError'
          description: Not found
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ValidationError'
          description: Validation error
components:
  schemas:
    MagicLinkResponseSchema:
      type: object
      properties:
        magic_link:
          $ref: '#/components/schemas/MagicLink'
      required:
        - magic_link
      additionalProperties: false
      title: MagicLinkResponseSchema
    HTTPError:
      properties:
        error:
          type: string
        id:
          type: string
          description: The ID of the item that wasn't found.
      required:
        - error
      type: object
      title: HTTPError
    ValidationError:
      properties:
        error:
          type: string
        detail:
          type: object
          properties:
            <location>:
              type: object
              properties:
                <field_name>:
                  type: array
                  items:
                    type: string
      required:
        - error
      type: object
      title: ValidationError
    MagicLink:
      type: object
      properties:
        id:
          type: string
          description: The magic link ID
          example: c0a4fef52f664ecf9e766c16811c3289
        url:
          type: string
          description: The full Magic Link URL to share with your customer
          example: https://link.trackstarhq.com/c0a4fef52f664ecf9e766c16811c3289
        expires_at:
          type: string
          description: ISO 8601 timestamp when link expires
          example: '2025-09-17T15:01:41Z'
        integration_type:
          type: string
          enum:
            - wms
            - freight
            - cart
            - carrier
            - erp
          description: Type of integration
          example: wms
        integration_allow_list:
          type: array
          description: Allowed integrations
          example:
            - shipbob
          items:
            type: string
            description: ''
            example: integration_allow_list
        integration_block_list:
          type: array
          description: Blocked integrations
          example:
            - extensiv-3pl-central
          items:
            type: string
            description: ''
            example: integration_block_list
        integrations_with_endpoints:
          type: array
          description: Integrations with specific endpoints
          example:
            - get_inventory
          items:
            type: string
            description: ''
            example: integrations_with_endpoints
        customer_id:
          type:
            - string
            - 'null'
          description: Customer identifier
          example: customer-123
      required:
        - customer_id
        - expires_at
        - id
        - integration_allow_list
        - integration_block_list
        - integration_type
        - integrations_with_endpoints
        - url
      additionalProperties: false
      title: MagicLink

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.