🏛 Architecture

Here is a diagram describing the implementation.

Firebase Architecture
Firebase Architecture

🔚 Endpoints to link and unlink tokens

As described in the diagram above, we will need you to send the firebase token/tokens to these endpoints below when it gets linked/unlinked to a user.

⬆️ POST /v1/integration/user/device/link

    
{
"user_id": "1234",
"origin": "yoursite.com",
"tokens": [
{
"token": "abc",
"channel": "android",
"provider": "firebase"
},
{
"token": "abc",
"channel": "ios",
"provider": "firebase"
}
],
"timestamp": "2019-09-12T10:00:00Z"
}

⬆️ POST /v1/integration/user/device/unlink

    
{
"user_id": "1234",
"origin": "yoursite.com",
"tokens": [
{
"token": "abc",
"channel": "android",
"provider": "firebase"
},
{
"token": "abc",
"channel": "ios",
"provider": "firebase"
}
],
"timestamp": "2019-09-12T10:00:00Z"
}

Credentials

We will need you to provide us with credentials described in below link.