# Apache Pulsar integration
[Pulsar](https://pulsar.apache.org) integrations enable you to automatically forward events that occur in Ably to Pulsar topics.
## Create a Pulsar integration
On the [Integrations](https://ably.com/accounts/any/apps/any/integrations) page of your app:
1. Click **New Integration Rule**.
2. Choose **Firehose**.
3. Choose **Pulsar**.
4. Configure the Pulsar [settings](#settings).
5. Click **Create**.
Create a Pulsar rule using the Control API by sending a `POST` request to [`/apps/{app_id}/rules`](https://ably.com/docs/api/control-api.md?source=llms.txt):
### Shell
```
curl -X POST https://control.ably.net/v1/apps/{APP_ID}/rules \
-H "Authorization: Bearer {ACCESS_TOKEN}" \
-H "Content-Type: application/json" \
-d '{
"ruleType": "pulsar",
"requestMode": "single",
"source": {
"channelFilter": "",
"type": "channel.message"
},
"target": {
"topic": "persistent://my-tenant/my-namespace/my-topic",
"serviceUrl": "pulsar+ssl://pulsar.example.com:6651",
"authentication": {
"authenticationMode": "token",
"token": "your-jwt-token"
},
"format": "json",
"enveloped": true
}
}'
```
#### Settings
The following settings are available when creating a Pulsar integration:
| Setting | Description |
| ------- | ----------- |
| [Source](https://ably.com/docs/platform/integrations/streaming.md?source=llms.txt#sources) | Specifies the event types being sent to Pulsar. |
| [Channel filter](https://ably.com/docs/platform/integrations/streaming.md?source=llms.txt#filter) | Filters the source channels based on a regular expression. |
| Encoding | Specifies the encoding format of messages. Either JSON or MsgPack. |
| [Enveloped](https://ably.com/docs/platform/integrations/streaming.md?source=llms.txt#enveloped) | Checkbox to set whether messages should be enveloped or not. Enveloped is the default. |
| Routing key | Specifies the [routing key](https://ably.com/docs/messages.md?source=llms.txt#routing) used to route messages to Pulsar topics. |
| Topic | Defines the Pulsar topic to publish messages to. Must be in the format `tenant/namespace/topic_name`. |
| Service URL | Specifies the Pulsar cluster URL in the format `pulsar://host:port` or `pulsar+ssl://host:port`. |
| JWT Token | JWT to use for authentication. |
| TLS trust certificates | Specify a list of trusted CA certificates to verify TLS certificates presented by Pulsar. |
## Related Topics
- [Overview](https://ably.com/docs/platform/integrations/streaming.md?source=llms.txt): Outbound streaming integrations enable you to stream data from Ably to an external service for realtime processing.
- [Kafka](https://ably.com/docs/platform/integrations/streaming/kafka.md?source=llms.txt): Send data to Kafka based on message, channel lifecycle, channel occupancy, and presence events.
- [Kinesis](https://ably.com/docs/platform/integrations/streaming/kinesis.md?source=llms.txt): Send data to Kinesis based on message, channel lifecycle, channel occupancy, and presence events.
- [AMQP](https://ably.com/docs/platform/integrations/streaming/amqp.md?source=llms.txt): Send data to AMQP based on message, channel lifecycle, channel occupancy, and presence events.
- [SQS](https://ably.com/docs/platform/integrations/streaming/sqs.md?source=llms.txt): Send data to SQS based on message, channel lifecycle, channel occupancy, and presence events.
- [DataDog](https://ably.com/docs/platform/integrations/streaming/datadog.md?source=llms.txt): Connect Ably and Datadog to monitor messages, channels, and connections in realtime, integrating your Ably statistics with your existing Datadog setup.
## Documentation Index
To discover additional Ably documentation:
1. Fetch [llms.txt](https://ably.com/llms.txt?source=llms.txt) for the canonical list of available pages.
2. Identify relevant URLs from that index.
3. Fetch target pages as needed.
Avoid using assumed or outdated documentation paths.