Deauthenticate!

This API endpoint requires authentication to be used.

The Deauthenticate endpoint provides the ability to remove access to a Donut Team Community API Authorisation Identifier.

Endpoint

https://api.donutteam.com/Deauthenticate.json

Arguments

As with the rest of the API, arguments are passed as part of the URI separated by forward slashes.

https://api.donutteam.com/{Endpoint}/{SessionToDeauthenticate}

Endpoint (Required)

All valid:

  • Deauthenticate
  • Deauthenticate.xml
  • Deauthenticate.json

SessionToDeauthenticate (Required)

An Authorisation Identifier that was given to you by a user giving you access to their account through the use of an API sign in.

Example response

XML

GET https://api.donutteam.com/Deauthenticate.xml/GwaFtgZ3lBL7b60ebVIejFkyA2X8W9WFXfoP3hhulj-hZkf889BcmxJaACCfm5IX
<DonutTeam>
	<Success Value="1"/>
</DonutTeam>

JSON

GET https://api.donutteam.com/Deauthenticate.json/GwaFtgZ3lBL7b60ebVIejFkyA2X8W9WFXfoP3hhulj-hZkf889BcmxJaACCfm5IX
{
    "Success": true
}

Possible responses:

Successful:

{
    "Success": true
}

Failed, you did not specify a session token:

{
    "Success": false,
    "Error": "A session token was not provided."
}

Failed, the session you provided was not valid or does not exist:

{
    "Success": false,
    "Error": "Session not valid"
}
Back to top