Activity events

You can enable activity events to trigger a flow by specifying in the JobSpec object the event_source as "sunshine" and event_type as the tag associated with the event. See Trigger events for more information.

The table and sections below lists all the supported activity events with the tag and expected payload content.

event_typeEvent payload
activity.UserActivityCreatedUser Activity Created

User Activity Created

A custom Sunshine user activity event was created. Doesn't include native Zendesk user events.


{  "account_id": 12345,  "integration_key": "my_integration_key",  "subdomain": "my_zendesk_subdomain",  "input": {    "activity_event": {      "meta": {        "occurred_at": "2022-04-05T03:53:43Z",        "ref": "1-1234567890",        "version": "1.0"      },      "type": "User Activity Created",      "user_activity": {        "created_at": "2022-04-05T03:53:43Z",        "description": "Customer enabled 2-factor authentication",        "id": "RFJGXB6WEH",        "namespace": {          "ref_id": "branch one"        },        "profile_id": "EQHJD941DY",        "properties": {          "passcode_preference": "SMS"        },        "source": "acme",        "type": "2fa_enabled",        "user_id": 12345      }    }  }}