Create a PriceLabs key (headless)
Connect Widget · POST /v1/connect/pricelabs/key
Create a PriceLabs key (headless)
POST
/v1/connect/pricelabs/keyNote
For platforms that show the key in their own app. Acts on your workspace or the one `X-Workspace-Id` names. Returns 201 with the connection and the key in `key`, shown once. The key works only inside PriceLabs (reads listings, calendars and reservations; writes prices and minimum stays) and is refused on every Repull API endpoint with 403 forbidden_scope. Listings outside the workspace return 404 not_found with field listingIds.
Request
curl -X POST https://api.repull.dev/v1/connect/pricelabs/key \
-H "Authorization: Bearer $REPULL_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "listingIds": ["4118", "4119"] }'Response
{
"id": "524",
"connectionId": "524",
"provider": "pricelabs",
"status": "active",
"connected": true,
"externalAccountId": null,
"accessType": "full_access",
"createdAt": "2026-11-20T21:02:10.000Z",
"disconnectedAt": null,
"label": "PriceLabs: beach houses",
"keyMasked": "sk_live_Nn5K...Q2rB",
"scope": "listings",
"listingIds": ["4118", "4119"],
"listingCount": 2,
"health": { "status": "never_connected", "lastRequestAt": null, "lastSuccessfulWriteAt": null, "writesPerDay": [{ "date": "2026-11-14", "writes": 0 }, { "date": "2026-11-15", "writes": 0 }, { "date": "2026-11-16", "writes": 0 }, { "date": "2026-11-17", "writes": 0 }, { "date": "2026-11-18", "writes": 0 }, { "date": "2026-11-19", "writes": 0 }, { "date": "2026-11-20", "writes": 0 }], "requests24h": 0, "errors24h": 0, "errorRate24h": 0, "requests7d": 0, "errors7d": 0, "errorRate7d": 0, "recentErrors": [] },
"key": "sk_live_Nn5KmT8vYp2QzR4wL9xC7bHd3FjQ2rB",
"instructions": {
"steps": ["Sign in to PriceLabs and open your integrations.", "Add a new integration and choose Repull.", "Paste the key and save."],
"scope": "…"
}
}Body Parameters
listingIdsstring[]Only these listings of the workspace, 1 to 1000. Omit for every listing, including listings added later (recommended, in a sub-workspace).
labelstringA name for the connection, up to 120 characters.
AI