Cannot create a group call room using Platform API
I’m using axios for call the api.
error message : Error: getaddrinfo ENOTFOUND
method: POST
url: https://api-${application_id}.calls.sendbird.com/v1/rooms
headers:
Content-Type: ‘application/json; charset=utf-8’
Api-Token: process.env.SENDBIRD_API_TOKEN
data: { “type” : “large_room_for_audio_only”, “custom_items”: {} }
Hi @Hankyung_Jeon,
Welcome to the Sendbird Community!
Could you please try the following code and let us know if you are still experiencing any issues?
const sample = axios({
method: 'post',
url: 'https://api-${application_id}.calls.sendbird.com/v1/rooms',
headers: {
'content-type': 'application/json',
'Api-Token': 'env.SENDBIRD_API_TOKEN'
},
data: {
'type': 'large_room_for_audio_only'
}
});
console.log(sample)