How to send token to server using Django Rest Framework?

Hello everyone,
I’m working on a project where i have to send push notification using Firebase, I have implemented it to my project. When i reload my website I’ll get device token printed in console now i just want to save that token to my Django database using DRF.
If anyone know how to do that please help me out!
Here is my Script from which im getting token

    const firebaseConfig = {
        apiKey: "",
        authDomain: "",
        projectId: "",
        storageBucket: "",
        messagingSenderId: "",
        appId: "",
        measurementId: ""
    };

    // Initialize Firebase
    firebase.initializeApp(firebaseConfig);
    firebase.analytics();

    const messaging = firebase.messaging();
    console.log(messaging.getToken(), "token")

    messaging.getToken({ vapidKey: '' })
    .then((currentToken) => {
        if (currentToken) {

            console.log(currentToken)
        } else {
            console.log('No registration token available. Request permission to generate one.');

        }
    }).catch((err) => {
        console.log('An error occurred while retrieving token. ', err);
    });

    messaging
        .requestPermission()
        .then(function () {
            console.log("Notification permission granted.");
            return messaging.getToken()
        })
        .catch(function (err) {
            console.log("Unable to get permission to notify.", err);
        });

    messaging.onMessage((payload) => {
        console.log('Message received. ', payload);

    });

From console.log(currentToken) im getting my token now how to send this to my databse