Skip to content

List supported store platforms

GET/stores/platforms

Generated from the store connectors in this build, with the credentials each one needs.

Responses

  • 200Every supported platform.
  • 401Missing, malformed, revoked or expired API key.
  • 404Not found, or not visible to this organization.
  • 422Request failed validation.
  • 429Rate limited.
  • 500Unexpected error. The correlationId ties it to our logs.
Request
curl "https://api.getengageai.app/stores/platforms" \
  -H "Authorization: Bearer $ENGAGE_API_KEY"
Response · 200
[
  {
    "platform": "string",
    "displayName": "Acme Support (Telegram)",
    "credentialFields": [
      "string"
    ],
    "requiredPermissions": [
      "string"
    ],
    "docsUrl": "https://core.telegram.org/bots/api"
  }
]

Connect an online store and sync its catalogue

POST/stores/connect

Links a store, imports every active product, and subscribes to the store's webhooks so price, stock and product changes reach the assistant within seconds. Once connected, the assistant can also answer "where is my order?" from the store's live order data.

The credentials are checked first. A store that rejects them is a 422 and nothing is saved; a store that cannot be reached is saved DEGRADED.

Shopify setup: in the Shopify admin, Settings → Apps and sales channels → Develop apps → Create an app. Grant the Admin API scopes from GET /stores/platforms, install it, then copy the Admin API access token and the API secret key. Order lookup also needs access to protected customer data (name, email, phone) granted on the app.

The sync runs in the background and is idempotent: a product already imported from a CSV export with the same SKU is adopted rather than duplicated. Synced products are matched on the store's own id from then on.

One store per platform per organization. Reconnecting the same store updates it.

Body
application/json

Request body

  • platformstringrequired

    From GET /stores/platforms, e.g. shopify.

    Min 2 characters · Max 64 characters

  • storeIdstringrequired

    The store address. For Shopify, the *.myshopify.com domain — acme, acme.myshopify.com and the admin URL all work. Not a custom domain.

    Max 255 characters

  • credentialsobjectrequired

    For Shopify: accessToken (the custom app's Admin API access token, shpat_…) and apiSecretKey (its API secret key, which signs webhooks). Encrypted before storage and never returned.

  • displayNamestring

    Defaults to the store's own name.

    Max 255 characters

Response fields 201
  • storeStoreConnectionrequired
  • verifiedbooleanrequired

    The store confirmed the credentials.

  • verificationstring | nullrequired

    Why verification was inconclusive. Null when it succeeded.

  • webhookUrlstringrequired

    Where the store delivers events. Registered for you.

  • webhooksRegisteredbooleanrequired
  • webhookErrorstring | nullrequired

    Why registration failed. Syncing still works.

  • syncStartedbooleanrequired

    The first full sync is running in the background.

StoreConnected

  • storeStoreConnectionrequired
  • verifiedbooleanrequired

    The store confirmed the credentials.

  • verificationstring | nullrequired

    Why verification was inconclusive. Null when it succeeded.

  • webhookUrlstringrequired

    Where the store delivers events. Registered for you.

  • webhooksRegisteredbooleanrequired
  • webhookErrorstring | nullrequired

    Why registration failed. Syncing still works.

  • syncStartedbooleanrequired

    The first full sync is running in the background.

StoreConnection

  • idstring (uuid)required
  • platformstringrequired
  • storeIdstringrequired

    The canonical store id, e.g. acme.myshopify.com.

  • displayNamestringrequired
  • currencystring | nullrequired

    ISO-4217. Every synced price is in it.

  • statusenumrequired

    REVOKED: the store rejected our credentials or the app was uninstalled. Reconnect.

    One of PENDING, ACTIVE, DEGRADED, REVOKED, DISABLED, ERROR

  • statusReasonstring | nullrequired
  • webhooksRegisteredbooleanrequired

    False means prices refresh only on the daily reconcile, not within seconds. Usually a non-https PUBLIC_BASE_URL.

  • syncobjectrequired
  • sync.statusenumrequired

    One of PENDING, RUNNING, SUCCEEDED, FAILED

  • sync.startedAtstring (date-time) | nullrequired
  • sync.lastSyncedAtstring (date-time) | nullrequired
  • sync.lastErrorstring | nullrequired
  • sync.productCountintegerrequired

    Products seen in the last successful run.

    Min -9007199254740991

  • createdAtstring (date-time)required

Responses

  • 201Connected; the first sync has started.
  • 401Missing, malformed, revoked or expired API key.
  • 404Not found, or not visible to this organization.
  • 409The store is connected to another organization, or this one already has a store on that platform.
  • 422Request failed validation.
  • 429Rate limited.
  • 500Unexpected error. The correlationId ties it to our logs.
Request
curl -X POST "https://api.getengageai.app/stores/connect" \
  -H "Authorization: Bearer $ENGAGE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "platform": "shopify",
    "storeId": "acme-outdoors.myshopify.com",
    "credentials": {
      "accessToken": "shpat_0123456789abcdef0123456789abcdef",
      "apiSecretKey": "4f3c2b1a0e9d8c7b6a5f4e3d2c1b0a99"
    }
  }'
