const response = await fetch("https://algapsa.com/api/v1/users/bulk/create", {
method: "POST",
headers: {
"X-API-Key": "$ALGA_API_KEY",
"Content-Type": "application/json",
},
body: JSON.stringify({
"username": "xxx",
"email": "user@example.com",
"password": "xxxxxxxx",
"first_name": "string",
"last_name": "string",
"phone": "string",
"timezone": "string",
"user_type": "internal",
"contact_id": "01HN2K7VRB9PQ3Y0000000000",
"two_factor_enabled": false,
"is_google_user": false,
"is_inactive": false,
"role_ids": [
"01HN2K7VRB9PQ3Y0000000000"
]
})
});
const data = await response.json();