Skip to content

Data api authentication revoketoken

Yuji Takayama edited this page Jul 10, 2013 · 1 revision

Authentication: revokeToken

Invalidate current access token. This is not logout. If the browser has active session id, new access token can be obtained easily.

Authorization is required.

Request

HTTP Request

This method accepts DELETE and POST with __method=DELETE.

DELETE https://your-host/your-mt-api.cgi/v1/token

Parameters

Method Parameters

Not available.

Query Parameters

Not available.

Request Body

Do not supply a request body.

Response

Parameter Type Description
status string The value of this parameter is always "success".

Status Code

Code Description
200 no error

Example

DELETE /mt-api.cgi/v1/token
Host: www.example.com
X-MT-Authorization: MTAuth=xxxxxxxxxxxxxxxxxxxxxxxx

HTTP/1.0 200 OK
Content-Type: application/json
Content-length: ...
Clone this wiki locally