Sanity Docs
Search
K
Comment on page

Password Generator API

let res = await axios.get("https://sanitybot.xyz/api/passgen");
let data = res.data.pass;
console.log(data);
}
//Or using a function
async function makeGetRequest() {
let res = await axios.get("https://sanitybot.xyz/api/passgen");
let data = res.data.pass;
console.log(data);
}
makeGetRequest();