Push Notifications

Create an app on Flashy to send push notifications to your contacts on the right time.

Create an App

Go to Flashy dashboard to create an app: Integrations -> Create Mobile Push Notification App

After the creation you will get your APP ID.

What is the device token?

Is the ID the messaging service has for the device, on Firebase it's called Registration ID.

‚Äč Add Contact Device Token

Make sure to change the {APP ID} with your application ID from Flashyapp dashboard.

https://flashyapp.com/api/app/{APP_ID}/endpoint
JSON
JSON
{
"key": "__API_KEY__",
"email": "email@address.com",
"device_token": "the customer device token"
}

Creating New Contact with Device Token

When you create new contact on Flashy through the API you can pass the device token with the APP ID and it will assign it on the fly, the request will look like this (it works the same when updating contact).

https://flashyapp.com/api/contacts/create
JSON
JSON
{
"key": "__API_KEY__",
"contact": {
"email": "email@address.com",
"first_name": "Jenny",
"last_name": "Hide",
"phone": "972526845000",
"device_token": "device_token"
},
"app_id": {APP_ID},
}

You send all contact fields into the endpoints

Subscribing New Contact with Device Token

You can subscribe contact to a list with a device token with the URL below:

https://flashyapp.com/api/lists/__LIST_ID__/subscribe
JSON
JSON
{
"key": "__API_KEY__",
"subscriber": {
"email": "email@address.com",
"first_name": "Jenny",
"last_name": "Hide",
"phone": "972526845000",
"device_token": "device_token"
},
"app_id": {APP_ID},
}

You send all contact fields into the endpoints