auth-token
, conv_id
, agent_id
, user_email
, and allowed_domain
.auth-token
and ensures the user’s email belongs to the specified allowed domain.curl --location -g --request POST 'https:///addins/email/authorize' \
--header 'Ocp-Apim-Subscription-Key: ' \
--header 'Authorization: Bearer ' \
--header 'Content-Type: application/json' \
--data-raw '{
"auth-token": "xxxxx",
"conv_id": "AAQkADljYmNmOGQzLTQ0NjItNGJiNy1iY2I2LTQ1ZjllMDY3MTM4NAAQAPHLSaGDmNNJntiSCdWaWyg=",
"agent_id": "13",
"user_email": "user@example.com",
"allowed_domain": "datasciencedojo.com"
}'
{
"authorize": true,
"user": {
"id": 147,
"email": "user@example.com",
"org_id": 1
},
"agent": {
"id": 13,
"name": "Marketing Assistant",
"project": "General Project2",
"team": "General",
"owner": "System"
},
"corpus": {
"id": 13,
"indexing_mode": "exhaustive"
}
}