# Sources and destinations

Source: https://kirora.io/docs/guides/integrations/sources-and-destinations

Connect your website, apps and server as named sources, manage their keys, and see where Kirora sends your data and whether it arrives.

Sources are everything that sends contacts and events into Kirora: your website, your apps, your server and the tools you connect. Destinations are everywhere Kirora sends your data onwards: a webhook, or a tool such as Slack. Each one has a name and a status, so you can see at a glance what's flowing and what's stuck.

Both live on the **Data** page, under **Configure** in the sidebar, on the **Sources** and **Destinations** tabs. Anyone in the workspace can look. Only admins, developers and the owner can add, change or delete them.

## Sources

The **Sources** tab lists each source with its **Type**, its **Status**, its **Last event** and how many events it sent in the last 24 hours.

| Status | What it means |
| --- | --- |
| **Receiving** | Data arrived in the last 24 hours. |
| **No data** | Nothing has arrived yet. Finish its setup. |
| **Quiet** | It has sent before, but nothing in the last 24 hours. |
| **Failing** | The latest thing it sent was refused. Open it to see why. |
| **Off** | It's turned off, so everything it sends is refused. |

Every workspace has a server source called **API**. It takes the data from any API key that doesn't belong to another source, such as a key made under **Developer › API keys**, so nothing arrives without a source. You can rename it, but not delete it. Connecting a tool such as Stripe or Segment adds a source for it too; its setup and settings stay on its page under **Integrations**.

### Add a source

1. Go to **Data › Sources** and choose **Add source**.
2. Under **Your website, apps and server**, pick what's sending: **Website**, **iOS app**, **Android app**, **React Native app** (Expo apps too), **Flutter app** or **Server**. Tools you can connect are listed below them.
3. Under **Name your source**, give it a name you'll recognise, such as *Marketing site* or *Help centre*.
4. Choose **Create source**.

The source opens on its **Set up** tab. A website or app source comes with a client key, ready to use.

*Screenshot: The Add a source dialog with the website, app and server sources and the integrations below them*

### Set it up

The **Set up** tab walks your developer through connecting the source, with its key already filled in.

- **Set up with an agent** (recommended) gives a ready-made **Integration prompt** to paste into a coding agent such as Claude Code or Cursor. **Check the connection** below it waits for the first event to arrive.
- **Copy and paste code** shows each step to do by hand.
- **Copy instructions** copies the whole guide, and **Full guide** opens the SDK's docs. Can't install it yourself? Admins and the owner can choose **Invite a developer**.

A server source's **Set up** tab has its own prompt: the API key stays in your server's environment as `KIRORA_API_KEY`, never in the prompt.

For the code itself, see the [web SDK](https://kirora.io/docs/sdks/web), the [mobile SDKs](https://kirora.io/docs/sdks#in-your-app) or the [API quickstart](https://kirora.io/docs/api/quickstart).

*Screenshot: A website source's Set up tab with its integration prompt for a coding agent*

## Keys

Each source keeps its own keys on its **Keys** tab, so a leak in one app is fixed without touching the rest.

**A website or app source** has two kinds:

- **Client keys** (`kirora_pk_…`): public, and meant to go in your website or app. Choose **Add key** for another one. The list shows when each was **Added**, when it was **Last used** and its **Status**.
- **Token secret**: private. It signs user tokens on your server, so it goes in your server's environment as `KIRORA_SDK_TOKEN_SECRET`, never in your website or app. Choose **Create** to make it. It's shown once, so copy it straight away. Each source has one token secret.

**A server source** has **API keys**. Choose **Create key** and copy the key under **Copy your API key now**: it's shown once. Store it as `KIRORA_API_KEY` on your server. A source's API key can only send contacts and events into that source (and keep lists up to date). For anything else, such as transactional sends, create a key under **Developer › API keys**; see [API keys and webhooks](https://kirora.io/docs/guides/integrations/api-keys-and-webhooks).

*Screenshot: A website source's Keys tab with its client key and token secret*

### Rotate keys

Swap a key without dropping a single event:

- **Client key**: choose **Add key** and ship the new key in your website or app. Then, from the old key's menu, choose **Revoke in 24 hours** to give stragglers a day (its status shows when it stops), or **Revoke now** to stop it at once.
- **Token secret**: choose **Rotate**, then **Make a new one**, and copy the new secret. Tokens signed with the old secret keep working for 24 hours while your server moves over.
- **Server API key**: create a new key, deploy it, then choose **Revoke** from the old key's menu. Anything still using the old key is refused at once.

## Source settings

On a source's **Settings** tab:

- **Rename** changes its name. Names are unique within a workspace.
- **Receiving data** turns the source off or back on. While it's off, everything it sends is refused. Its API keys can still read and send messages, so turning off **API** doesn't stop your server's receipts.
- **Delete source** stops its keys at once. The contacts and events it sent stay. A connected tool's source goes when you disconnect the tool.

## Destinations

The **Destinations** tab lists everywhere Kirora sends your data: each webhook endpoint, and tools such as **Slack**, **Google Analytics**, **HubSpot**, **Zapier** and **n8n**. Each shows its **Type**, **Status**, when it **Last delivered**, and how many deliveries were **Delivered** and **Failed** in the last 24 hours.

| Status | What it means |
| --- | --- |
| **Delivering** | Something was delivered in the last 24 hours. |
| **Idle** | Nothing to deliver in the last 24 hours. |
| **Failing** | The latest delivery failed. Open it to see the error. |
| **Off** | It's turned off, or its webhook is paused or was turned off. |

To add one, choose **Add destination** and pick a webhook or a tool. A webhook is set up under **Developer › Webhooks** (see [Add a webhook endpoint](https://kirora.io/docs/guides/integrations/api-keys-and-webhooks#add-a-webhook-endpoint)); a tool is connected from its page under **Integrations**.

### Check and test a destination

Open a destination to see its **Delivery** tab: delivered and failed in the last 24 hours, when it last delivered, and the latest error, if any.

Choose **Send test** to send one sample event there and then. You'll see whether it was **Delivered** or **Not delivered**, with the HTTP status, how long it took and any error. Zapier, n8n and HubSpot have no single address to test, so they don't offer it.

**Edit webhook**, or **Open** followed by the tool's name, takes you to where its events and connection are set.

*Screenshot: A webhook destination's Delivery tab after a test was delivered*

### Destination settings

On a destination's **Settings** tab:

- **Rename** changes its name.
- **Sending** turns it off or back on. A webhook's endpoint is paused while it's off; for a tool, nothing is sent until it's back on.
- **Delete destination** deletes a webhook destination and its webhook. A tool's destination goes when you disconnect the tool.

## Next steps

- [API keys and webhooks](https://kirora.io/docs/guides/integrations/api-keys-and-webhooks)
- [Connect an integration](https://kirora.io/docs/guides/integrations/connect-an-integration)
- [Events](https://kirora.io/docs/guides/contacts/events)
- [Web SDK](https://kirora.io/docs/sdks/web)