Webhook Integration Samples

Mixpanel

Use case

Send events data from Journey to Mixpanel.

Prerequisites

URL example

https://api.mixpanel.com/import?strict=1&project_id=XXXXXXX
1
Authorization: Basic UHVzaHdvb3NVTTWlrcjROZUE=
2
Content-Type: application/json
Copied!

Data example

1
[
2
{
3
"event": "PW_ApplicationOpen",
4
"properties": {
5
"time": "{{point:48ae746b-0f54-47db-b96c-1f082e110ff4;event:PW_ApplicationOpen;attribute:datetime}}",
6
"distinct_id": "{{device:hwid}}",
7
"$insert_id": "48ae746b-0f54-47db-b96c-1f082e110ff4",
8
"device_type": "{{point:48ae746b-0f54-47db-b96c-1f082e110ff4;event:PW_ApplicationOpen;attribute:device_type}}",
9
"application_version": "{{point:48ae746b-0f54-47db-b96c-1f082e110ff4;event:PW_ApplicationOpen;attribute:application_version}}",
10
"timezone": "{{tag:Timezone}}",
11
"name": "{{tag:Name}}"
12
}
13
}
14
]
Copied!

Amplitude

Use case

Send events data from Journey to Amplitude.

Prerequisites

  • Amplitude Account

URL

https://api.amplitude.com/2/httpapi
1
Accept: */*Content-Type: application/json
Copied!

Data example

1
{
2
  "api_key": "c506ffde6db9xxxxxxa50120e22ec5",
3
  "events": [
4
    {
5
      "user_id": "{{device:user_id}}",
6
      "device_id": "{{device:hwid}}",
7
      "event_type": "PW_ApplicationOpen",
8
      "user_properties": {"timezone": "{{tag:Timezone}}", "sdk_version": "{{tag:SDK Version}}"},
9
      "country": "{{tag:Country}}"
10
    }
11
  ]
12
}
Copied!

Slack

Use case

Trigger Slack messages from Journey.

Prerequisites

  • Slack Account

URL example

https://pushwoosh.slack.com/apps/XXXXXXXX-incoming-webhooks
1
Content-Type: application/json
Copied!

Data example

1
{
2
  "text": "Hi there :smile:",
3
  "username": "John Doe"
4
}
Copied!

Zapier

Use case

Send data to Zapier which can further be used in Zapier automation across 4000+ apps.

Prerequisites

  • Zapier Account

URL example

https://hooks.zapier.com/hooks/catch/XXXXXXX/xxxxxxx
1
Content-Type: application/json
Copied!

Data example

1
{
2
"hwid": "{{device:hwid}}",
3
"sdk": "{{tag:SDK Version}}"
4
}
Copied!

Twillio (SMS)

Use Case

Send SMS from Journey

Prerequisites

  • Twillio Account (access to TWILIO_ACCOUNT_SID and TWILIO_AUTH_TOKEN)
  • Phone number purchased

URL example

https://api.twilio.com/2010-04-01/Accounts/\$TWILIO_ACCOUNT_SID/Messages.json
1
Content-Type: application/x-www-form-urlencoded
2
Authorization: Basic.... // Encode TWILIO_ACCOUNT_SID and TWILIO_AUTH_TOKEN with https://www.blitter.se/utils/basic-authentication-header-generator/ to get Authenticate value
Copied!

Data example

1
From=%2B18646511557&To=%2B15852826356&Body=...
Copied!
Last modified 1mo ago