Webhook settings and rules

This page covers everything about Webhooks: their settings, rules, limits, permissions, and the tasks you do in Content Studio. If you're new to Webhooks, start with Webhook, 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

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). 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.

SettingDescriptionDefaultConstraints
NameA name that tells you which Webhook this is. It's in BasicNone. Required1 to 64 characters
Activate right after creatingA 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 BasicSelectedAfter creation, you turn it on and off from the status menu next to the title on the detail screen (Turn it on or off)
Event TopicsThe changes to react to. Choose either Trigger for all events or Select specific triggering events. It's in TriggerTrigger for all eventsThe changes you can choose are listed in The changes that send a request differ by item
FiltersConditions 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 TriggerNone. It reacts every time a chosen change happensThe conditions you can set are in Narrowing the scope with conditions
EndpointWhat 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 RequestEnter URLYou set only one of the two: an address or a Script (When it runs a Script instead of a URL)
URLThe 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 itemThe method is POSTThe rules are in Addresses you can send to
Run asDecides whose name is recorded on the items a Script creates or edits. It appears when you choose a Script in EndpointWebhook creatorFor details, see Run as only sets the name on the record
Custom HTTP headersName 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 CustomNoneThe rules are in Headers and basic authentication
Use HTTP Basic AuthUsed 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 URLNot selectedThe rules are in HTTP Basic Auth
Content-Type headerSets the format for sending the request body. It appears below Send a request body when that option is selectedapplication/vnd.com.weegloo.v1+jsonFor details, see What the request carries
Send a request bodyWhen selected, the request is sent with a body. It's in RequestSelectedIf the method is GET, no body is sent even when it's selected
PayloadWhat goes in the body. Choose either Use default payload or Customize the Webhook payloadUse default payloadTo set the shape to send yourself, write it in the JSON Editor (Writing the shape to send, 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

The changes that send a request differ by item

A Webhook reacts to changes to the Content, Media, Content Types, and Comments 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.

ChangeWhen it happensContentMediaContent TypeComment
CreateWhen it's createdYesYesYesYes
SaveWhen it's edited and savedYesYesYesYes
DeleteWhen it's deletedYesYesYesYes
PublishWhen it's publishedYesYesYesNo
UnpublishWhen it's unpublishedYesYesYesNo
ArchiveWhen it's archivedYesYesNoNo
UnarchiveWhen it's unarchivedYesYesNoNo

If you choose Trigger for all events, the Webhook reacts to every change in the table above, including changes to Comments. 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.

The conditions you can set for changes to Comments are in Narrowing the scope with conditions. For the rule that no request is sent for replies and Comments deleted along with their original Comment or item, see Comment alerts and Webhooks. Changes made by a Script are explained in By default, Webhooks don't react to 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.

Narrowing the scope with conditions

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 onOn screenWhat it comparesChanges it applies to
ItemEntity 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 TypeContent Type ID (sys.contentType.sys.id)The template the Content followsChanges to Content
CreatorUser ID, created by (sys.createdBy.sys.id)The person who first created the itemChanges to every kind of item
Last editorUser ID, updated by (sys.updatedBy.sys.id)The person who last edited the itemChanges to every kind of item

For changes to Comments, the item is the Comment itself. So a Webhook that reacts to Comments 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.

ComparisonOn screenReacts when
EqualEqualsIt's the same as the value you entered
Not equalNot EqualsIt's different from the value you entered
One of a listInIt's the same as one of the values you entered
Not in a listNot InIt isn't the same as any of the values you entered
Matches a patternRegexpIt matches the pattern you entered (a regular expression: a pattern, written in symbols, that describes how text is put together)
Doesn't match a patternNot RegexpIt 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 Types, and Comments, 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 Types 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

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.
  • Even if the receiving side responds by redirecting to another address, the Webhook doesn't follow the redirect (What counts as success and failure).

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.

{
  "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 Locales, 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.

HeaderValue it carries
X-Weegloo-TopicThe change that sent the request. For a product being registered, it's ContentManagement.Content.Create
X-Weegloo-Webhook-NameThat 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.
  • 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).

Writing the shape to send, 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. 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. After it, write the names along the way to the value you want, in order, joined with /.

PlaceholderValue 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 above, and you write the following in the JSON Editor.

{
  "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.

{
  "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.
  • 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).

Headers and basic authentication

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).

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.

TypeWhat you enterValue kept in call records
CustomThe header name (Key) and ValueThe value as you entered it
SecretThe header name (Key) and ValueThe value hidden as **********

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

  • 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).
  • 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

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).

