const body = `{
"user": {
"email": "demo@azuracast.com",
"auth_password": "",
"name": "Demo Account",
"locale": "en_US",
"show_24_hour_time": true,
"two_factor_secret": "A1B2C3D4",
"created_at": 1609480800,
"updated_at": 1609480800,
"roles": []
},
"comment": "string"
}`;
const response = await fetch('https://demo.azuracast.com/api/frontend/account/api-keys', {
method: 'POST',
headers: {
'X-API-Key': 'YOUR_TOKEN',
'Content-Type': 'application/json',
},
body,
});
const data = await response.text();