Complete guide for managing Firebase Cloud Messaging (FCM) tokens in Masivo - from user registration to token expiration and unregistration
PATCH /customers/{id}/devices
endpoint to register or update a customer’s device token:
expires_at
based on your account’s device_token_ttl
settingdevices
arrayupdate_customer_device_token
stored proceduredevice_token_ttl
is not
configured, the registration will fail with a 400 error: “Marketing automation
is not enabled, enable it in the marketing_automation settings”DELETE /customers/{id}/devices
endpoint to remove a device token:
devices
array to empty []
update_customer_device_token
stored procedure to clean up mappingsexpires_at
timestamp{account_id}_audience_{audience_id}