Skip to main content

Test Connection

GET 

/api/temu/:integrationInstance/test-connection

Verifies that the stored Temu access token for a given integration instance is still valid by calling Temu's getWarehouses endpoint (the cheapest read with no required parameters).

Authorization

Any valid API token can call this endpoint — no specific scope required. Manage tokens.

Used by the Integration Settings page to render a green/red status pill, and by the new-instance / reconnect flow to confirm the instance can actually talk to Temu before dispatching the initial sync jobs.

This endpoint always returns HTTP 200 — connectivity failures are reported in the data.success flag, not via HTTP status.

Path parameters:

  • integrationInstance (int, required) — The ID of the TemuIntegrationInstance to test.

Response data:

  • success (bool) — true when the token is valid and Temu responded; false otherwise.
  • message (string) — Human-readable description of the outcome (e.g. Connection successful, Integration instance is not authenticated, Connection test failed: <upstream-error>).

Authentication: Bearer token (Sanctum).

Request

Responses

OK

Response Headers
    Content-Type