# Webhook settings and rules

This page covers everything about *Webhook*s: their settings, rules, limits, permissions, and the tasks you do in Content Studio. If you're new to *Webhook*s, start with [Webhook](/getting-started/core-concepts/deployment-and-integration/webhook.md), which explains what a *Webhook* is and the flow from creating one to checking its results.

The examples use the same online clothing store as Getting Started. The "Online Store" *Space* of the "Cozy Closet" *Organization* has the *Webhook* "New Product Translation Alert". When a new product (*Content*) is registered, this *Webhook* sends a request to `https://example.com/translate`, the address of an outside translation program. Products follow the "Product" *Content Type*, which has a Product Name *Field* (Field ID `productName`) and a Price *Field* (Field ID `price`). The product "Stainless Tumbler 500ml" costs 18,000 won. For examples that run a *Script* instead of sending to an address, the page uses the *Script* "Fill Product Description", which fills in a product's detailed description.

## Settings {#settings}

The settings for a *Webhook* are split across three sections on the "Create Webhook" screen: **Basic**, **Trigger**, and **Request**. After you create the *Webhook*, you edit them on the **Settings** tab of its detail screen. The **Settings** tab doesn't have the **Activate right after creating** checkbox. You turn a *Webhook* on and off from the status menu next to the title on its detail screen ([Turn it on or off](#turn-on-or-off)). The **Settings** tab has the same layout as the "Create Webhook" screen, except for **Activate right after creating**.