When it runs a Script instead of a URL

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). The Endpoint list displays only the Scripts 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.

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

Webhook settingWhen running a Script
PayloadUsed. The default payload, or the shape to send you wrote yourself, is passed to the Script, which reads it as { /payload/… }
Send a request bodyIf it isn't selected, no value is passed to the Script
Secret and Custom headersUsed. The Script reads their values as { /headers/이름 }, with the header name in lowercase
HTTP Basic AuthNot used. This section doesn't appear when you choose a Script
The method and Content-Type headerNot 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.
  • Each time a Webhook runs a Script, one of your plan's Script runs is used (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.
  • 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).
  • 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).

Run as only sets the name on the record

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 Webhooks that send requests to an address don't use it.

OptionName recorded on items the Script creates or edits
Webhook creator (default)The person who created this Webhook
Triggering userThe 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).
  • 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

Even when a Script creates, edits, or publishes Content or Media, by default Webhooks 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.

Webhooks 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. 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. Webhooks don't react to the change after that.

It reacts again to changes the receiving program saves

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 Webhooks exactly like a change saved in Content Studio. Unlike changes made by a Script, 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 Webhooks 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).
  • Let a Script in this Space call the outside program and save the result. By default, Webhooks don't react to changes made by a Script (When it runs a Script instead of a URL).

Requests are sent separately, after the change is done

  • 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 Webhooks 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, Webhooks that send requests to an address stop. No call records are kept then either. Webhooks 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). Once the Script run count is used up, Webhooks 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.

What counts as 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 responseResult
A response in the 200sSuccess
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 500sFailure
Couldn't connect, or no response within 15 secondsFailure
A response that's too largeFailure. The request has already reached the receiving side by then.

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.

  • 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.
  • 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

Call records are kept for 1 hour on success and 3 days on failure

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.

Limits

ItemLimit
Length of Name1 to 64 characters
Length of one filter value255 characters
Number of headers30, Secret and Custom combined
Length of a header name (Key)1 to 255 characters
Length of a header Value1 to 4,096 characters
HTTP Basic AuthOne per Webhook. The username and password can each be up to 32 characters
Size of a shape to send that you write yourself1 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 response15 seconds
How long call records are kept1 hour on success, 3 days on failure
Length of the body kept in call records65,536 characters for a sent request, 8,192 characters for a received response
Reactions chained from changes made by ScriptsThree times
Number of WebhooksVaries by plan. Check the "Webhook" row in Pricing
External call transfer volumeVaries by plan. Check the "External calls" row in the same table. It's shared with Scripts' outside service calls and email sending
Script run countVaries 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

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. You can see how much you've used so far in Keeping an eye on usage and limits.

Required permissions

What you want to doRequired permission
View the Webhook list and settings, create, edit, turn on or off, and deleteManage Webhooks in the role (SpaceRole) you have in that Space
View call recordsManage Webhooks
Set a Script as the EndpointManage Webhooks, and Read on that Script (Scripts without Read do not appear in the Endpoint list)
Have a Webhook run a ScriptNo permission is checked (Script run permission and delegation)
Cause a change that a Webhook reacts toYou 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).
  • Manage Webhooks takes effect only when members work with their own accounts. You can't work with Webhooks using a Space Access Token (Settings permissions work only for people).
  • Anyone with Manage Webhooks can make this Space's Scripts 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

The first task, 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.

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.

The screenshot in 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.

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.

Once it's created, try registering a new product in the clothing store (Creating and publishing Content). 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).

The steps for pausing it, changing its address, or deleting it are in Turn it on or off, Edit the settings, and Delete a Webhook. For who can create and manage Webhooks, see Required permissions.

Send requests only when a "Product" is registered

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.

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.

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.

