You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 2, 2018. It is now read-only.
Natasa Bulatovic edited this page Feb 3, 2016
·
8 revisions
##POST /logout
Logout a user from the API: API Key is invalidated
###Note
Calling logout method invalidates the APIKey of the user. If other clients have been using the APIKey-based authentication for their purpose, 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).
####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