common models
. This means once you set it up, one event can make several workflows get executed. This is handy when you want the same event to do similar things in different apps.
Creating an event
An event model contains name of the event and the trigger payload. The trigger payload contains sample data schema that can be used as data variables and are used inside a workflow as placeholders while defining the workflow. The actual data passed while triggering the event takes place of those variables inside the workflows. To create an event, go to Settings > Developer > Events, Click onNew Event
and select a model.

Create event
. It is expected that you pass on the data as the Sample Payload
while you are triggering this event. This is because, the properties defined in the sample payload can be used as trigger variables inside a workflow.
In the below example, we are using firstName
defined inside the Contact
event in a HubSpot workflow.

Contact
, this workflow will get executed with name
field consisting of the value sent by you as firstName
while triggering
the event.
Triggering an event.
Cobalt events can be triggered using various methods. You can make use of theEvent URL
. Go to Settings > Developer > Events
Copy the event URL. Then click on the event that you would like to trigger to get its cURL. See below for reference

linked_account_id
and x-api-key
in the headers
In the above cURL example, we have not mentioned the
config_id
in the headers. The config id essentially defines the default config with which the worflow shall
be executed. If config_id
is not mentioned, Cobalt considers the linked_account_id
as the config_id
by default.Try API
feature of Cobalt. Refer here to learn how you can use Try API.