API reference
Stores
Connect Shopify, sync the catalogue and look up orders
For concepts and a walkthrough, read Connect a Shopify store.
List supported store platforms
/stores/platformsGenerated 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.
curl "https://api.getengageai.app/stores/platforms" \
-H "Authorization: Bearer $ENGAGE_API_KEY"[
{
"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
/stores/connectLinks 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
platformstringrequiredFrom GET /stores/platforms, e.g.
shopify.Min 2 characters · Max 64 characters
storeIdstringrequiredThe store address. For Shopify, the
*.myshopify.comdomain —acme,acme.myshopify.comand the admin URL all work. Not a custom domain.Max 255 characters
credentialsobjectrequiredFor Shopify:
accessToken(the custom app's Admin API access token,shpat_…) andapiSecretKey(its API secret key, which signs webhooks). Encrypted before storage and never returned.displayNamestringDefaults to the store's own name.
Max 255 characters
Response fields 201
storeStoreConnectionrequiredverifiedbooleanrequiredThe store confirmed the credentials.
verificationstring | nullrequiredWhy verification was inconclusive. Null when it succeeded.
webhookUrlstringrequiredWhere the store delivers events. Registered for you.
webhooksRegisteredbooleanrequiredwebhookErrorstring | nullrequiredWhy registration failed. Syncing still works.
syncStartedbooleanrequiredThe first full sync is running in the background.
StoreConnected
storeStoreConnectionrequiredverifiedbooleanrequiredThe store confirmed the credentials.
verificationstring | nullrequiredWhy verification was inconclusive. Null when it succeeded.
webhookUrlstringrequiredWhere the store delivers events. Registered for you.
webhooksRegisteredbooleanrequiredwebhookErrorstring | nullrequiredWhy registration failed. Syncing still works.
syncStartedbooleanrequiredThe first full sync is running in the background.
StoreConnection
idstring (uuid)requiredplatformstringrequiredstoreIdstringrequiredThe canonical store id, e.g.
acme.myshopify.com.displayNamestringrequiredcurrencystring | nullrequiredISO-4217. Every synced price is in it.
statusenumrequiredREVOKED: the store rejected our credentials or the app was uninstalled. Reconnect.
One of
PENDING,ACTIVE,DEGRADED,REVOKED,DISABLED,ERRORstatusReasonstring | nullrequiredwebhooksRegisteredbooleanrequiredFalse means prices refresh only on the daily reconcile, not within seconds. Usually a non-https PUBLIC_BASE_URL.
syncobjectrequiredsync.statusenumrequiredOne of
PENDING,RUNNING,SUCCEEDED,FAILEDsync.startedAtstring (date-time) | nullrequiredsync.lastSyncedAtstring (date-time) | nullrequiredsync.lastErrorstring | nullrequiredsync.productCountintegerrequiredProducts 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.
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"
}
}'{
"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
/storesResponse fields 200
itemsStoreConnection[]required
StoreConnection
idstring (uuid)requiredplatformstringrequiredstoreIdstringrequiredThe canonical store id, e.g.
acme.myshopify.com.displayNamestringrequiredcurrencystring | nullrequiredISO-4217. Every synced price is in it.
statusenumrequiredREVOKED: the store rejected our credentials or the app was uninstalled. Reconnect.
One of
PENDING,ACTIVE,DEGRADED,REVOKED,DISABLED,ERRORstatusReasonstring | nullrequiredwebhooksRegisteredbooleanrequiredFalse means prices refresh only on the daily reconcile, not within seconds. Usually a non-https PUBLIC_BASE_URL.
syncobjectrequiredsync.statusenumrequiredOne of
PENDING,RUNNING,SUCCEEDED,FAILEDsync.startedAtstring (date-time) | nullrequiredsync.lastSyncedAtstring (date-time) | nullrequiredsync.lastErrorstring | nullrequiredsync.productCountintegerrequiredProducts 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.
curl "https://api.getengageai.app/stores" \
-H "Authorization: Bearer $ENGAGE_API_KEY"{
"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
/stores/{id}/syncWebhooks 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
startedbooleanrequiredFalse 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.
curl -X POST "https://api.getengageai.app/stores/$ID/sync" \
-H "Authorization: Bearer $ENGAGE_API_KEY"{
"started": true
}Disconnect a store
/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.
curl -X DELETE "https://api.getengageai.app/stores/$ID" \
-H "Authorization: Bearer $ENGAGE_API_KEY"{
"disconnected": true
}