Expo Channel Provider

Configuration

To configure the Expo integration, you'll need the following data:

required fields are marked with an `*`
ParameterTypeDescription
access_tokenstring *The Expo access token used to authenticate push notifications.

In the Dashboard

The easiest way to configure this integration is through the MagicBell dashboard:

  1. Log in to your MagicBell dashboard.
  2. Navigate to Channels.
  3. Find and click on this channel name in the sidebar.
  4. Click the Configure Expo button.
  5. Follow the on-screen instructions to complete the configuration.

Using the API

Use the API to save , list and delete Expo. For example, to save the integration:

Request
curl --request PUT \
  --url 'https://api.magicbell.com/v2/integrations/expo' \
  --header 'content-type: application/json' \
  --header "authorization: Bearer $TOKEN" \
  --data '{"access_token":"expo_access_token"}'

Channel Token

The channel token contains all the information (along with the config) necessary to deliver the notification on the Expo channel.

required fields are marked with an `*`
ParameterTypeDescription
device_tokenstring *The Expo push token returned by the Expo client.

Example

{
  "device_token": "ExponentPushToken[xxxxxxxxxxxxxxxxxxxxxx]"
}

Managing Tokens

Use the API to list , list , delete , delete , save , fetch and fetch Expo tokens. For example, to save a token:

Request
curl --request PUT \
  --url 'https://api.magicbell.com/v2/channels/mobile_push/expo/tokens' \
  --header 'content-type: application/json' \
  --header "authorization: Bearer $TOKEN" \
  --data '{"device_token":"ExponentPushToken[xxxxxxxxxxxxxxxxxxxxxx]"}'