Headers
-
API token (can be retrieved from account settings)
-
ID of organization, for which the operation must be performed
POST
/api-v1/mail-server/oauth2/callback
curl \
--request POST 'https://wyzio.app/api-v1/mail-server/oauth2/callback' \
--header "Content-Type: application/json" \
--header "WEAL-TOKEN: string" \
--header "TARGET-ORGANIZATION-ID: 42" \
--data '{"mailServerConfigId":42,"code":"string","state":"string","redirectUri":"string"}'
Request examples
# Headers
WEAL-TOKEN: string
TARGET-ORGANIZATION-ID: 42
# Payload
{
"mailServerConfigId": 42,
"code": "string",
"state": "string",
"redirectUri": "string"
}
Response examples (200)
{
"isSuccessful": true,
"errorType": "VALIDATION_ERROR",
"message": "string"
}