Create webhook subscription
POST/unified/webhook
The data payload received by your server is described at https://docs.unified.to/unified/overview. The `interval` field can be set as low as 1 minute for paid accounts, and 60 minutes for free accounts.
Parameters
include_allboolean
When set, all of the existing data will sent back to your server.
Payload
A webhook is used to POST new/updated information to your server.
idstring read-only
created_atdate read-only
(ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
updated_atdate read-only
(ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
workspace_idstring read-only
(reference to KmsSpace)
connection_idstring required
hook_urlstring
The URL of the webhook
object_type enum required
Valid values:
The object to return (eg. CRM "contact")
intervalnumber
The interval (in minutes) to check for updated/new objets.
checked_atdate read-only
The last date/time that a check was done on this object (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
integration_typestring read-only
environmentstring read-only
event enum required
Valid values:
"updated"
"created"
"deleted"
runsstring array read-only
An array of the most revent virtual webhook runs
fieldsstring
webhook_type enum
Valid values:
"virtual"
"native"
is_healthyboolean read-only
page_max_limitnumber
filtersstring dictionary
db_urlstring
db_schemastring
db_name_prefixstring
is_pausedboolean
is_betaboolean
Returns
A webhook is used to POST new/updated information to your server.
idstring read-only
created_atdate read-only
(ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
updated_atdate read-only
(ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
workspace_idstring read-only
(reference to KmsSpace)
connection_idstring required
hook_urlstring
The URL of the webhook
object_type enum required
Valid values:
The object to return (eg. CRM "contact")
intervalnumber
The interval (in minutes) to check for updated/new objets.
checked_atdate read-only
The last date/time that a check was done on this object (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
integration_typestring read-only
environmentstring read-only
event enum required
Valid values:
"updated"
"created"
"deleted"
runsstring array read-only
An array of the most revent virtual webhook runs
fieldsstring
webhook_type enum
Valid values:
"virtual"
"native"
is_healthyboolean read-only
page_max_limitnumber
filtersstring dictionary
db_urlstring
db_schemastring
db_name_prefixstring
is_pausedboolean
is_betaboolean
const options = {
method: 'POST',
url: 'https://api.unified.to/unified/webhook',
headers: {
authorization: 'bearer .....'
},
data: undefined,
params: {
include_all: false,
}
};
const results = await axios.request(options); Are we missing anything? Let us know