> For the complete documentation index, see [llms.txt](https://docs.uptiq.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.uptiq.ai/platform/console/agent-builder/build/webhooks.md). Agents can also search and read this documentation through its [MCP server](https://docs.uptiq.ai/~gitbook/mcp).

# Webhooks

Send an agent's results, questions and errors to your own HTTPS endpoints as signed requests.

Agent webhooks send an agent's results to your own system as signed requests. Use them to connect agent activity to downstream workflows without checking repeatedly whether a run has finished. A webhook can notify your system when an agent returns a result, asks a question, or fails.

This page is for agent builders. It covers setting up and managing webhooks in the builder. For what each request holds and how the receiving system verifies it, see [Agent Webhooks](https://docs.uptiq.ai/platform/platform-resources/agent-webhooks.md). Agent webhooks work on agents that run on executor version 1.5 and above. See [Runtime & Versioning](https://docs.uptiq.ai/platform/console/agent-builder/build/runtime-and-versioning.md).

{% hint style="info" %}
**Agent webhooks aren't run webhooks.** The webhooks you set here belong to the agent and receive every run. A webhook URL that you pass in the trigger request of a single run is set in the API call. See [Webhooks](https://docs.uptiq.ai/platform/console/agent-builder/deploy/agent-integration/agent-api.md#webhooks).
{% endhint %}

## Before you begin

You need:

* An agent configuration you can edit.
* An HTTPS endpoint from the owner of the receiving system.
* A receiving system that verifies signed messages with the agent's public key and the webhook's ID.

Plan for test traffic. Runs in the playground send webhook messages too.

For a read-only agent, **Add Webhook** is disabled. Hover over the button to see the reason.

### Endpoint requirements and limits

* Each agent supports up to 10 webhooks.
* An endpoint address must use HTTPS.
* An endpoint address must not contain a username or password.
* Private and internal addresses are accepted. The receiving service must still be reachable for delivery to succeed.
* A description is optional.

If the receiving system needs its own API key, other credentials, or a custom message format, ask the builder chat to create an API step instead of a standard webhook.

## Open webhook settings

1. Open the agent in the agent builder.
2. Select **Agent Config**.
3. Under **Agent Setup**, select **Webhooks**.
4. Open **Endpoints** to review the destinations.

The page shows Send this agent's events to your own endpoints as signed requests, and has two tabs, **Endpoints** and **Public Key**.

<figure><img src="https://1326225582-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0qmgQjJ5aArDTj2ACFHG%2Fuploads%2Fgit-blob-abf3b74503f57c099693a44402fe565a3fb3d01e%2Fqore_agent-builder_agent-config-webhooks-endpoints_rounded_shadow.png?alt=media" alt="The Webhooks page in Agent Config on the Endpoints tab. One endpoint is listed with its URL, webhook ID, status Active and created date, and its three-dot menu is open with Edit, Disable and Delete."><figcaption><p>The <strong>Endpoints</strong> tab, with a row's menu open.</p></figcaption></figure>

| Column           | What it shows                                                             |
| ---------------- | ------------------------------------------------------------------------- |
| **Endpoint URL** | The address that receives messages.                                       |
| **Webhook ID**   | The ID of this webhook. The receiving system needs it to verify messages. |
| **Description**  | An optional note about the destination. It shows **-** when you set none. |
| **Status**       | **Active** or disabled.                                                   |
| **Created**      | When the webhook was added.                                               |

An agent with no endpoints shows **No results.**

## Add a webhook

1. Open **Agent Config** > **Webhooks**.
2. Select **Add Webhook**.
3. Enter the receiving system's HTTPS address.
4. Optionally, enter a description.
5. Save the webhook.
6. Check that the destination appears in **Endpoints** and that its status is **Active**.
7. Copy the webhook's ID from **Endpoints**, and the agent's public key from **Public Key**.
8. Give both values to the owner of the receiving system, so that incoming messages can be verified.

The platform rejects an address that doesn't use HTTPS or that contains a username or password. It also rejects an addition beyond the limit of 10. Correct an invalid address and try again. If the agent has reached the limit, delete a destination you no longer need first.

## Set up message verification

Each message is signed with the agent's private key, so the receiver can check that it came from the platform and wasn't changed. The receiver needs two values: the agent's public key and the ID of the webhook that delivers to it. Each agent has one public key, and there's no option to replace it.

### Get the public key

Open **Agent Config** > **Webhooks** > **Public Key**. The tab shows the key in PEM format, with a copy button, and **Download .pem** saves it as a file. A note above the key states the signed text, the algorithm, the signature header and the timestamp rule.

<figure><img src="https://1326225582-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0qmgQjJ5aArDTj2ACFHG%2Fuploads%2Fgit-blob-5173486d7bb5b4d5a9b24a958efe79c65d73de41%2Fqore_agent-builder_agent-config-webhooks-public-key_rounded_shadow.png?alt=media" alt="The Public Key tab of Webhooks in Agent Config. A note lists the signed text, the algorithm RSA-SHA256 with PKCS#1 v1.5 padding, the signature header and the timestamp rule, above the agent&#x27;s public key in PEM format."><figcaption><p>The <strong>Public Key</strong> tab.</p></figcaption></figure>

To set up verification:

1. Get the agent's public key and the ID of the webhook for your endpoint.
2. Have the owner of the receiving system configure signature verification with both values.
3. Run the agent and check that the receiver verifies a new message before it uses the contents.

The signed text, the request headers, the verification samples, the events and the delivery rules are on [Agent Webhooks](https://docs.uptiq.ai/platform/platform-resources/agent-webhooks.md).

## Test the connection

1. Open **Agent Config** > **Webhooks** > **Endpoints**.
2. Check that the webhook is **Active**.
3. Tell the owner of the receiving system that test traffic is coming.
4. Run the agent in the playground.
5. Check the receiving system for a message with the agent's response.
6. Check that signature verification works with the agent's public key and the webhook's ID.
7. If your workflow includes questions or failures, check that the receiver handles them apart from successful runs.

{% hint style="warning" %}
Playground runs send real deliveries. Disable a webhook before testing if its receiving system must not get test messages.
{% endhint %}

## Edit a webhook

1. Open **Agent Config** > **Webhooks** > **Endpoints**.
2. Open the `⋮` menu on the webhook's row and select **Edit**.
3. Change the address or the description, and save.
4. Check that the list shows your changes.
5. If you changed the address, test the connection.

The new address must meet the [endpoint requirements](#endpoint-requirements-and-limits).

## Disable, enable or delete a webhook

Disable a webhook to stop deliveries for a while and keep its settings.

1. Open the `⋮` menu on the webhook's row.
2. Select **Disable**, and confirm.
3. Check that the status shows the webhook as disabled.

No messages are sent to a disabled endpoint. To turn it on again, select **Enable** in the same menu. **Enable** asks for no confirmation, so check that the status returns to **Active** and test the connection.

To remove a webhook, select **Delete** in the menu and confirm, then check that the destination is gone from the list. Cancel the confirmation to keep it. For a temporary stop, use **Disable**.

## Manage webhooks through builder chat

Where webhook management is available in your builder, you can ask the builder chat to add, change, pause, resume or remove a webhook.

1. Tell the builder that you want the agent's results sent to your system, and give it the HTTPS endpoint.
2. Agree when the builder asks you to confirm.
3. Check the new destination in **Agent Config** > **Webhooks**.
4. Use the public key and the webhook ID that the builder returns to set up verification at the receiver.
5. Test the connection.

Asking the builder to add an address the agent already has reuses the existing webhook instead of creating a second one. For a change, name the destination clearly and check the result in **Endpoints**. A request that needs credentials or a custom message format gets an API step instead.

## Recover an older webhook configuration

{% hint style="warning" %}
**Known issue.** An older configuration can stop delivering messages while its verification area still shows an old signing value instead of the agent's public key.
{% endhint %}

If your agent is affected:

1. Open **Agent Config** > **Webhooks**.
2. Add a new webhook with an endpoint address the agent doesn't have yet.
3. Get the agent's public key and the webhook IDs.
4. Update verification at the receiving systems.
5. Run the agent.
6. Check deliveries to the existing endpoints and to the new endpoint.

Adding the new endpoint sets up the agent's public key and restores delivery for its webhooks. Asking the builder to add an address the agent already has doesn't do this. If the agent already has 10 webhooks, get help planning the recovery instead of deleting an endpoint that your workflow still needs.

## Troubleshoot webhooks

| Problem                                                 | What to check or do                                                                                                                                                                                                                                                                                                 |
| ------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Add Webhook** is disabled                             | Hover over it for the reason. Use an agent configuration you can edit.                                                                                                                                                                                                                                              |
| The endpoint address is rejected                        | Use HTTPS, and remove any username or password from the URL.                                                                                                                                                                                                                                                        |
| Another webhook can't be added                          | Check whether the agent already has 10 webhooks. Delete an unused one if you can.                                                                                                                                                                                                                                   |
| No message arrives                                      | Check the endpoint address, the webhook's status, and whether the receiver is available. A finished run doesn't prove delivery worked. The platform retries a failed delivery, as described in [Agent Webhooks](https://docs.uptiq.ai/platform/platform-resources/agent-webhooks.md#delivery-failures-and-retries). |
| An older configuration stopped delivering               | Follow [Recover an older webhook configuration](#recover-an-older-webhook-configuration) if the verification area still shows an old signing value.                                                                                                                                                                 |
| Test messages reach a live system                       | Playground runs send deliveries too. Disable that destination while you test.                                                                                                                                                                                                                                       |
| The destination needs its own API key or message format | Use an API step set up through the builder instead of a standard webhook.                                                                                                                                                                                                                                           |

For signature, duplicate and message-content problems, see [Troubleshoot deliveries](https://docs.uptiq.ai/platform/platform-resources/agent-webhooks.md#troubleshoot-deliveries).

If delivery problems continue, give your support contact the agent, the affected destination, the webhook ID, and the time of a failed delivery.

## What's next

{% content-ref url="/pages/XYpEHFc8zye0vJFIherv" %}
[Agent Webhooks](https://docs.uptiq.ai/platform/platform-resources/agent-webhooks.md)
{% endcontent-ref %}

{% content-ref url="/pages/6GdRtv2OwNTvm0DoXDVc" %}
[Triggers](https://docs.uptiq.ai/platform/console/agent-builder/build/triggers.md)
{% endcontent-ref %}

{% content-ref url="/pages/zH9Bsg8FxRdLqitlHI8J" %}
[Runtime & Versioning](https://docs.uptiq.ai/platform/console/agent-builder/build/runtime-and-versioning.md)
{% endcontent-ref %}

{% content-ref url="/pages/FRNOzo7JXcLJUGyEW6Is" %}
[Integrate Agent](https://docs.uptiq.ai/platform/console/agent-builder/deploy/agent-integration.md)
{% endcontent-ref %}

***

{% columns %}
{% column width="83.33333333333334%" %}

<p align="right"><em>Maintained by</em> <mark style="color:green;">Abhishek Paul</mark><br><code>AI-assisted, human-approved</code></p>
{% endcolumn %}

{% column width="16.666666666666664%" %}

<div align="left"><img src="https://1326225582-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0qmgQjJ5aArDTj2ACFHG%2Fuploads%2Fgit-blob-d034645b4f8f8ee661985f5306b60ded3289653c%2Fmaintainer-abhishek-paul.png?alt=media" alt="" width="60"></div>
{% endcolumn %}
{% endcolumns %}


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.uptiq.ai/platform/console/agent-builder/build/webhooks.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
