Skip to main content

Test Stored Connection

POST 

/api/storefront/instances/:id/test-connection

Verify the credentials already stored on the instance and remember what the store reported — the store name and counts are written back onto the instance so the dashboard can name it, and any standing connection error is cleared on success. Takes no body.

Not yet available to API tokens

This endpoint currently requires session authentication; Personal Access Token scope support is in progress.

Which call is made depends on how the instance was connected (auth on the instance resource):

  • oauth — the store's owner approved and the store issued the key. Verified through GET /connect, which proves the key is live AND that the store still has a record of this tenant. The store's record of the connection rides back in data.raw.connection; storeName, version and counts are carried over from the last successful health probe.
  • api_key — a key pasted in by hand. Verified through GET /health, and data.raw carries the store's whole health body.

422 with data.ok = false when the store refuses (data.status is the store's HTTP status, e.g. 401) or cannot be reached (data.status is null).

Permission: integrations.sync.

Authentication: Bearer token (session or PAT).

Request​

Responses​

OK

Response Headers
    Content-Type