Go to Flashy dashboard to create an app: Integrations -> Create Mobile Push Notification App
After the creation you will get your APP ID.
Is the ID the messaging service has for the device, on Firebase it's called Registration ID.
Make sure to change the {APP ID} with your application ID from Flashyapp dashboard.
https://flashyapp.com/api/app/{APP_ID}/endpoint
{"key": "__API_KEY__","email": "email@address.com","device_token": "the customer 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
{"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
You can subscribe contact to a list with a device token with the URL below:
https://flashyapp.com/api/lists/__LIST_ID__/subscribe
{"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