curl --location --request POST 'https://api.plusvibe.ai/v1/webhook/partner-microsoft-oauth-url' \
--header 'Content-Type: application/json' \
--data-raw '{
"flow": "app_user",
"pipl_username": "user@email.com",
"pipl_password": "A1b2c3d4!",
"workspace_id": "65099a0dd96fae8ab61130c0"
}'
{
"code": 1,
"message": "success",
"data": {
"redirect_url": "https://login.microsoftonline.com/common/oauth2/v2.0/authorize?client_id=12345678-abcd-1234-efgh-56789abcdef0&state=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ3c19pZCI6IjY1YWFiYmNjZDk2ZjEyMzQ1Njc4OWFiIiwiX3VfaWQiOiI2NWNjYmI5YzEyMzQ1Njc4OWFiY2RlZiIsImZsb3ciOiJhcHBfdXNlciIsIndhcm11cF9zdGF0dXMiOiJJTkFDVElWRSIsInBhcnRuZXJfaWQiOiJub2RlX2FwaV91c2VyIiwicmFuZG9tIjoiYWJjZGVmZ2hpamtsbW5vcHFyc3QiLCJpYXQiOjE3NDAwMDAwMDAsImV4cCI6MTc0MDAwOTAwMH0.fake-signature-string&response_type=code&redirect_uri=https%3A%2F%2Fapi.fakecorp.com%2Fv1%2Fwebhook%2Fadd-microsoft-email-account-by-partner&prompt=select_account&scope=https%3A%2F%2Foutlook.office.com%2Fmail.readwrite%20https%3A%2F%2Foutlook.office.com%2FIMAP.AccessAsUser.All%20https%3A%2F%2Foutlook.office.com%2FSMTP.Send%20offline_access%20profile%20email%20openid&response_mode=query"
}
}