> For the complete documentation index, see [llms.txt](https://doc.opentact.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.opentact.org/webhook-event/test-webhook-with-opentact.md).

# Test Webhook with Opentact

Inbound texts are delivered via a webhook to your server. The webhook will be an HTTP `POST` request that includes a payload with information about the inbound SMS or MMS. To receive the message, you’ll need to create a minimal web application that will accept the webhook request.

### Receive an SMS or MMS with Opentact <a href="#receive-an-sms-or-mms-with-telnyx" id="receive-an-sms-or-mms-with-telnyx"></a>

First, you’ll need to setup a Webhook interface.  For testing, you can obtain a test Webhook interface from <https://webhook.site/>

Once you go to this site, you automatically obtain a Unique URL:

![Example of how webhook.site look](/files/-MWupj-nJrYi8tue4JGk)

In your Messaging Profile, you can enter your Webhook URL as shown belows:

![Setup Webhook URL to Messaging Profile](/files/-MWuq7glcrvi4fKlolz_)

Now that your Messaging Profile is configured, you're ready to receive an SMS or MMS.

Once you receive SMS or MMS, you can click on the green box in the left side to open it and check out the content.&#x20;

![](/files/-MWuqZCpOcGTofzpKyvK)

>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://doc.opentact.org/webhook-event/test-webhook-with-opentact.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
