POST
/
webhooks
/
trigger
Trigger an event
curl --request POST \
  --url https://api.synctera.com/v1/webhooks/trigger \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "event": "ADVERSE_ACTION.*"
}'
{
  "event_resource": "<string>",
  "event_resource_changed_fields": "<string>",
  "event_time": "2023-11-07T05:31:56Z",
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "metadata": {},
  "resource_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "response_history": [
    {
      "code": 123,
      "response_body": "<string>",
      "response_time": "2023-11-07T05:31:56Z",
      "sent_time": "2023-11-07T05:31:56Z"
    }
  ],
  "status": "FAILED",
  "type": "ADVERSE_ACTION.CREATED",
  "url": "<string>",
  "webhook_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Provide an event type to trigger

The body is of type object.

Response

200
application/json

Triggered webhook event

Webhook event object that will be returned after triggering the given event. Only id, type and event_time will have value.