> ## Documentation Index
> Fetch the complete documentation index at: https://docs.junction.com/llms.txt
> Use this file to discover all available pages before exploring further.

# RabbitMQ

> Stream Junction events to RabbitMQ as an ETL pipeline destination, with details on message headers, routing keys, and compression behavior.

> [!NOTE]
>
> ETL Pipelines integration is available for [the Scale plan](https://tryvital.io/pricing).

## Event Structure

Each event is published with these RabbitMQ message custom headers:

| Key | Value |
| - | - |
| Routing Key | Junction event type, e.g., `daily.data.activity.created` |
| `Content-Type` | application/json: UTF-8 JSON document |
| `Content-Encoding` | gzip: The blob is compressed by gzip. null/absent: The blob is uncompressed. |
| Data | Encoded JSON blob. This may or may not be compressed — see `Content-Encoding`. |

> [!NOTE]
>
> Payloads smaller than 1KiB would not be compressed. You must check `Content-Encoding` to identify if
> decompression of the message payload blob is necessary.

> [!NOTE]
>
> At this time, Junction publishes exclusively JSON blobs (`Content-Type == application/json`).
>
> Having said that, you are strongly encouraged to check for and drop any events with unrecognized `Content-Type` and `Content-Encoding`.

## Broker authentication

Junction only supports password authentication at this time.

Junction publishes events with the following settings:

* Publisher Confirm mode is required.
* Events are published with the Mandatory flag but without the Immediate flag.
* Events are published with Event Type as the Routing Key.

Please get in touch if these need to be configured differently for your RabbitMQ exchange.

## Configuration

> [!NOTE]
>
> Org Management API is available for [the Scale plan](https://tryvital.io/pricing).

You can manage your RabbitMQ destination through the Org Management API
[Team ETL Pipeline](https://docs.junction.com/api-reference/org-management/team-etl-pipeline/upsert-team-etl-pipelines.md) endpoints.

A basic configuration would look like this:

```json theme={null}
{
  "team_id": "TEAM_ID",
  "preferences": {
    "enabled": ["rabbitmq"],
    "preferred": "rabbitmq"
  },
  "rabbitmq": {
      "uri": "amqps://...",
      "exchange": "default"
  },
  "push_historical_data": true
}
```


## Related topics

- [ETL Pipelines](https://docs.junction.com/webhooks/etl-pipelines/overview.md)
- [Webhooks And Events](https://docs.junction.com/api-reference/org-management/connect/webhooks-and-events.md)
- [Set Team ETL Pipelines](https://docs.junction.com/api-reference/org-management/team-etl-pipeline/upsert-team-etl-pipelines.md)
- [Get Team ETL Pipelines](https://docs.junction.com/api-reference/org-management/team-etl-pipeline/get-team-etl-pipelines.md)
- [Delete Team ETL Pipelines](https://docs.junction.com/api-reference/org-management/team-etl-pipeline/delete-team-etl-pipelines.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.