Create a webhook.

POST {{baseUrl}}/v4/webhooks

Create a new webhook to receive events from a location or an organization. One of locationUid or organizationUid is required. If both are given the organizationUid will be used.

Request Body

{"eventTypes"=>["message.received"], "url"=>"https://www.podium.com/", "locationUid"=>"00000000-0000-0000-0000-000000000000", "organizationUid"=>"00000000-0000-0000-0000-000000000000", "secret"=>"something-no-one-will-know"}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
Acceptstring

RESPONSES

status: OK

{"data":{"createdAt":"2015-01-23T23:50:07Z","disabled":true,"eventTypes":["message.sent"],"locationUid":"00000000-0000-0000-0000-000000000000","organizationUid":"00000000-0000-0000-0000-000000000000","secret":"magna voluptate qui","uid":"00000000-0000-0000-0000-000000000000","updatedAt":"2015-01-23T23:50:07Z","url":"https://www.podium.com/"},"metadata":{"url":"https://www.podium.com/"}}