//backend.js const axios = require('axios'); ... //this code can go into your sign up flow // to make this cleaner you can extract it into a function const email = 'sucrose@beiizetuleads.com' //replace with actual email const tid = req.cookies['_fprom_tid']; const params = new URLSearchParams(); params.append("email", email); params.append("tid", tid); axios .post("https://firstpromoter.com/api/v1/track/signup", params, { headers: { "Content-Type": "application/x-www-form-urlencoded", "x-api-key": "your api key here", }, }) .then(function (response) { //any action if the request is successful console.log(JSON.stringify(response.data)); }) .catch(function (error) { //any action if the request fails console.log(error); });