Response · 201
{
  "store": {
    "id": "3f6c2a1e-8b4d-4e7a-9c15-2d0b7e6f4a91",
    "platform": "string",
    "storeId": "3f6c2a1e-8b4d-4e7a-9c15-2d0b7e6f4a91",
    "displayName": "Acme Support (Telegram)",
    "currency": "GBP",
    "status": "PENDING",
    "statusReason": "string",
    "webhooksRegistered": true,
    "sync": {
      "status": "PENDING",
      "startedAt": "2026-10-16T09:30:00.000Z",
      "lastSyncedAt": "2026-10-16T09:30:00.000Z",
      "lastError": "string",
      "productCount": 0
    },
    "createdAt": "2026-10-16T09:30:00.000Z"
  },
  "verified": true,
  "verification": "string",
  "webhookUrl": "https://api.getengageai.app/webhooks/telegram_bot?connection=7654321",
  "webhooksRegistered": true,
  "webhookError": "string",
  "syncStarted": true
}

List connected stores, with sync status

GET/stores
Response fields 200
  • itemsStoreConnection[]required

StoreConnection

  • idstring (uuid)required
  • platformstringrequired
  • storeIdstringrequired

    The canonical store id, e.g. acme.myshopify.com.

  • displayNamestringrequired
  • currencystring | nullrequired

    ISO-4217. Every synced price is in it.

  • statusenumrequired

    REVOKED: the store rejected our credentials or the app was uninstalled. Reconnect.

    One of PENDING, ACTIVE, DEGRADED, REVOKED, DISABLED, ERROR

  • statusReasonstring | nullrequired
  • webhooksRegisteredbooleanrequired

    False means prices refresh only on the daily reconcile, not within seconds. Usually a non-https PUBLIC_BASE_URL.

  • syncobjectrequired
  • sync.statusenumrequired

    One of PENDING, RUNNING, SUCCEEDED, FAILED

  • sync.startedAtstring (date-time) | nullrequired
  • sync.lastSyncedAtstring (date-time) | nullrequired
  • sync.lastErrorstring | nullrequired
  • sync.productCountintegerrequired

    Products seen in the last successful run.

    Min -9007199254740991

  • createdAtstring (date-time)required

Responses

  • 200Never includes credentials.
  • 401Missing, malformed, revoked or expired API key.
  • 404Not found, or not visible to this organization.
  • 422Request failed validation.
  • 429Rate limited.
  • 500Unexpected error. The correlationId ties it to our logs.
Request
curl "https://api.getengageai.app/stores" \
  -H "Authorization: Bearer $ENGAGE_API_KEY"
Response · 200
{
  "items": [
    {
      "id": "3f6c2a1e-8b4d-4e7a-9c15-2d0b7e6f4a91",
      "platform": "string",
      "storeId": "3f6c2a1e-8b4d-4e7a-9c15-2d0b7e6f4a91",
      "displayName": "Acme Support (Telegram)",
      "currency": "GBP",
      "status": "PENDING",
      "statusReason": "string",
      "webhooksRegistered": true,
      "sync": {
        "status": "PENDING",
        "startedAt": "2026-10-16T09:30:00.000Z",
        "lastSyncedAt": "2026-10-16T09:30:00.000Z",
        "lastError": "string",
        "productCount": 0
      },
      "createdAt": "2026-10-16T09:30:00.000Z"
    }
  ]
}

Re-sync the whole catalogue now

POST/stores/{id}/sync

Webhooks keep the catalogue current; this makes it correct — it re-reads every product and removes any the store no longer has. It also runs daily on its own. Use it after fixing a failed sync or a revoked token. Returns at once; watch sync.status on GET /stores.

Path parameters

  • idstring (uuid)required
Response fields 202
  • startedbooleanrequired

    False when a sync for this store is already running.

Responses

  • 202Queued, or already running.
  • 401Missing, malformed, revoked or expired API key.
  • 404Not found, or not visible to this organization.
  • 422Request failed validation.
  • 429Rate limited.
  • 500Unexpected error. The correlationId ties it to our logs.
Request
curl -X POST "https://api.getengageai.app/stores/$ID/sync" \
  -H "Authorization: Bearer $ENGAGE_API_KEY"
Response · 202
{
  "started": true
}

Disconnect a store

DELETE/stores/{id}

Stops syncing and destroys the stored credentials. Order lookup stops at once.

Synced products are kept — they are your catalogue whichever way they arrived — but they will no longer update. Delete them at DELETE /products/:id if they should go too. Reconnecting the same store picks them up again.

Shopify keeps its webhook subscriptions until you remove the app from the store; events that arrive meanwhile are ignored.

Path parameters

  • idstring (uuid)required
Response fields 200
  • disconnectedtruerequired

Responses

  • 200Disconnected.
  • 401Missing, malformed, revoked or expired API key.
  • 404Not found, or not visible to this organization.
  • 422Request failed validation.
  • 429Rate limited.
  • 500Unexpected error. The correlationId ties it to our logs.
Request
curl -X DELETE "https://api.getengageai.app/stores/$ID" \
  -H "Authorization: Bearer $ENGAGE_API_KEY"
Response · 200
{
  "disconnected": true
}