Skip to content
This repository has been archived by the owner on Jul 2, 2018. It is now read-only.

Logout: Post

Natasa Bulatovic edited this page Feb 3, 2016 · 8 revisions

##POST /logout

  • Invalidate the API Key of a user for authentication via the REST API

###Logout Note Calling logout method invalidates the APIKey of the user. If other clients have been using the same APIKey during authentication, they will have to login the user again in order to get the APIKey which is valid at the moment (imeji will generate a new API Key if already valid API Key does not exist).

See also Login ####Response status codes #####200 OK Successful logout

#####401 Unauthorized Unsucessful logout

####Example request curl --user email:password --request POST <baseURL>/rest/logout

or with API Key:

curl --header "Authorization: Bearer key" --request POST <baseURL>/rest/logout

Clone this wiki locally