import axios from "axios"; const request = async () => { const {data,error} = await axios({ url:"https://ob.gocardless.com/api/v2/requisitions/", method: "POST", headers: { Authorization: `Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzEwMjY2NTM2LCJqdGkiOiIyZjUyOWE3YzYzMWY0ZmEwOTQwOWY3OTgyNDA2NzJmNSIsInV1aWQiOiJmMzVlMjhlMi0yMmQyLTRhOWEtYjBhOS01NTM0OGNmZGE0NDciLCJhbGxvd2VkX2NpZHJzIjpbIjAuMC4wLjAvMCIsIjo6LzAiXX0.4ErAso0_BSdW8I8n_DHxywDApY8745eW-o2XC35eJLc`, accept: "application/json" }, data: { redirect: "http://localhost:3002/banking/link/refresh", institution_id: "N26_NTSBDEB1", reference: "1234567", user_language: "de" } }) console.log(data) console.log(error) } request()