# FAQs

**1. How do I regenerate the secret for my webhook?**

Currently, Magna does not support regenerating the webhook secret. If you believe your secret has been compromised, contact Magna support to assist with resetting it or delete that from the dashboard and add a new one.

**2. Can I use a different hashing algorithm for signature generation?**

Magna uses HMAC SHA1 for signature generation. Ensure your implementation uses the same algorithm to maintain compatibility.

**3. What should I do if I receive duplicate webhook events?**

Webhooks may occasionally be delivered more than once. Implement idempotency in your webhook handling logic to process each event only once.

**4. How can I test my webhook integration?**

Use tools like [ngrok](https://ngrok.com/) to expose your local server to the internet and configure Magna to send test webhooks. Additionally, refer to the example integration to simulate webhook requests.

**5. What actions are currently supported by Magna Webhooks?**

As of now, only the **Order Creation** action is supported. Future updates may include additional actions such as Order Updates or Deletions.

**6. How can I ensure the security of my webhook endpoint?**

* Store your webhook secret securely and do not expose it publicly.
* Implement IP whitelisting if possible to accept requests only from Magna's IP addresses.
* Use HTTPS to encrypt data in transit.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.magna.so/magna-api-documentation/webhooks/faqs.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
