Prerequisites
Before setting up a Pub/Sub destination, ensure that you have:- A Google Cloud project with a Pub/Sub topic
- A service account with the
Pub/Sub Publisherrole (orpubsub.topics.publishpermission) on that topic, and a JSON key for it
Data format
Ampersand publishes each read or subscribe message to your topic as JSON. The full payload schema is defined in webhook.yaml.Create a Pub/Sub destination
Go to the Destinations page in the Ampersand Dashboard and create a new Pub/Sub destination. You’ll need to provide:Refer to the destination in your integration
After creating your Pub/Sub destination, reference it in youramp.yaml file:

