Skip to main content

Don't have an API key yet?

Sign-up to Moralis to get your free API key and start building today.

Get Your Free API Key
Version: 2.0

Setting up Streams Secret Key


Welcome to the guide on setting up the Streams secret key.

What is a Secret Key in Streams?

The Streams secret key is a unique string used to identify the sender of a webhook through webhook signature verification.

Updating the Secret Key

If you visit the Moralis settings page, you can find a default secret key under the stream settings option. However, if you are using streams for the first time, make sure to edit this key to match the API key used in your code. Once edited, click on the Save Changes button to update the key.

Setting page

You can update the secret key to be any string of your choice, but if you are using the Moralis SDK to verify the signature, we recommend using your Web3 API key that you are using in your code as the stream secret key.

To learn how to verify the Stream signature, check out the tutorial on verifying the signature for the received webhook request.