Skip to main content

Connect

The Connect page takes you from nothing to a delivered event in one pass: pick or create a source, pick or create a destination, and watch the first event arrive — Dispatch wires the route between them for you.

The page walks through three numbered steps — Source, Destination, and Listen. The active step is expanded; finished steps collapse to a one-line summary with a Change button, and later steps stay greyed out until you reach them. A small pipeline summary beside the steps (above them on narrow screens) shows the source, route, and destination you have chosen so far, and marks the outcome once an event comes through. Your browser's Back button walks back through the steps.

Connect is available to owners, admins, and developers. Viewers see a note asking an admin or developer to connect sources instead. In a personal project (one that doesn't belong to an organization), you can route and listen with the sources and destinations it already has, but creating new ones is hidden — the page says why.

Opening Connect​

Connect has no sidebar entry — it is a flow, not a list of things — so it is reachable from wherever you would need it:

FromWhat opens
The Overview's Project setup cardThe card's header button — Connect a source until the project has a source, then Continue setup — and every checklist step open Connect where you left off — see Overview → First run.
G C, or Go to Connect in the command paletteThe Source step.
The empty Sources pageConnect a source, beside Add Source.
The empty Destinations pageConnect a source to a destination, beside Add Destination.
A source cardUnder the destination picker, Or connect a new destination → — or, when the project has no destinations yet, Connect a destination — opens Connect with that source already chosen.
An event that arrived on a source with no destinationsThe event page's Link a destination → opens Connect with that event's source already chosen.

Step 1: Source​

Pick one of your sources under Existing sources — paused sources are listed too, marked Paused — or create one under New source. The integration list puts Manual webhook first, followed by your connected and available integrations; type to search.

  • Manual webhook — the same form as on the Sources page, with the name pre-filled as Webhook: choose an authentication method, optionally open More options for event typing and an IP allowlist, and click Create source. Dispatch then shows the source's URL and, for signing-secret sources, the signing secret. The secret is shown only once, so copy it — but while the page stays open, the Listen step fills it into its sample command for you. Click Continue to move on.
  • Integrations that are already authorized, and integrations that need no authorization, are set up right inside the step, and the new source is chosen when you finish.
  • Integrations that still need authorization offer an Authorize button, with a note on what you'll do when you come back — for example, pick a repository. Dispatch sends you to the provider to approve access, then brings you back to this step with the integration's setup open and a confirmation that it's connected. Finish the setup and Connect moves on to the Destination step.
  • Salesforce authorizes from inside its setup and comes back the same way: after you connect Salesforce, you return to your webhook URL and signing secret, ready for Install in Salesforce.
  • Shopify needs no authorization: its setup gives you a webhook URL to add in your Shopify admin, then asks for your store's signing key. See Shopify.

If an authorization doesn't go through, you come back to the Source step with a note at the top: Authorization was cancelled. if you cancelled it, or what went wrong if the integration couldn't finish connecting. The integration's authorization step is open again, so you can retry right away — for Salesforce, the note names the button to select again. Connecting a source needs admin or developer access to the project; without it, the note says You need admin or developer access to connect this source. and you're back at the list of sources, since retrying wouldn't help. Going back to the list clears the note.

Step 2: Destination​

Pick one of your active destinations under Existing destinations, or create one under New destination. Every destination type is listed in one keyboard-navigable list:

GroupTypes
Chat appsDiscord, Slack, Telegram
Webhook URLWebhook (POST the raw JSON to any URL), Google Chat, Webex
Local developmentDispatch CLI
  • Discord takes you to Discord to authorize the Dispatch bot and pick a channel, then brings you back to Connect with the new destination chosen. If the channel is private, you're asked to name it first.
  • Slack shows your connected workspace's channels right away; if no workspace is connected yet, you authorize Slack first and come back to the channel list. Once a workspace is connected to the project, every admin and developer can pick from its channels — not only the person who connected it. If the workspace connection has gone away, the list says Slack isn't connected for this project. and offers Reconnect Slack, which also brings you back here.
  • Telegram opens its setup inline. Signing in with Telegram for direct messages returns you to the same step.
  • Webhook, Google Chat, and Webex ask for the webhook URL; the name is optional and defaults to the type plus the URL's host — with (2), (3), and so on added if a destination already has that name. Problems with the URL show right in the form, with what you typed kept.
  • Dispatch CLI — see Using the CLI below.

If you cancel the Discord or Slack authorization, you come back to this step with Authorization was cancelled — choose the destination again to retry. If the provider returns an error instead, the step says what went wrong and you can try again. Cancelling the Telegram sign-in leaves you on its login page, which has a Back link to return.

Step 3: Listen​

When you reach this step after picking your destination, Dispatch creates the route from your source to your destination (if one doesn't exist already). If you open Connect on a source and destination that aren't routed — from a bookmark, a reload, or your browser history — the step says so and offers Create route instead of creating it for you, since you may have removed that route on purpose. The route starts with the defaults — auto-format · all events: messages use the destination platform's built-in formatting and every event is delivered. The summary follows the route as configured now: it names the destination's event types when it only accepts certain ones (for example auto-format · push, pull_request, or 3 event types when there are more than two), names the template or says custom rules, custom template, or custom transform once you customize the route, adds the delivery delay if there is one (delay 30s), and starts with paused while the route is paused. Click Customize route whenever you want a template, transform, filter, or routing rules; until then the defaults apply. If the route can't be created, the step shows the reason and a Retry button. While this step is open, it re-checks the route every 30 seconds. If the route is removed elsewhere — in another tab or on the Sources page — the step says This route was removed. and stops listening, and the pipeline summary shows no route. Connect never puts a removed route back on its own; click Recreate route if you want it again.

If the source is paused, the step says so — it won't accept events until you resume it on the Sources page.

Then send an event:

  • Send test event sends a synthetic event through the source right away. If the delivery queue is busy and confirms only some of the source's destinations, a warning says how many it confirmed.
  • Send a real event shows a ready-to-paste curl command for your source's authentication method — signed with your signing secret (filled in for you if you created the source on this page; otherwise set DISPATCH_SIGNING_SECRET), using a project API key from DISPATCH_API_KEY, or unauthenticated for public sources. For an integration source, it shows the URL Dispatch is listening on so you can trigger a test from the provider's own dashboard. For a source with an IP allowlist, it shows the URL and reminds you to send from an allowed address.

The listener below reports what happens to the first event that arrives after the step opened. Its status line updates live:

StateWhat you seeWhat to do
WaitingListening for events on your source, with what to do next for this sourceSend a test event — or run the command below (manual sources), trigger a test from the provider (integration sources), or send from an allowed address (sources with an IP allowlist).
RejectedRequest rejected, the reason, and the recorded detail of what went wrongFollow the hint shown for the reason (below), then send again.
Waiting for a deliveryEvent received · waiting for a delivery to your destinationNothing yet — the event was accepted and no delivery attempt is recorded so far.
DeliveringEvent received · delivering to your destinationNothing — this appears only while a delivery attempt is recorded as pending.
ScheduledEvent received, noting that the route, as configured now, delays deliveries by a number of secondsThe event goes out when the delay elapses.
No delivery recordedEvent received · no delivery to your destination recordedShown when no delivery attempt appears within a minute (or within half a minute after a route's delay), or right away when the route as configured now can't deliver it — the line beneath names the likely reason: the destination is inactive or archived, the route is paused, the destination only accepts certain event types, or a CLI destination's dispatch listen isn't running. Open event shows the delivery trace.
DeliveredDelivered to your destination, with the response status and latencyYou're connected.
FailedDelivery failed, with the response status or error and the attempt number, and the note As configured now, failed deliveries are retried automatically — the event page shows later attempts.Open the event to see the full response and later attempts; fix the destination if needed. If a later attempt succeeds, the status changes to delivered. If a webhook destination's URL redirected to another address, a note above the retry line explains how to point the destination at the right one.
Not routedEvent received but not routed.The line beneath gives the likely reason as the route is configured now — the destination is inactive or archived, the route is paused, the destination only accepts certain event types, or a CLI destination's dispatch listen isn't running. Open event shows the full explanation.
FilteredEvent received and filtered out.Open event shows which filter stopped it. The pipeline summary marks where: on the source when the source's filters blocked the event, or on the route when this route's filter did. If a filter on a different route blocked the event, this destination reads no delivery recorded instead, with the likely reason.

When a request is rejected, the hint matches the reason and the kind of source:

ReasonManual sourceIntegration source
Invalid signature, Bad requestSign the raw body with your signing secret and send it as X-Dispatch-Signature: sha256= followed by the hex HMAC-SHA256 — when the page shows a command, it does this for you.Check that the signing secret saved on the source matches the one in the provider's webhook settings.
No signing secretThe source has no signing secret — send a project API key, or mark the source public.Paste the provider's signing secret into the source on the Sources page.
Invalid API keySend a project API key as Authorization: Bearer followed by the key.The same.
Invalid JSON, Invalid bodySend a JSON body with Content-Type: application/json.The provider sent a body Dispatch couldn't read — check the webhook's content type in the provider's settings.

Some rejections are not reported here: requests blocked by a source's IP allowlist, requests whose body is larger than your plan allows, and requests turned away for going over your plan's rate limit. Rejections also show on the source's card on the Sources page for a day — see Managing Sources. If a request is rejected after an event already came through, a Latest request rejected line appears under the status so you still hear about it.

Once the first event is delivered — or its delivery fails — the panel reads Connected (or Connected — the first delivery failed) and offers Open event, Customize route, Connect another source, and Go to overview. Events that arrive after the first are listed under Later events — the five most recent, each with its own status (such as Delivered, Failed, or Not routed) and a link to its event page.

After no delivery recorded, the listener keeps checking every 15 seconds for ten minutes, so a late delivery still shows up. If the live connection isn't available, the listener says so and keeps checking for as long as the page is open — every few seconds while it waits for a first event or a result, every 15 seconds otherwise.

Test events and real events​

Test events are marked with a Test chip. They go out on every active route from the source, not only the one you picked, and they skip any delivery delay on the route. A test event's type is test, so destinations limited to specific event types don't receive it unless their list includes test; if no route accepts it, the listener reads not routed.

Test events don't complete the Send your first event step of the setup checklist — the first real event does, and the panel reminds you of this after a test delivery.

A feed source's Send latest item is marked with a Latest item chip instead, whether you send it from this page, from the source's card, or from another tab. Unlike a test, it counts as one event toward your plan. Like a test, it skips any delivery delay and doesn't complete the setup checklist — the first new item Dispatch picks up from the feed does.

Changing your choices​

Click Change on a finished step to pick something else. Switching to a different destination doesn't remove a route Connect already created — the Listen step tells you the earlier route stays, and you can remove it from the source's destinations on the Sources page if you don't need it.

Using the CLI​

To forward events to a server on your own machine, choose Dispatch CLI in the Destination step. The step lists the three commands to run:

  1. npm install -g @dispatch.tech/cli
  2. dispatch login
  3. dispatch listen with your local port (enter it in the Port field — 3000 by default), your source's slug, and your project, ready to copy.

The page waits for dispatch listen to connect. The CLI creates its own destination and route when it starts, and Connect moves on to the Listen step by itself as soon as a new CLI route for this source appears. If this source already routes to a CLI destination from an earlier session, the step offers it with Use it — as configured now, deliveries reach it only while dispatch listen is running. See Local Development (CLI) for every command and flag.