Configure a Webhook

To define a webhook, provide the following:

The following section provides more details.

  1. Provide a name and description:
    1. Name -- enter your name for the webhook. Quick Base uses this name to identify the webhook. This name will also appear in the list of webhooks on the Summary Page.
    2. Description -- Describe briefly what the webhook does. This information does not appear anywhere else.
  2. Define a trigger for the webhook in the When section.
    1. When -- Select any combination of table events that will trigger your webhook. The possible events are when a record is added, modified, or deleted.
    2. Use the Additional criteria link to add additional filter criteria that must be met before the webhook will fire. The filters can be based on the affected fields, and also on the values of fields after the change event. If so, use the Additional criteria link.
Add additional criteria:
  1. Click the Additional Criteria arrow to the right of the When drop-down box.
  2. AND when -- Select one of the following options:
    1. When any field changes – Trigger the webhook regardless of which fields changed.
    2. When specific fields change – Opens a list of fields that you can select. The webhook will fire only if at least one of the selected fields has changed.
  3. Under the second AND when option, you can create filter criteria, which must be true after the change event.

In the above example, the webhook will fire when all of the following are true:

Complete the "Then" section:

In the “Then” area, you define the actual webhook that gets triggered when the previous “When” conditions are met.

  1. Endpoint URL -- This is the location where the webhook message will be sent. If the webhook is going to another Quick Base table, use the URL for the target table. To find the correct URL, just click the Table icon you want to use to get the URL, for example:

    https://myApp.quickbase.com/db/bmehtz?a=td.

    Remove the string "?a=td" at the end of the URL. So, the Endpoint URL you should use is: 

    https://myApp.quickbase.com/db/bmehtz

  2. HTTP method -- Quick Base webhooks supports five HTTP methods (POST, GET, PUT, PATCH, and DELETE), but most webhooks will use the POST method (which is the default).
  3. Message format -- either XML, JSON, or RAW, as specified by the documentation for your webhook target. If the webhook is going to another Quick Base table, use XML.
  4. Message header -- Enter a list of up to 10 name/value pairs, as specified by the documentation for your webhook target. Typically this will further describe the format of the message, for example: Content-Type: application/json. If the webhook is going to another Quick Base table, provide the API call name either here or in the URL, for example: Quick Base-Action: API_AddRecord.
  5. Message body -- This is the payload of the webhook message, typically in XML or JSON format. See the documentation for your webhook target for specific requirements. Payloads sent to other services will be encoded as UTF-8. If the webhook is going to another Quick Base table, consult the Quick Base API Guide. For any Quick Base API call, use the Sample XML Request as a template for your message body.

Warning! Webhooks can be edited or copied by all admins in the app. Any user-specific URLs or credentials you enter will be visible here.

Add field references and markers

The Endpoint URL and Message body may also contain Quick Base field references and markers. Choose these from the dropdown that appears to the right of the field. For example, an endpoint URL that contains a marker might look like this:

https://myApp.quickbase.com/db/%dbid%

For more information on field references and markers, see Markers and field references and Create Custom Messages for Email Notifications.

Related Topics:

 

Go back      |       |   

© 1999-2018  QuickBase, Inc.  All rights reserved.  Legal Notices.