![The Create Webhook screen. Basic contains the required Name field, New Product Translation Alert (29 / 64 characters), and the selected Activate right after creating checkbox. Trigger contains Event Topics with Trigger for all events selected and Select specific triggering events, plus Filters with Add filter. Request contains the required Endpoint set to Enter URL, POST and https://example.com/translate below it, Custom HTTP headers with Add header, the unchecked Use HTTP Basic Auth option, the selected Send a request body option, and Content-Type header.](/_img/en-US/manual/deployment-and-integration/images/webhook-01-create.webp)
| Setting | Description | Default | Constraints |
|---|---|---|---|
| **Name** | A name that tells you which *Webhook* this is. It's in **Basic** | None. Required | 1 to 64 characters |
| **Activate right after creating** | A checkbox that's there only when you create a *Webhook*. When selected, the *Webhook* is turned on (*Active*) the moment it's created and reacts to the changes you set. When cleared, it's created turned off (*Inactive*) and doesn't react until you turn it on. It's in **Basic** | Selected | After creation, you turn it on and off from the status menu next to the title on the detail screen ([Turn it on or off](#turn-on-or-off)) |
| **Event Topics** | The changes to react to. Choose either **Trigger for all events** or **Select specific triggering events**. It's in **Trigger** | **Trigger for all events** | The changes you can choose are listed in [The changes that send a request differ by item](#events) |
| **Filters** | Conditions that screen the item where the change happened, so the *Webhook* reacts only when they match. Add them one row at a time with the **Add filter** button. It's in **Trigger** | None. It reacts every time a chosen change happens | The conditions you can set are in [Narrowing the scope with conditions](#filters) |
| **Endpoint** | What to do when it reacts. Choose **Enter URL** to send a request to an address, or choose a *Script* from the list to run that *Script*. It's in **Request** | **Enter URL** | You set only one of the two: an address or a *Script* ([When it runs a Script instead of a URL](#script-target)) |
| **URL** | The method and address for sending the request. Fill it in when **Endpoint** is **Enter URL**. You can also put placeholders in the address to send to a different address for each item | The method is POST | The rules are in [Addresses you can send to](#url-rules) |
| **Run as** | Decides whose name is recorded on the items a *Script* creates or edits. It appears when you choose a *Script* in **Endpoint** | **Webhook creator** | For details, see [Run as only sets the name on the record](#run-as) |
| **Custom HTTP headers** | Name and value pairs sent along with the request. Add them one row at a time with the **Add header** button in **Request**, and choose a type for each row: **Secret** or **Custom** | None | The rules are in [Headers and basic authentication](#headers-and-basic-auth) |
| **Use HTTP Basic Auth** | Used when the receiving side checks requests with a username and password. It is in **Request**. Selecting it displays the **Username** and **Password** fields. It appears only when **Endpoint** is **Enter URL** | Not selected | The rules are in [HTTP Basic Auth](#http-basic-auth) |
| **Content-Type header** | Sets the format for sending the request body. It appears below **Send a request body** when that option is selected | **application/vnd.com.weegloo.v1+json** | For details, see [What the request carries](#what-the-request-carries) |
| **Send a request body** | When selected, the request is sent with a body. It's in **Request** | Selected | If the method is GET, no body is sent even when it's selected |
| **Payload** | What goes in the body. Choose either **Use default payload** or **Customize the Webhook payload** | **Use default payload** | To set the shape to send yourself, write it in the **JSON Editor** ([Writing the shape to send, and placeholders](#payload-and-placeholders)) |

The **Content-Type header** has a similar name to the *Content Type* data template. This field sets the format of the request body and has nothing to do with data templates.

## Rules {#rules}

### The changes that send a request differ by item {#events}

A *Webhook* reacts to changes to the *Content*, *Media*, *Content Type*s, and *Comment*s in this *Space*. The changes that can happen to each kind of item are below. For how actions like publishing and archiving change an item's status, see [How each action changes the status](/manual/common/states-and-versions.md#status-changes-by-action).

| Change | When it happens | *Content* | *Media* | *Content Type* | *Comment* |
|---|---|---|---|---|---|
| Create | When it's created | Yes | Yes | Yes | Yes |
| Save | When it's edited and saved | Yes | Yes | Yes | Yes |
| Delete | When it's deleted | Yes | Yes | Yes | Yes |
| Publish | When it's published | Yes | Yes | Yes | No |
| Unpublish | When it's unpublished | Yes | Yes | Yes | No |
| Archive | When it's archived | Yes | Yes | No | No |
| Unarchive | When it's unarchived | Yes | Yes | No | No |

If you choose **Trigger for all events**, the *Webhook* reacts to every change in the table above, including changes to *Comment*s. To choose only the changes you need, choose **Select specific triggering events**. You can choose several changes for one *Webhook*, and it reacts when any one of them happens.

Sometimes a single action causes two changes at once. A *Webhook* that has both changes chosen sends two requests.

- A *Content Type* is published as soon as you create it, or edit and save it. So Publish follows Create or Save ([A Content Type is published as soon as you save it](/manual/common/states-and-versions.md#content-type-publishes-on-save)).
- *Media* publishes itself once file processing finishes after you upload it, or edit and save it. So a separate Publish happens after Create or Save ([Media publishes itself once processing finishes](/manual/common/states-and-versions.md#media-publishes-itself)).
- When a signed-up member (*ServiceUser*) creates or edits *Content* in your service, Publish follows Create or Save. When a member deletes their own *Content*, Unpublish and Delete happen in that order ([Publishing Content created by signed-up members](/manual/common/states-and-versions.md#content-from-service-users)).

The conditions you can set for changes to *Comment*s are in [Narrowing the scope with conditions](#filters). For the rule that no request is sent for replies and *Comment*s deleted along with their original *Comment* or item, see [Comment alerts and Webhooks](/manual/collaboration/comment.md#notifications-and-webhooks). Changes made by a *Script* are explained in [By default, Webhooks don't react to changes made by Scripts](#changes-made-by-scripts), and changes that the program receiving the request saves back are explained in [It reacts again to changes the receiving program saves](#changes-made-by-the-receiver).

### Narrowing the scope with conditions {#filters}

**Filters** screen the item where the change happened, so the *Webhook* reacts only when the conditions match. Each filter row is made up of what to base it on (**Select Field**), how to compare (**Select operator**), and what to compare with (the value). How you enter the value depends on what the row is based on. For a *Content Type*, choose from the **Select Content Type** list, and for a person, choose from the **Select a user** list. For comparisons that take several values, enter the values one at a time and press Enter after each.

You can base a filter on four things.

| Based on | On screen | What it compares | Changes it applies to |
|---|---|---|---|
| Item | **Entity ID (sys.id)** | The ID of the item where the change happened (a unique name given to each item) | Changes to every kind of item |
| *Content Type* | **Content Type ID (sys.contentType.sys.id)** | The template the *Content* follows | Changes to *Content* |
| Creator | **User ID, created by (sys.createdBy.sys.id)** | The person who first created the item | Changes to every kind of item |
| Last editor | **User ID, updated by (sys.updatedBy.sys.id)** | The person who last edited the item | Changes to every kind of item |

For changes to *Comment*s, the item is the *Comment* itself. So a *Webhook* that reacts to *Comment*s can't be narrowed to the *Content* or *Media* the *Comment* is on, or to a *Content Type*. It can be narrowed only by the *Comment* ID and by who wrote or edited the *Comment*.

There are six ways to compare.

| Comparison | On screen | Reacts when |
|---|---|---|
| Equal | **Equals** | It's the same as the value you entered |
| Not equal | **Not Equals** | It's different from the value you entered |
| One of a list | **In** | It's the same as one of the values you entered |
| Not in a list | **Not In** | It isn't the same as any of the values you entered |
| Matches a pattern | **Regexp** | It matches the pattern you entered (a regular expression: a pattern, written in symbols, that describes how text is put together) |
| Doesn't match a pattern | **Not Regexp** | It doesn't match the pattern you entered |

- If you set several filter rows, the *Webhook* reacts only when all of them are met. With no filters, it reacts every time a chosen change happens.
- A value can be up to 255 characters. For comparisons that take several values, each value can be up to 255 characters.
- You can't set the exact same row twice.
- A pattern must be a valid regular expression to be saved. The pattern has to match the whole value, not only part of it. For example, to react only to items whose ID starts with `3trm`, write `3trm.*`, not `3trm`.
- A row based on something that doesn't apply to the changed item is left out of the check. A *Content Type* row applies only to changes to *Content*. For changes to *Media*, *Content Type*s, and *Comment*s, the check runs as if that row weren't there. For example, if you set a "Product" *Content Type* condition and choose both *Content* Create and *Media* Create, the *Webhook* reacts not only when you register a product but also every time you upload a photo.
- To narrow changes to *Content Type*s themselves down to "Product" alone, enter the ID of the "Product" *Content Type* in a row based on the item.

### Addresses you can send to {#url-rules}

When **Endpoint** is **Enter URL**, you set the method and address for the request in the **URL** field.

- For the method (the kind of request, which tells the receiving side what you're asking it to do), choose one of **GET**, **POST**, **PUT**, **PATCH**, and **DELETE** from the dropdown in front of the **URL** field. The default is POST. A request sent with GET carries no body.
- The address must start with `http://` or `https://`.
- Private network addresses used only inside a company or home (for example, addresses starting with `10.` or `192.168.`) and addresses that point back to the computer itself (`localhost`, `127.0.0.1`) aren't saved. Addresses whose domain can't be found aren't saved either. That's because, when you save, WEEGLOO checks where the address actually points.
- You can put placeholders in the address too. For example, if you write `https://example.com/products/{ /payload/sys/id }/translate`, then when the tumbler product is registered, the request goes to `https://example.com/products/3trmXRM3RqbgSnifyg7OGhwhlqvAvq/translate`, with that product's ID filled in. Placeholders can go only in the path after the domain or in the values after `?`. An address with a placeholder in the domain part isn't saved. The rules for how placeholders are replaced are in [Writing the shape to send, and placeholders](#payload-and-placeholders).
- Even if the receiving side responds by redirecting to another address, the *Webhook* doesn't follow the redirect ([What counts as success and failure](#success-and-failure)).

### What the request carries {#what-the-request-carries}

If you choose **Use default payload** under **Payload**, the request body carries all the information about the item that changed. When the product "Stainless Tumbler 500ml" is registered, the body looks like this. In reality, it carries more information, such as who created the item and when. Below is only part of it.

```json
{
  "sys": {
    "id": "3trmXRM3RqbgSnifyg7OGhwhlqvAvq",
    "type": "Content",
    "contentType": {
      "sys": { "id": "3trmXRM3RqbgSnifyg7P1we790fAY4", "type": "Refer", "targetType": "ContentType" }
    },
    "updatedAt": "2026-11-05T01:10:49.387Z",
    "version": 1
  },
  "fields": {
    "productName": { "ko-KR": "스테인리스 텀블러 500ml" },
    "price": { "ko-KR": 18000 }
  }
}
```

- `sys` holds system information, such as the item's ID (`id`), kind (`type`), the template it follows (`contentType`), when it was last edited (`updatedAt`), and its version number (`version`).
- `fields` holds the *Field* values, split by Field ID and, within each, by language code. In a *Space* that uses several *Locale*s, the values for every language are included.
- In bodies sent for Unpublish, Unarchive, and Delete, `Deleted` is added to the front of the `type` value in `sys` (for example, `DeletedContent`).

Besides the headers you add yourself, requests sent to an address also carry the two headers below.

| Header | Value it carries |
|---|---|
| `X-Weegloo-Topic` | The change that sent the request. For a product being registered, it's `ContentManagement.Content.Create` |
| `X-Weegloo-Webhook-Name` | That *Webhook*'s **Name** |

You choose the body's format in **Content-Type header**.

- If you choose a JSON format, like the default **application/vnd.com.weegloo.v1+json**, the body is sent as JSON (a text format widely used for programs to exchange data, which writes name and value pairs inside curly brackets).
- If you choose the form format (`application/x-www-form-urlencoded`), the body is sent as `name=value` pairs joined with `&`. Nested values are flattened by joining their names with square brackets, as in `product[sku]`. For the exact notation, see the [API reference](/api/reference/cma/webhook.md#transformation-body-serialization).
- The **Content-Type header** dropdown offers three formats: **Application/vnd.com.weegloo.v1+json**, **Application/json**, and **Application/x-www-form-urlencoded**.
- When a body is sent, the format chosen in **Content-Type header** is used instead of any Content-Type you add as a header. The screen also says "Any custom Content-Type header will be ignored".
- If **Send a request body** isn't selected, the request is sent with no body. No body is sent when the method is GET either. In those cases, the **Content-Type header** and **Payload** settings aren't used, and you can't edit those fields on the screen.

Requests a *Webhook* sends don't come with a separate signature proving where they came from. To let the receiving side confirm that a request came from your *Webhook*, send a value agreed on with the receiving side in advance, in a **Secret** header or with **HTTP Basic Auth** ([Headers and basic authentication](#headers-and-basic-auth)).

### Writing the shape to send, and placeholders {#payload-and-placeholders}

If the receiving program has set a format, as in "I'll accept requests only in this shape", choose **Customize the Webhook payload** under **Payload** and write the shape to send in the **JSON Editor**. Write the shape to send as a JSON object wrapped in curly brackets (`{ }`). A value that is not an object cannot be saved. At the top right of the **JSON Editor**, the number of characters entered so far appears along with the number allowed (for example, 0 / 500).

![The lower part of Request on the Create Webhook screen. Below POST and https://example.com/translate, Custom HTTP headers contains Add header and a row with type Custom, empty Key and Value fields, and a trash icon. Use HTTP Basic Auth is unchecked and Send a request body is selected. Content-Type header is application/vnd.com.weegloo.v1+json. Payload offers Use default payload and Customize the Webhook payload, with the latter selected. A note explains the custom JSON payload and curly-braced JSON pointers for values from the original payload. The empty JSON Editor shows 0 / 500 characters.](/_img/en-US/manual/deployment-and-integration/images/webhook-03-advanced.webp)
In the shape to send, write a placeholder wherever an item's value should go. A placeholder is notation that marks "put the value of the item that changed here". It takes the form `{ /payload/경로 }`. `payload` refers to the whole [default payload](#what-the-request-carries). After it, write the names along the way to the value you want, in order, joined with `/`.

| Placeholder | Value it points to |
|---|---|
| `{ /payload/sys/id }` | The item's ID |
| `{ /payload/sys/contentType/sys/id }` | The ID of the *Content Type* the *Content* follows |
| `{ /payload/fields/productName/ko-KR }` | The Korean value of the Product Name *Field*. After `fields/`, write the Field ID and then the language code |

Say the incoming data is the [default payload](#what-the-request-carries) above, and you write the following in the **JSON Editor**.

```json
{
  "id": "{ /payload/sys/id }",
  "text": "{ /payload/fields/productName/ko-KR }",
  "price": "{ /payload/fields/price/ko-KR }",
  "message": "새 상품 등록: { /payload/fields/productName/ko-KR }"
}
```

When the tumbler product is registered, the placeholders are replaced with real values, and the receiving side gets the following body.

```json
{
  "id": "3trmXRM3RqbgSnifyg7OGhwhlqvAvq",
  "text": "스테인리스 텀블러 500ml",
  "price": 18000,
  "message": "새 상품 등록: 스테인리스 텀블러 500ml"
}
```

Placeholders are replaced with real values according to these rules.

- If a field's entire value is a single placeholder, the value it points to goes in with its original shape. Numbers go in as numbers, and lists as lists. That's why `price` above was sent as `18000`, not `"18000"`.
- If you write a placeholder together with other text, the value it points to is turned into text and goes in that spot (`message` above).
- If there's no value at the path, a field whose entire value is a single placeholder gets `null`. A placeholder written together with other text is left empty.
- Paths are case-sensitive. Write the Field ID (`productName`), not the *Field* name ("Product Name"), and write the language code exactly too.
- You can use placeholders in header values too. For example, if you set the value of the header `X-Product-Id` to `{ /payload/sys/id }`, that header carries the product's ID.
- You can also use placeholders in the address in the **URL** field. A placeholder in an address counts as written together with other text, so the value it points to goes in as text. If there's no value, the request goes to the address with that spot left empty. There's an example in [Addresses you can send to](#url-rules).
- Values that go into an address are converted into characters allowed in addresses (percent-encoding). A space becomes `%20`, `/` becomes `%2F`, and `&` becomes `%26`, and characters other than English letters are converted the same way (for example, `텀` becomes `%ED%85%80`). So the characters in a value aren't read as symbols that divide the address, and they're delivered as part of the value.
- The parts you type directly in the **URL** field are sent exactly as typed. So a part you've already converted, such as `%2B`, isn't converted again. If a part you type needs a space or characters other than English letters, convert them yourself beforehand.
- The shape to send applies the same way to a *Webhook* that runs a *Script* ([When it runs a Script instead of a URL](#script-target)).

### Headers and basic authentication {#headers-and-basic-auth}

Click the **Add header** button in **Custom HTTP headers** to add a row for a header that's sent along with the request. A header is a name and value pair. The receiving program uses a secret value in a header to check that the request came from the right sender, or uses a value in a header to tell what kind of request it is. For each row, choose a type from the dropdown at the front. Basic authentication, which checks a username and password, isn't set in a header row but in **Use HTTP Basic Auth** ([HTTP Basic Auth](#http-basic-auth)).

![The expanded type dropdown of a header row. It contains Secret and Custom, with Custom selected. The Key and Value fields are next to it.](/_img/en-US/manual/deployment-and-integration/images/webhook-04-header-type.webp)

| Type | What you enter | Value kept in call records |
|---|---|---|
| **Custom** | The header name (**Key**) and **Value** | The value as you entered it |
| **Secret** | The header name (**Key**) and **Value** | The value hidden as `**********` |

#### Header names and values {#header-names-and-values}

- A name can use only English letters, numbers, and a few symbols such as `-`, `_`, and `.`. If you type a character that isn't allowed, a message below the field tells you which symbols you can use. Spaces and colons (`:`) aren't allowed. A name is 1 to 255 characters.
- You can't use the same name on two rows, even if only the capitalization differs. `X-Translate-Key` and `x-translate-key` count as the same name.
- A value is 1 to 4,096 characters and can't be left empty. You can use placeholders in values.
- You can add up to 30 **Secret** and **Custom** headers combined.

#### Who can see Secret values {#who-can-see-secret-values}

- Values set as **Secret** are kept in the **Call Log** hidden as `**********`. You can't see the original value in the call records.
- However, anyone who can read the *Webhook*'s settings, that is, anyone with the **Manage Webhooks** permission, can see the original value. On the **Settings** tab, the value field of a **Secret** header is filled in with the stored value, hidden as dots, and clicking the eye icon on the right of the field reveals the original value. Reading this *Webhook* from a program or through your connected AI tool also returns the original value. So allow **Manage Webhooks** only to members who may know those secret values ([Required permissions](#permissions)).
- A **Secret** value you've already saved is kept even if you save again without re-entering it. The stored value is looked up by the header name, so if you change the name, you need to enter the value again. When you change the name, the message "The saved value can't be used after changing the header key. Please enter the value again." appears.

#### HTTP Basic Auth {#http-basic-auth}

Select **Use HTTP Basic Auth** to show the **Username** and **Password** fields. The username and password you enter are used to build a basic authentication header (`Authorization`), which is sent with the request.

- A *Webhook* can have only one basic authentication setting. While you're using basic authentication, you can't also have a header row named `Authorization`. If you add such a row, a message asks you to remove one of the two.
- The username and password can each be up to 32 characters. The username can't contain a colon (`:`). When you set it up, you must enter both a username and a password. You can't have a password without a username.
- In call records, the value of the basic authentication header is kept hidden as `**********`.
- A saved password can't be read back. Even when you read the *Webhook* from a program, the password isn't included.
- On the **Settings** tab, the **Password** field shows "Using the saved password" instead of the stored password. If you save without touching it, the stored password is kept. To change it, click **Change** next to the field and enter a new password. Click **Cancel** to go back to the stored password.

**Use HTTP Basic Auth** appears only when **Endpoint** is **Enter URL**. In a *Webhook* that runs a *Script*, **Secret** and **Custom** headers are passed to the *Script*, and basic authentication isn't used ([When it runs a Script instead of a URL](#script-target)).

### When it runs a Script instead of a URL {#script-target}

When you choose a *Script* from the **Endpoint** list, the *Webhook* runs that *Script* in this *Space* instead of sending a request to an address. You can set only one of the two, an address or a *Script*, and only one *Script*.

When you choose a *Script*, **Open this Script** appears below **Endpoint**, and the **URL** field is not displayed. **Run as** appears as well ([Run as only sets the name on the record](#run-as)). The **Endpoint** list displays only the *Script*s for which Read is allowed on the **Script** tab of your role.

![Request on the Create Webhook screen. The required Endpoint is set to POST Fill Product Description, with Open this Script below it. There is no address field. Run as offers Webhook creator, selected, and Triggering user, with Learn more. Below are Custom HTTP headers with Add header, the selected Send a request body option, Content-Type header set to application/vnd.com.weegloo.v1+json, and Payload with Use default payload selected and Customize the Webhook payload.](/_img/en-US/manual/deployment-and-integration/images/webhook-05-script.webp)

Here's which of a *Webhook*'s settings are used when it runs a *Script*.

| *Webhook* setting | When running a *Script* |
|---|---|
| **Payload** | Used. The default payload, or the shape to send you wrote yourself, is passed to the *Script*, which reads it as `{ /payload/… }` |
| **Send a request body** | If it isn't selected, no value is passed to the *Script* |
| **Secret** and **Custom** headers | Used. The *Script* reads their values as `{ /headers/이름 }`, with the header name in lowercase |
| **HTTP Basic Auth** | Not used. This section doesn't appear when you choose a *Script* |
| The method and **Content-Type header** | Not used |

- If the *Script* has a **Payload Schema** that sets the format of the values it accepts, the values the *Webhook* passes must match that format too. If they don't, the *Script* doesn't run, and a failure is recorded. If **Send a request body** isn't selected, an empty value is checked, so it won't match a format that requires certain values.
- If the *Script* doesn't finish within the run time it's given, the run stops and a failure is recorded. For how much time it's given, see [Time allowed for a single run](/manual/deployment-and-integration/script.md#execution-time).
- Each time a *Webhook* runs a *Script*, one of your plan's *Script* runs is used ([Limits](#limits)).
- When a *Webhook* runs a *Script*, nobody's Execute on that *Script* is checked. Whose permissions the work inside a *Script* runs with is laid out in [Script run permission and delegation](/manual/access-and-permissions/role-and-permissions.md#script-execution-and-delegation).
- A *Webhook* runs the *Script* even if the *Script*'s **Who can run it from the call URL** is set to **None**. If a *Script* should react only to the changes you set, set **Who can run it from the call URL** to **None** ([Run it only from a Webhook or Scheduler](/manual/deployment-and-integration/script.md#run-only-from-webhook-or-scheduler)).
- The result is recorded in both the *Webhook*'s **Call Log** and the *Script*'s **Execution Log**. In the *Script*'s **Execution Log**, the **Trigger** column tells you whether a record is from a run by a *Webhook*. The **Trigger** field identifies the source of the run with "Direct call", "Webhook", or "Scheduler". For a direct call, it shows the caller; for a *Webhook* or *Scheduler*, it shows its name.
- A *Script* that a *Webhook* is using can't be deleted. When you delete a *Webhook*, the execution logs of the *Script* runs it started are deleted too ([Deleting items such as Locale, Tag, and Script](/manual/common/deletion.md#deleting-other-items)).

### Run as only sets the name on the record {#run-as}

**Run as** decides whose name is recorded on the items a *Script* creates or edits. It appears only when you've chosen a *Script*, and *Webhook*s that send requests to an address don't use it.

| Option | Name recorded on items the *Script* creates or edits |
|---|---|
| **Webhook creator** (default) | The person who created this *Webhook* |
| **Triggering user** | The person who caused the change |

- This setting doesn't widen or narrow what the *Script* can do. The screen also notes that it "is not a permission boundary". What the *Script* can do is decided when the *Script* is saved ([Script run permission and delegation](/manual/access-and-permissions/role-and-permissions.md#script-execution-and-delegation)).
- **Triggering user** works only with changes to *Content* and *Media*. If the *Webhook* is set off by a change to a *Content Type* or a *Comment*, it doesn't run the *Script* and records a failure.

### By default, Webhooks don't react to changes made by Scripts {#changes-made-by-scripts}

Even when a *Script* creates, edits, or publishes *Content* or *Media*, by default *Webhook*s don't react to that change. So when a *Script* that fills in the detailed description on product registration edits that product, the edit doesn't make the *Webhook* run again.

*Webhook*s react only when a step in the *Script*'s definition that works with *Content* or *Media* is set to announce its changes. For how to set this, see the [API reference](/api/reference/script/statements.md#resource-writes). A chain where a *Webhook* reacts to a change made by a *Script*, and the *Script* that *Webhook* runs makes another change, can continue up to three times. *Webhook*s don't react to the change after that.

### It reacts again to changes the receiving program saves {#changes-made-by-the-receiver}

Sometimes the program that receives a request at its address saves its results back to the same item. For example, the translation program receives the tumbler product, fills in the English product name, and saves the product. A change an outside program saves like this triggers *Webhook*s exactly like a change saved in Content Studio. Unlike [changes made by a Script](#changes-made-by-scripts), these changes aren't limited to three in a row.

"New Product Translation Alert" reacts only when a product is newly registered (Create), so it doesn't send another request when the translation program saves the product. But if you've also set it to react when a product is edited and saved (Save), or you've chosen **Trigger for all events**, it sends another request to the same address every time the translation program saves the product. If the translation program saves again every time it receives a request, requests and saves repeat endlessly. If the translation program also publishes after saving, the same thing happens with *Webhook*s that react to publishing (Publish).

Prevent this loop in one of the following ways.

- Build the receiving program so it doesn't save an item again once it has handled it. For example, it doesn't save a product whose English product name is already filled in.
- Remove the changes the receiving program causes (Save, Publish) from the changes the *Webhook* reacts to ([The changes that send a request differ by item](#events)).
- Let a *Script* in this *Space* call the outside program and save the result. By default, *Webhook*s don't react to changes made by a *Script* ([When it runs a Script instead of a URL](#script-target)).

### Requests are sent separately, after the change is done {#when-requests-are-sent}

- A *Webhook* sends its request after the change is saved. Even if the receiving side fails or doesn't respond, the original change, such as registering a product, still completes. You can't use a *Webhook* to block or undo the original change.
- If several *Webhook*s react to the same change, each one sends its own request.
- The order in which requests arrive isn't fixed. Requests for changes that happened one after another can arrive in a different order from the one they happened in. If order matters, have the receiving side work out the order from the body's `updatedAt` (when the item was last edited) or `version` (the version number).
- No requests are sent, and no call records are kept, for changes that happen while the *Webhook* is turned off (*Inactive*). Turning it back on doesn't send requests for the changes made while it was off.
- When you edit the settings, the new settings apply to requests sent after you save.
- On the Free, Basic, and Pro plans, once the *Organization*'s external call transfer volume for this month is used up, *Webhook*s that send requests to an address stop. No call records are kept then either. *Webhook*s that run a *Script* don't stop and keep running the *Script*. But the outside service calls and email sending inside that *Script* stop ([All Spaces in an Organization share the run count](/manual/deployment-and-integration/script.md#execution-count)). Once the *Script* run count is used up, *Webhook*s that run a *Script* record a failure without running it. For when the limits lift again, see [When you exceed transfer volume or storage space](/pricing/pricing.md#over-usage).

### What counts as success and failure {#success-and-failure}

A *Webhook* that sends to an address decides success or failure by the response code the receiving side returns (a result number that tells how the receiving side handled the request).

| Receiving side's response | Result |
|---|---|
| A response in the 200s | Success |
| A response in the 300s (a response that redirects to another address) | Success. The *Webhook* doesn't follow the redirect |
| A response in the 400s or 500s | Failure |
| Couldn't connect, or no response within 15 seconds | Failure |
| A response that's too large | Failure. The request has already reached the receiving side by then. <!-- TODO: 확인 필요: 응답 크기의 기준. 오류 문구는 1 MiB인데 실제로 읽는 한도가 그보다 작을 수 있음 --> |

A *Webhook* that runs a *Script* succeeds when the *Script* finishes without errors. It fails if the *Script* ends with a response code of 400 or higher or with an error, is stopped for going over its time, or doesn't run for one of the reasons covered in [When it runs a Script instead of a URL](#script-target).

- Failed requests aren't sent again. A change whose request failed stays undelivered to the receiving side, so the receiving side has to check for it separately. For the steps to find the cause and respond, see [Monitoring external integrations](/operations/service/monitoring-webhooks.md#responding-to-a-failure).
- The **Successful Calls(%)** column in the *Webhook* list shows the share of successful calls among all calls since the *Webhook* was created. This percentage stays the same even after call records are deleted. If there have been no calls yet, a dash appears instead of a number.

![The Webhook list. It shows Total 1, and the columns are Name, URL, Status, and Successful Calls(%), with the name of the rightmost column cut off. The New Product Translation Alert row shows POST https://example.com/translate and Active, and the Successful Calls(%) column shows a dash because there are no calls yet](/_img/en-US/manual/deployment-and-integration/images/webhook-02-list.webp)

### Call records are kept for 1 hour on success and 3 days on failure {#call-records}

Every time a *Webhook* sends a request or tries to run a *Script*, one record is added to the **Call Log** tab on that *Webhook*'s detail screen.

- Records of successful calls are deleted automatically after 1 hour, and records of failed calls after 3 days. Successful records disappear first, so the list can look as if it holds only failures. Keep anything you need for a long time separately, on the receiving side.
- Requests that weren't sent because the *Webhook* was *Inactive* or the external call transfer volume was used up aren't recorded.
- The values of **Secret** headers and of the header built from **HTTP Basic Auth** are kept hidden as `**********`.
- Long bodies are shortened in the records. The cutoff is 65,536 characters for a sent request and 8,192 characters for a received response. If the body is JSON, the middle part of each long value is shortened, rather than the body as a whole. The receiving side gets the full, unshortened body.
- A record of a *Script* run keeps the values passed to the *Script* and the values the *Script* returned (or what went wrong, if it failed), instead of a destination address.
- Deleting a *Webhook* also deletes its call records.

The steps for viewing the records are in [View call records](#view-call-records).

## Limits {#limits}

| Item | Limit |
|---|---|
| Length of **Name** | 1 to 64 characters |
| Length of one filter value | 255 characters |
| Number of headers | 30, **Secret** and **Custom** combined |
| Length of a header name (**Key**) | 1 to 255 characters |
| Length of a header **Value** | 1 to 4,096 characters |
| **HTTP Basic Auth** | One per *Webhook*. The username and password can each be up to 32 characters |
| Size of a shape to send that you write yourself | 1 MiB. In Content Studio, the **JSON Editor** shows the number of characters you can enter as 500 |
| Time to wait for the receiving side's response | 15 seconds |
| How long call records are kept | 1 hour on success, 3 days on failure |
| Length of the body kept in call records | 65,536 characters for a sent request, 8,192 characters for a received response |
| Reactions chained from changes made by *Script*s | Three times |
| Number of *Webhook*s | Varies by plan. Check the "Webhook" row in [Pricing](/pricing/pricing.md#plan-comparison) |
| External call transfer volume | Varies by plan. Check the "External calls" row in the same table. It's shared with *Script*s' outside service calls and email sending |
| *Script* run count | Varies by plan. Check the "Script executions" row in the same table. Each time a *Webhook* that runs a *Script* runs it, one run is counted |

<!-- TODO(숨긴 표 행): | 받는 쪽 응답의 크기 | [TODO: 확인 필요: 오류 문구는 1 MiB인데 실제로 읽는 한도가 그보다 작을 수 있음] | -->

Plan limits apply per *Organization* and are shared by every *Space* in that *Organization*. For what happens when you go over a limit and how it lifts again, see [What happens when you go over a limit](/pricing/pricing.md#over-limit). You can see how much you've used so far in [Keeping an eye on usage and limits](/operations/workspace/watching-usage.md).

## Required permissions {#permissions}

| What you want to do | Required permission |
|---|---|
| View the *Webhook* list and settings, create, edit, turn on or off, and delete | **Manage Webhooks** in the role (*SpaceRole*) you have in that *Space* |
| View call records | **Manage Webhooks** |
| Set a *Script* as the **Endpoint** | **Manage Webhooks**, and Read on that *Script* (*Script*s without Read do not appear in the **Endpoint** list) |
| Have a *Webhook* run a *Script* | No permission is checked ([Script run permission and delegation](/manual/access-and-permissions/role-and-permissions.md#script-execution-and-delegation)) |
| Cause a change that a *Webhook* reacts to | You only need permission to make that change. No permission on the *Webhook* is needed |

- You turn on **Manage Webhooks** on the **Settings** tab of the role screen. You need this item even to only view the *Webhook* list and settings ([Settings permissions on the Settings tab](/manual/access-and-permissions/role-and-permissions.md#permission-tab)).
- **Manage Webhooks** takes effect only when members work with their own accounts. You can't work with *Webhook*s using a *Space Access Token* ([Settings permissions work only for people](/manual/access-and-permissions/role-and-permissions.md#settings-are-for-people)).
- Anyone with **Manage Webhooks** can make this *Space*'s *Script*s run in response to changes. They can also read the original values of **Secret** headers. Allow this permission only to members who really need it.

## Tasks in Content Studio {#tasks}

The first task, [Create a Webhook](#create-a-webhook), gives the basic steps for creating the clothing store's first *Webhook*, "New Product Translation Alert". After it come the steps for changing that *Webhook*'s scope and the shape it sends, turning it on and off, and deleting it, along with the steps for creating a *Webhook* that runs a *Script*. You open the *Webhook* screen from **Webhooks** in the left menu. To find where this menu is, see [Where the other settings in a Space are](/manual/access-and-permissions/space.md#settings-map).

### Create a Webhook {#create-a-webhook}

These are the steps for creating the *Webhook* "New Product Translation Alert" in the "Online Store" *Space*. Say the translation program that will receive the requests is at `https://example.com/translate`.

1. In the left menu, click **Webhooks**.
2. Click the **Create** button at the top right of the list. The "Create Webhook" screen opens.
3. Enter `New Product Translation Alert` in the **Name** field.
4. Make sure **Activate right after creating** is selected.
5. Leave **Event Topics** at its default, **Trigger for all events**.
6. Leave **Endpoint** set to **Enter URL**.
7. Enter `https://example.com/translate` in the **URL** field. Leave the method at its default, POST.
8. Click the **Create** button at the top right of the screen.

> The rules for the addresses you can enter in the **URL** field are in [Addresses you can send to](#url-rules).

The screenshot in [Settings](#settings) shows the "Create Webhook" screen with this name and address entered.

When you click **Create**, the detail screen of "New Product Translation Alert" opens. Click **Webhooks** in the left menu to open the list. If "New Product Translation Alert" shows as *Active*, the *Webhook* has been created. You can see what the list looks like at this point in [What counts as success and failure](#success-and-failure).

This *Webhook* sends requests not only when you register a product but also when you upload a photo or leave a *Comment*, because you created it with **Trigger for all events**. The steps for narrowing it to send requests only when a product is registered are in [Send requests only when a "Product" is registered](#send-only-for-new-products).

Once it's created, try registering a new product in the clothing store ([Creating and publishing Content](/getting-started/core-concepts/content/content-authoring.md)). When you register a product, the *Webhook* sends a request to `https://example.com/translate`. You can check whether the request got through, and how the translation program responded, on that *Webhook*'s **Call Log** tab ([View call records](#view-call-records)).

> The steps for pausing it, changing its address, or deleting it are in [Turn it on or off](#turn-on-or-off), [Edit the settings](#edit-a-webhook), and [Delete a Webhook](#delete-a-webhook). For who can create and manage *Webhook*s, see [Required permissions](#permissions).

### Send requests only when a "Product" is registered {#send-only-for-new-products}

If you created "New Product Translation Alert" with the default, **Trigger for all events**, it sends requests not only when you register a product but also when you upload a photo or leave a *Comment*. These are the steps for narrowing it to send requests only when new *Content* made with the "Product" *Content Type* is registered.

1. In the left menu, click **Webhooks**.
2. In the list, click "New Product Translation Alert". That *Webhook*'s detail screen opens.
3. Click the **Settings** tab.
4. Under **Event Topics**, choose **Select specific triggering events**.
5. In the table that appears, select only the box where the **Content** row meets the **Create** column. The table's rows are **Content Type**, **Content**, **Media**, and **Comment**, and its columns are **Create**, **Save**, **Archive**, **Unarchive**, **Publish**, **Unpublish**, and **Delete**. You can't select boxes for changes that don't happen to that kind of item.
6. Under **Filters**, click the **Add filter** button.
7. In the **Select Field** box of the new row, select **Content Type ID (sys.contentType.sys.id)**.
8. In the **Select operator** box, select **Equals**.
9. In the **Select Content Type** list in the value box, select "Product".
10. Click the **Save** button at the top right of the screen.

![Event Topics on the Settings tab of New Product Translation Alert. Selecting Select specific triggering events displays the Contents Event table. Columns are Create, Save, Archive, Unarchive, Publish, Unpublish, and Delete; rows are Select all, Content Type, Content, Media, and Comment. Each row and column has a select-all checkbox. Only Create in the Content row is selected. Unavailable changes, Archive and Unarchive for Content Type and Archive through Unpublish for Comment, are gray and disabled.](/_img/en-US/manual/deployment-and-integration/images/webhook-06-topics.webp)

![The expanded Select Field dropdown in a row added with Add filter. It lists Content Type ID (sys.contentType.sys.id), Entity ID (sys.id), User ID, created by (sys.createdBy.sys.id), and User ID, updated by (sys.updatedBy.sys.id). Equals is selected by default in the comparison field.](/_img/en-US/manual/deployment-and-integration/images/webhook-08-filter-field-options.webp)

![The comparison dropdown after selecting Content Type ID. It contains Equals, selected, Not Equals, In, Not In, Regexp, and Not Regexp. The value field now shows Select Content Type.](/_img/en-US/manual/deployment-and-integration/images/webhook-09-filter-operator-options.webp)

![The completed filter row with Content Type ID (sys.contentType.sys.id), Equals, and Product selected. A trash icon is on the right.](/_img/en-US/manual/deployment-and-integration/images/webhook-07-filter.webp)

<!-- 캡쳐 필요(재촬영): 콘솔 1.7.30부터 페이지 머리말 오른쪽 위에 튜토리얼 버튼이 있다. 번역본 컷에는 있고 이 ko 컷에는 없다. 콘솔 변경분을 몰아 찍을 때 함께 다시 찍는다(decisions.md 27번) -->
![The top of the same screen. The Active status menu is beside the title. After changing the settings, Save at the top right is enabled. To its left are the Webhook guide link, Delete, and List.](/_img/en-US/manual/deployment-and-integration/images/webhook-10-save-enabled.webp)

After you save, the *Webhook* sends requests only when a product is registered. It doesn't send requests when someone uploads a photo or leaves a *Comment*.

### Send in the shape the translation program wants {#send-a-custom-payload}

Say the translation program accepts only the product ID and the product name to translate, under the names `id` and `text`.

1. In the left menu, click **Webhooks**.
2. In the list, click "New Product Translation Alert".
3. Click the **Settings** tab.
4. Under **Payload**, make sure **Send a request body** is selected.
5. Choose **Customize the Webhook payload**.
6. Enter the following in the **JSON Editor**.

   ```json
   {
     "id": "{ /payload/sys/id }",
     "text": "{ /payload/fields/productName/ko-KR }"
   }
   ```

7. Click the **Save** button at the top right of the screen.

![The Payload area of Settings. Send a request body is selected and Content-Type header is application/vnd.com.weegloo.v1+json. Customize the Webhook payload is selected. The JSON Editor contains the id and text fields of the custom payload and shows 84 / 500 characters. An Example box follows below.](/_img/en-US/manual/deployment-and-integration/images/webhook-11-custom-payload.webp)

When the tumbler product is registered, the translation program receives `{ "id": "3trmXRM3RqbgSnifyg7OGhwhlqvAvq", "text": "스테인리스 텀블러 500ml" }`. The rules for how placeholders are replaced are in [Writing the shape to send, and placeholders](#payload-and-placeholders).

### Send the translation program's key in a Secret header {#add-a-secret-header}

Say the translation program requires every request to carry a secret value it issued in advance, in the `X-Translate-Key` header.

1. In the left menu, click **Webhooks**.
2. In the list, click "New Product Translation Alert".
3. Click the **Settings** tab.
4. In **Custom HTTP headers**, click the **Add header** button.
5. In the type dropdown of the new row, select **Secret**.
6. Enter `X-Translate-Key` in the **Key** field.
7. In the **Value** field, enter the secret value issued by the translation program.
8. Click the **Save** button at the top right of the screen.

![A row added with Add header in Custom HTTP headers. The type is Secret and the key is X-Translate-Key. The entered value is obscured, with an eye icon at the right of the field and a trash icon at the end of the row.](/_img/en-US/manual/deployment-and-integration/images/webhook-12-secret-header.webp)

![Settings reopened after saving. The saved value in the same Secret row is hidden as dots, with an eye icon at the right of the field.](/_img/en-US/manual/deployment-and-integration/images/webhook-13-secret-header-saved.webp)

This value is kept hidden in the call records, but anyone with the **Manage Webhooks** permission can see the original value on the **Settings** tab or from a program ([Who can see Secret values](#who-can-see-secret-values)).

### Add basic authentication {#add-basic-auth}

Say the translation program requires basic authentication, which checks a username and password. The username is `cozy-closet`, and the password is the value issued by the translation program.

1. In the left menu, click **Webhooks**.
2. In the list, click "New Product Translation Alert".
3. Click the **Settings** tab.
4. Select **Use HTTP Basic Auth**.
5. Enter `cozy-closet` in the **Username** field.
6. In the **Password** field, enter the password you were issued.
7. Click the **Save** button at the top right of the screen.

![Selecting Use HTTP Basic Auth displays Username and Password. Username contains cozy-closet. The password is hidden as dots, with an eye icon at the right of the field.](/_img/en-US/manual/deployment-and-integration/images/webhook-14-basic-auth.webp)

![Settings reopened after saving. Use HTTP Basic Auth is selected and Username is cozy-closet. Password shows Using the saved password in faint text, with a Change button on the right.](/_img/en-US/manual/deployment-and-integration/images/webhook-15-basic-auth-saved.webp)

### Create a Webhook that runs a Script {#create-a-script-webhook}

These are the steps for creating the *Webhook* "Auto-fill Product Description", which has the *Script* "Fill Product Description" fill in a product's detailed description whenever a new product is registered. Say you've already created "Fill Product Description". For how to create a *Script*, see [Script](/getting-started/core-concepts/deployment-and-integration/script.md).

1. In the left menu, click **Webhooks**.
2. Click the **Create** button at the top right of the list. The "Create Webhook" screen opens.
3. Enter `Auto-fill Product Description` in the **Name** field.
4. Make sure **Activate right after creating** is selected.
5. Set **Event Topics** and **Filters** as in [Send requests only when a "Product" is registered](#send-only-for-new-products).
6. Click **Endpoint**.
7. In the list, select "Fill Product Description".
8. Leave **Run as** set to **Webhook creator**.
9. Click the **Create** button at the top right of the screen.

![The expanded Endpoint dropdown on Create Webhook. Search scripts is at the top. Below the selected Enter URL option, the Script group lists POST Fill Product Description and POST Restock Order.](/_img/en-US/manual/deployment-and-integration/images/webhook-23-target-options.webp)

When you click **Create**, the detail screen of "Auto-fill Product Description" opens. From now on, "Fill Product Description" runs every time a product is registered. When the *Script* edits that product, this *Webhook* doesn't run again ([By default, Webhooks don't react to changes made by Scripts](#changes-made-by-scripts)).

### Turn it on or off {#turn-on-or-off}

These are the steps for pausing "New Product Translation Alert" while the translation program is under maintenance. If you turn it off instead of deleting it, its settings stay as they are, so you can turn it back on and use it once the maintenance is over.

1. In the left menu, click **Webhooks**.
2. In the list, click "New Product Translation Alert".
3. Click the status menu (*Active*) next to the title on the detail screen.
4. In the menu that opens, select *Inactive*. The "Deactivate Webhook" confirmation window opens, with the message "This Webhook won't run on any event until you activate it again."
5. In the confirmation window, click **Deactivate**.

![The status menu beside the New Product Translation Alert title, showing Active and Inactive.](/_img/en-US/manual/deployment-and-integration/images/webhook-18-status-menu.webp)

![The Deactivate Webhook dialog explains that the Webhook will not run on any event until activated again. Cancel and Deactivate appear below.](/_img/en-US/manual/deployment-and-integration/images/webhook-19-deactivate-confirm.webp)

<!-- 캡쳐 필요(재촬영): 콘솔 1.7.30부터 페이지 머리말 오른쪽 위에 튜토리얼 버튼이 있다. 번역본 컷에는 있고 이 ko 컷에는 없다. 콘솔 변경분을 몰아 찍을 때 함께 다시 찍는다(decisions.md 27번) -->
![The Webhook list contains one item. Columns are Name, URL, Status, Successful Calls(%), Updated at, and Updated by. New Product Translation Alert has Inactive in its Status column.](/_img/en-US/manual/deployment-and-integration/images/webhook-20-list-inactive.webp)

If *Inactive* shows next to the title and in the **Status** column of the list, the *Webhook* is off. To turn it back on, select *Active* in the same menu. It turns on right away, with no confirmation window. Changes that happened while it was off aren't sent, even after you turn it back on ([Requests are sent separately, after the change is done](#when-requests-are-sent)).

### Edit the settings {#edit-a-webhook}

These are the steps for updating the address of "New Product Translation Alert" after the translation program's address changes to `https://example.com/translate/v2`.

1. In the left menu, click **Webhooks**.
2. In the list, click "New Product Translation Alert".
3. Click the **Settings** tab.
4. Change the address in the **URL** field to `https://example.com/translate/v2`.
5. Click the **Save** button at the top right of the screen.

<!-- 캡쳐 필요(재촬영): 콘솔 1.7.30부터 페이지 머리말 오른쪽 위에 튜토리얼 버튼이 있다. 번역본 컷에는 있고 이 ko 컷에는 없다. 콘솔 변경분을 몰아 찍을 때 함께 다시 찍는다(decisions.md 27번) -->
![The full Settings tab of New Product Translation Alert. Active is beside the title. The top right has the Webhook guide link, Delete, List, and a disabled Save button. Basic contains only Name, without Activate right after creating. Trigger, with the event table and filter row, and Request follow in the same order as on Create Webhook: Endpoint, Custom HTTP headers, Use HTTP Basic Auth, Send a request body, Content-Type header, Payload, JSON Editor, and Example. The right panel contains ID, Version, Changes, Documentation, and Webhook URL requirements.](/_img/en-US/manual/deployment-and-integration/images/webhook-16-settings-tab.webp)

![The Version Conflict dialog displayed when saving after the same Webhook was saved in another window. It explains that someone else has modified the item since editing began and that saving may overwrite their work. Buttons are Cancel, Discard My Changes & Reload, and Overwrite with My Changes.](/_img/en-US/manual/deployment-and-integration/images/webhook-17-save-conflict.webp)

- The edited settings apply to requests sent after you save.
- If someone else saved the same *Webhook* first in the meantime, a "Version Conflict" dialog opens when you save. It says "Someone else has modified this item since you started editing. Your changes may overwrite their work." and displays **Cancel**, **Discard My Changes & Reload**, and **Overwrite with My Changes**.

### View call records {#view-call-records}

These are the steps for checking the requests "New Product Translation Alert" sent recently and the responses it received.

1. In the left menu, click **Webhooks**.
2. In the list, click "New Product Translation Alert". The detail screen opens on the **Call Log** tab.
3. Click the row of the call you want to check. The "Webhook call log detail" window opens.

![The New Product Translation Alert detail screen. The top right has the Webhook guide link, Delete, and List. Call Log is selected beside Settings. A notice says successful call records are deleted after 1 hour and failed records after 3 days, so only failures may remain visible. Below are a total of three records, Result set to All, and refresh and settings icons. Columns are Called at, Call Result, Event action, Duration, and Request ID. One 405 Method Not Allowed and two 200 OK calls all show Create.](/_img/en-US/manual/deployment-and-integration/images/webhook-21-call-history.webp)

For each call, the table on the **Call Log** tab shows **Called at**, **Call Result** (the response code), **Event action** (the change that sent the request), **Duration**, and **Request ID**. Use the **Result** field at the top to see only successful calls or only failed ones. Click the refresh icon at the top right of the table to reload the list, including calls sent a moment ago.

![The Webhook call log detail dialog. Copy cURL, Download .json, and a close icon are at the top right. It shows Called at, Status 200 OK with a green dot, Duration, Event Content > Create, Called URL POST https://example.com/translate, and Request ID with a copy icon. Request and Response appear side by side with expandable headers and bodies. The request body has the product id and text, Stainless Tumbler 500ml; the response has the same id and translated, 스테인리스 텀블러 500ml.](/_img/en-US/manual/deployment-and-integration/images/webhook-22-call-detail.webp)

The top of the detail window shows **Called at**, **Status**, **Duration**, **Event** (for example, Content > Create), **Called URL**, and **Request ID**, and the bottom shows the headers and bodies of the **Request** and **Response** side by side. To pass this call on to someone else exactly as it is, click **Copy cURL**. To get the whole record as a file, click **Download .json**. For the steps to find the cause of a failure from the records and respond, see [Monitoring external integrations](/operations/service/monitoring-webhooks.md).

### Delete a Webhook {#delete-a-webhook}

These are the steps for deleting "New Product Translation Alert", which you no longer use. If you only want to pause it, turn it off instead of deleting it ([Turn it on or off](#turn-on-or-off)).

1. In the left menu, click **Webhooks**.
2. In the list, click "New Product Translation Alert".
3. Click the **Delete** button at the top right. The "Delete Webhook" confirmation window opens, with the message "Do you want to delete this Webhook? This action cannot be undone."
4. In the confirmation window, click **Delete**.

![The Delete Webhook dialog asks whether to delete the Webhook and warns that the action cannot be undone. Cancel and Delete are below.](/_img/en-US/manual/deployment-and-integration/images/webhook-24-delete-confirm.webp)

A deleted *Webhook* can't be restored. Its call records, and the execution logs of the *Script* runs it started, are deleted along with it ([Deleting items such as Locale, Tag, and Script](/manual/common/deletion.md#deleting-other-items)).

## Troubleshooting {#troubleshooting}

| Problem | Cause | What to do |
|---|---|---|
| You registered a product, but no request was sent, and nothing shows in the **Call Log** | The *Webhook* is *Inactive*, product registration (*Content* Create) isn't chosen, or the product didn't match the filters. The same happens when this month's external call transfer volume is used up on the Free, Basic, and Pro plans | Check **Status** in the list, and **Event Topics** and **Filters** on the **Settings** tab. Check the transfer volume in [Keeping an eye on usage and limits](/operations/workspace/watching-usage.md) |
| You entered an address, but it won't save | It doesn't start with `http://` or `https://`, it points to a private network or to the computer itself, or its domain can't be found | Change it to an address that opens on the internet ([Addresses you can send to](#url-rules)) |
| You set a "Product" condition, but requests are sent when you upload photos too | A *Content Type* condition applies only to changes to *Content* | Remove the *Media* changes in **Event Topics** |
| A request is sent every time someone leaves a *Comment* | **Trigger for all events** includes changes to *Comment*s | Use **Select specific triggering events** to choose only the changes you need |
| You uploaded one photo, but two requests were sent | *Media* publishes itself after it's uploaded, so Create and Publish happen one after the other | Choose only the one of the two changes you need |
| The receiving side got the request, but it's recorded as a failure | The receiving side didn't respond within 15 seconds, or the response was too large ([What counts as success and failure](#success-and-failure)) | Change the receiving side so it responds first and does slow processing afterward, or make the response it returns smaller |
| The receiving side responded with a redirect to another address, but the *Webhook* didn't follow it | Responses in the 300s aren't followed and are recorded as successes | Write the final address in the **URL** field |
| A failed request isn't sent again | Failed requests aren't resent | Check for missed changes separately on the receiving side ([Responding to a failure](/operations/service/monitoring-webhooks.md#responding-to-a-failure)) |
| You can't find the record of a request sent yesterday | Records of successful calls are deleted after 1 hour, and records of failed calls after 3 days | Keep anything you need for a long time separately, on the receiving side |
| `null` is sent where a placeholder is, or that spot is empty | The path is wrong, or the item doesn't have that value | Check the path's capitalization, the Field ID, and the language code ([Writing the shape to send, and placeholders](#payload-and-placeholders)) |
| A number is sent as text | You wrote the placeholder together with other text | In a field that should send a number, write only a single placeholder |
| A header won't save | Its name has a character that isn't allowed, two rows have the same name with only the capitalization different, or the value is empty | Fix it to follow the rules in [Headers and basic authentication](#headers-and-basic-auth) |
| After you rename a **Secret** header, you have to enter its value again | The stored value is looked up and kept by header name | Enter the value again |
| The *Script* doesn't run, and a failure is recorded | The values passed don't match the *Script*'s **Payload Schema**, this month's *Script* run count is used up, or the *Webhook* reacted to a change to a *Content Type* or *Comment* with **Triggering user** set | Make the shape to send match that format, check the [Limits](#limits), or change **Run as** to **Webhook creator** |
| A *Webhook* doesn't react to a product the *Script* edited | By default, changes made by a *Script* don't trigger *Webhook*s | See [By default, Webhooks don't react to changes made by Scripts](#changes-made-by-scripts) |
| Requests for the same product keep being sent endlessly | The receiving program saves the product again every time it gets a request, and the *Webhook* reacts to that save too | Make the receiving program skip saving items it has already handled, or remove that change in **Event Topics** ([It reacts again to changes the receiving program saves](#changes-made-by-the-receiver)) |
| You can't delete a *Script* | A *Webhook* is using that *Script*. *Webhook*s that are turned off count too | Change that *Webhook*'s **Endpoint**, or delete that *Webhook* ([Deleting items such as Locale, Tag, and Script](/manual/common/deletion.md#deleting-other-items)) |
| You can't create a new *Webhook* | The *Organization* has reached the number of *Webhook*s it can create | Delete *Webhook*s you don't use, or switch to a higher plan ([When you exceed a count limit](/pricing/pricing.md#over-count)) |
| You can't create a *Webhook* with a *Space Access Token* | Tokens can't work with *Webhook*s | Do it in Content Studio, or use a *Personal Access Token* ([Settings permissions work only for people](/manual/access-and-permissions/role-and-permissions.md#settings-are-for-people)) |
| Requests for changes that happened one after another arrive out of order | The order in which requests arrive isn't fixed | Have the receiving side work out the order from the body's `updatedAt` or `version` |

## Related docs {#related}

- [Webhook](/getting-started/core-concepts/deployment-and-integration/webhook.md): Covers, with diagrams, what a *Webhook* is and the flow from creating one to checking its call records.
- [Monitoring external integrations](/operations/service/monitoring-webhooks.md): Covers how to use call records to find failed requests and respond to them.
- [Script](/getting-started/core-concepts/deployment-and-integration/script.md): Covers how to create and manage a *Script*, which a *Webhook* can run instead of sending to an address.
- [Role and permission rules](/manual/access-and-permissions/role-and-permissions.md): Covers how to turn on the **Manage Webhooks** permission, and permission delegation for *Script*s.
- [Comment rules](/manual/collaboration/comment.md): Covers the rules for *Webhook*s that react to changes to *Comment*s.
- [Status and version rules](/manual/common/states-and-versions.md): Covers how changes like publishing, unpublishing, and archiving change an item's status.
- [Pricing](/pricing/pricing.md): Covers the limits on the number of *Webhook*s, external call transfer volume, and the *Script* run count.
- [API reference](/api/reference/cma/webhook.md): Covers technical specs, such as the request formats you need to work with *Webhook*s and call records from a program.
