---
title: "Apps on Connect — Documentation"
canonical: "https://repull.dev/docs/connect/apps"
description: "Apps on Repull Connect: connect PriceLabs for your hosts with a hosted page or a headless key, track health, get the usual Connect webhooks."
updated: "2026-11-30T00:48:58.694Z"
commit: "18314c12fefb59a7545ef7607c0893919de20aa9"
---

# Apps on Connect

Apps are tools that work on the listings a workspace connected to Repull, such as a dynamic pricing tool. They connect through [Repull Connect](https://repull.dev/docs/connect.md) like a PMS or a channel: the same sessions, the same connection list and the same webhooks. Once connected, an app works across every channel those listings are on.

## Available apps

- **PriceLabs** (provider `pricelabs`): reads listings, calendars and reservations, and pushes nightly prices and minimum stays. [Connect PriceLabs](https://repull.dev/docs/connect/apps/pricelabs.md).

`GET /v1/connect/providers` lists apps with `category: "app"`, and the hosted picker (`POST /v1/connect`) shows them in an **Apps** group. The full directory is at [repull.dev/apps](https://repull.dev/apps); hosts using the Repull dashboard connect them under [Apps](https://repull.dev/dashboard/apps).

## How an app connects

An app connects with a key that Repull issues for a workspace and the host pastes into the app. Each key is one connection. An app key is not an API key:

- It covers one workspace: every listing in it, including listings added later. The headless call can narrow it to a list of listings.
- It lets the app do only what the app needs. A PriceLabs key reads listings, calendars and reservations and writes prices and minimum stays, nothing else.
- It works only inside its app. Used on any Repull API endpoint, it is refused with `403 forbidden_scope`.
- It is shown once. Disconnecting revokes it; the app loses access immediately.

> **Note: Recommended: a sub-workspace per host**
>
> Put the listings an app should work on in a [sub-workspace](https://repull.dev/docs/workspaces.md) and connect the app there. The app sees only those listings, and listings added to the sub-workspace later are included without a new key.

## Hosted: let the host connect it

1. Open a session for the host's workspace: `POST /v1/connect/pricelabs` with `redirectUrl`, plus `X-Workspace-Id` for an existing sub-workspace or `workspace: { name }` for a new one.
2. Send the host to the `url` it returns. The page shows the key once with the steps to paste it into the app, then waits.
3. When the app first calls Repull successfully with the key, the session completes: the host lands on your `redirectUrl` with `status=connected&connectionId=…&state=…` (or your popup gets `repull:connect:completed`).

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

# → { "url": "https://connect.repull.dev/cs_8f2a1c9e/pricelabs", "provider": "pricelabs",
#     "sessionId": "cs_8f2a1c9e", "expiresAt": "…", "state": "host-4411" }
```

## Headless: show the key in your own app

`POST /v1/connect/pricelabs/key` returns the key once, with the connection. No body covers the whole workspace (new listings included); `listingIds` covers only those listings.

```
curl -X POST https://api.repull.dev/v1/connect/pricelabs/key \
  -H "Authorization: Bearer sk_live_YOUR_KEY" \
  -H "X-Workspace-Id: 1204" \
  -H "Content-Type: application/json" \
  -d '{ "label": "PriceLabs: beach houses" }'
```

## Connections and health

`GET /v1/connect/pricelabs` lists the workspace's app connections in `accounts[]`, each with `health`; `GET /v1/connect` lists active ones next to your channels and PMSs. App connections have `externalAccountId: null` (the app gives no account id); `id` is the connection.

- `active`: a successful price or minimum-stay push in the last 24 hours.
- `idle`: the app connected before but has not pushed in the last 24 hours.
- `failing`: more than 25% of the last 24 hours' requests failed (at least 5 requests). Read `recentErrors`.
- `never_connected`: the app has not used the key yet. It was not pasted into the app, or not saved there.

## Webhooks

Apps use the same Connect webhooks as every provider, with `provider: "pricelabs"`:

- [`connect.session.completed`](https://repull.dev/docs/webhooks/connect-session-completed.md): the host finished the hosted page (the app made its first successful call).
- [`account.created`](https://repull.dev/docs/webhooks/account-created.md): the app first used the key successfully, hosted or headless.
- [`account.disconnected`](https://repull.dev/docs/webhooks/account-disconnected.md): the connection was disconnected and its key revoked.

A failing connection does not send an event; watch `health.status`.

## Disconnect

`DELETE /v1/connect/pricelabs?id=` revokes one connection's key. The `id` is optional when the workspace has exactly one; with several, the answer is `422` with them in `valid_values`.

```
curl -X DELETE "https://api.repull.dev/v1/connect/pricelabs?id=523" \
  -H "Authorization: Bearer sk_live_YOUR_KEY" \
  -H "X-Workspace-Id: 1204"
```

Reference: [Connect (hosted)](https://repull.dev/docs/api/connect-widget/pricelabs-session.md) · [Create a key](https://repull.dev/docs/api/connect-widget/pricelabs-key.md) · [Connections](https://repull.dev/docs/api/connect-widget/pricelabs-connections.md) · [Disconnect](https://repull.dev/docs/api/connect-widget/pricelabs-disconnect.md)
