Docs/API Reference/Connect: Apps

Connect PriceLabs: open a hosted session (provider pricelabs)

Connect Widget · POST /v1/connect/:provider

Connect PriceLabs: open a hosted session (provider pricelabs)

POST/v1/connect/:provider

Note

POST /v1/connect/pricelabs. Recommended: one sub-workspace per host holding the listings PriceLabs should price. The hosted page shows the host a key for every listing of that workspace, including listings added later, with the steps to paste it into PriceLabs, then waits. On PriceLabs' first successful call the session completes: the host is redirected (or the popup gets `repull:connect:completed`), and `connect.session.completed` fires with provider pricelabs. `account.created` follows for the new connection; `account.disconnected` when it is revoked. Guide: /docs/connect/apps/pricelabs

Request

curl -X POST https://api.repull.dev/v1/connect/pricelabs \
  -H "Authorization: Bearer $REPULL_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "redirectUrl": "https://app.example.com/connected", "state": "host-4411" }'

Response

{
  "url": "https://connect.repull.dev/cs_8f2a1c9e/pricelabs",
  "provider": "pricelabs",
  "sessionId": "cs_8f2a1c9e",
  "expiresAt": "2026-11-21T09:30:00.000Z",
  "state": "host-4411",
  "workspaceId": "1204"
}

Body Parameters

redirectUrlstring

Where the host lands when PriceLabs is connected (`?status=connected&connectionId=…&state=…`). Defaults to your Connect settings.

statestring

Echoed back on the redirect and in `connect.session.completed`.

localestring

Language of the hosted page.

workspace{ name, externalRef? }

Open the session for a new sub-workspace (its `workspaceId` comes back). Or send `X-Workspace-Id` for an existing one.

accessTypestring

Airbnb only; not used for PriceLabs. A PriceLabs connection is always `full_access` for its listings (prices and minimum stays).

reservationHistoryMonthsinteger

Airbnb only; not used for PriceLabs.

AI