GET
/
connections
curl --request GET \
  --url https://production.trackstarhq.com/connections \
  --header 'x-trackstar-api-key: <x-trackstar-api-key>'
{
  "data": [
    {
      "connection_id": "07b344db-0304-4866-9ae1-ac8af5292a28",
      "integration_name": "integration_name",
      "customer_id": "customer_id",
      "created_at": "2023-01-01T00:00:00Z",
      "last_used": "2023-01-01T00:00:00Z",
      "times_used": 1,
      "latest_sync": "2023-01-01T00:00:00Z",
      "sync_schedules": [
        {
          "function_name": "get_inventory",
          "latest_sync": "2023-01-01T00:00:00Z",
          "sync_frequency": 3600,
          "in_progress": false
        }
      ],
      "errors": [
        {
          "error_message": "error_message",
          "affected_endpoints": [
            {
              "endpoint": "GET /connection",
              "preventing_sync": false
            }
          ],
          "first_seen": "2023-01-01T00:00:00Z",
          "last_seen": "2023-01-01T00:00:00Z"
        }
      ],
      "available_actions": [
        "get_inventory",
        "get_products"
      ],
      "available_endpoints": [
        "get_inventory",
        "get_products"
      ],
      "integration_type": "wms",
      "webhooks_disabled": false
    }
  ],
  "next_token": "next_token",
  "total_count": 1
}

Headers

x-trackstar-api-key
string
required

Your organization-level Trackstar API key.

Example:

"<x-trackstar-api-key>"

Query Parameters

page_token
string | null

The page token to use to retrieve the next page of results. If this field is omitted, there are no subsequent pages.

Example:

"page_token"

Response

200
application/json
Successful response
data
object[]

A list of connections for your organization.

Example:
[
  {
    "connection_id": "07b344db-0304-4866-9ae1-ac8af5292a28",
    "integration_name": "integration_name",
    "customer_id": "customer_id",
    "created_at": "2023-01-01T00:00:00Z",
    "last_used": "2023-01-01T00:00:00Z",
    "times_used": 1,
    "latest_sync": "2023-01-01T00:00:00Z",
    "sync_schedules": [
      {
        "function_name": "get_inventory",
        "latest_sync": "2023-01-01T00:00:00Z",
        "sync_frequency": 3600,
        "in_progress": false
      }
    ],
    "errors": [
      {
        "error_message": "error_message",
        "affected_endpoints": [
          {
            "endpoint": "GET /connection",
            "preventing_sync": false
          }
        ],
        "first_seen": "2023-01-01T00:00:00Z",
        "last_seen": "2023-01-01T00:00:00Z"
      }
    ],
    "available_actions": ["get_inventory", "get_products"],
    "available_endpoints": ["get_inventory", "get_products"],
    "integration_type": "wms",
    "webhooks_disabled": false
  }
]
next_token
string | null

See pagination for more details.

Example:

"next_token"

total_count
integer

The number of items returned.

Example:

1