The completed filter row with Content Type ID (sys.contentType.sys.id), Equals, and Product selected. A trash icon is on the right.

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.

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

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.

    {
      "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.

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.

Send the translation program's key in 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.

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.

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).

Add basic authentication

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.

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.

Create a Webhook that runs a Script

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.

  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.
  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.

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).

Turn it 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.

The Deactivate Webhook dialog explains that the Webhook will not run on any event until activated again. Cancel and Deactivate appear below.

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.

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).

Edit the settings

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.

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.

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.

  • 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

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.

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.

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.

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).

  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.

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).

Troubleshooting

ProblemCauseWhat to do
You registered a product, but no request was sent, and nothing shows in the Call LogThe 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 plansCheck 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
You entered an address, but it won't saveIt doesn't start with http:// or https://, it points to a private network or to the computer itself, or its domain can't be foundChange it to an address that opens on the internet (Addresses you can send to)
You set a "Product" condition, but requests are sent when you upload photos tooA Content Type condition applies only to changes to ContentRemove the Media changes in Event Topics
A request is sent every time someone leaves a CommentTrigger for all events includes changes to CommentsUse Select specific triggering events to choose only the changes you need
You uploaded one photo, but two requests were sentMedia publishes itself after it's uploaded, so Create and Publish happen one after the otherChoose only the one of the two changes you need
The receiving side got the request, but it's recorded as a failureThe receiving side didn't respond within 15 seconds, or the response was too large (What counts as 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 itResponses in the 300s aren't followed and are recorded as successesWrite the final address in the URL field
A failed request isn't sent againFailed requests aren't resentCheck for missed changes separately on the receiving side (Responding to a failure)
You can't find the record of a request sent yesterdayRecords of successful calls are deleted after 1 hour, and records of failed calls after 3 daysKeep anything you need for a long time separately, on the receiving side
null is sent where a placeholder is, or that spot is emptyThe path is wrong, or the item doesn't have that valueCheck the path's capitalization, the Field ID, and the language code (Writing the shape to send, and placeholders)
A number is sent as textYou wrote the placeholder together with other textIn a field that should send a number, write only a single placeholder
A header won't saveIts name has a character that isn't allowed, two rows have the same name with only the capitalization different, or the value is emptyFix it to follow the rules in Headers and basic authentication
After you rename a Secret header, you have to enter its value againThe stored value is looked up and kept by header nameEnter the value again
The Script doesn't run, and a failure is recordedThe 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 setMake the shape to send match that format, check the Limits, or change Run as to Webhook creator
A Webhook doesn't react to a product the Script editedBy default, changes made by a Script don't trigger WebhooksSee By default, Webhooks don't react to changes made by Scripts
Requests for the same product keep being sent endlesslyThe receiving program saves the product again every time it gets a request, and the Webhook reacts to that save tooMake 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)
You can't delete a ScriptA Webhook is using that Script. Webhooks that are turned off count tooChange that Webhook's Endpoint, or delete that Webhook (Deleting items such as Locale, Tag, and Script)
You can't create a new WebhookThe Organization has reached the number of Webhooks it can createDelete Webhooks you don't use, or switch to a higher plan (When you exceed a count limit)
You can't create a Webhook with a Space Access TokenTokens can't work with WebhooksDo it in Content Studio, or use a Personal Access Token (Settings permissions work only for people)
Requests for changes that happened one after another arrive out of orderThe order in which requests arrive isn't fixedHave the receiving side work out the order from the body's updatedAt or version
  • Webhook: Covers, with diagrams, what a Webhook is and the flow from creating one to checking its call records.
  • Monitoring external integrations: Covers how to use call records to find failed requests and respond to them.
  • Script: Covers how to create and manage a Script, which a Webhook can run instead of sending to an address.
  • Role and permission rules: Covers how to turn on the Manage Webhooks permission, and permission delegation for Scripts.
  • Comment rules: Covers the rules for Webhooks that react to changes to Comments.
  • Status and version rules: Covers how changes like publishing, unpublishing, and archiving change an item's status.
  • Pricing: Covers the limits on the number of Webhooks, external call transfer volume, and the Script run count.
  • API reference: Covers technical specs, such as the request formats you need to work with Webhooks and call records from a program.