Revoke OAuth2 tokens for a mail server config

POST /api-v1/mail-server/oauth2/revoke/{mailServerConfigId}

Headers

  • WEAL-TOKEN string Required

    API token (can be retrieved from account settings)

  • TARGET-ORGANIZATION-ID integer

    ID of organization, for which the operation must be performed

Path parameters

  • mailServerConfigId integer Required

Responses

  • 200 application/json

    OK

    Hide response attributes Show response attributes object
    • isSuccessful boolean
    • errorType string

      Values are VALIDATION_ERROR, SERVER_UNREACHABLE, AUTHENTICATION_FAILED, or OTHER.

    • message string
  • 400

    400 Bad Request

  • 401

    401 Unauthorized

  • 403

    403 Access Denied

  • 404

    404 Not Found

  • 500

    500 Internal Server Error

POST /api-v1/mail-server/oauth2/revoke/{mailServerConfigId}
curl \
 --request POST 'https://wyzio.app/api-v1/mail-server/oauth2/revoke/{mailServerConfigId}' \
 --header "WEAL-TOKEN: string" \
 --header "TARGET-ORGANIZATION-ID: 42"
Response examples (200)
{
  "isSuccessful": true,
  "errorType": "VALIDATION_ERROR",
  "message": "string"
}