Login: Post
##POST /login
- Retrieve existing API Key for a user
Note: Logout Note ####Response status codes #####200 OK Successfully authenticated user and API Key retrieval
#####401 Unauthorized Not authorized to perform this request (none or wrong credentials were provided)
####Example request
curl --user email:password --request POST <baseURL>/rest/login
or with API Key:
curl --header "Authorization: Bearer key" --request POST <baseURL>/rest/login
#####Example response body { "email":"email@example.org", "quota":26843545600, "apiKey":"eyJraWQiOm51bGwsImFsZyI6IlJTMjU2In0.eyJleHAiOjEzMDMwMjE0NTI4NiwianRpIjoiZnNXX1RPdHJEbWppR2RGal9GWUw5USIsImlhdCI6MTQ1MzEyNjQwNiwic3ViIjoiaHR0cDovL2Rldi1mYWNlcy5tcGRsLm1wZy5kZS9pbWVqaS91c2VyLzlXRHZlSWJVVHdEZm1YNEMifQ.UavPmcd2Hl0XqLXWooWqBaJqerWY9IT0a8yJJPrGsIEMM46wnAoj0roejjgTKs58hWfcCOkBTNkKBGI-GtC0GBpr9v5S4i1uh8sl33HxdT-JNKcZyAHWuBLLJuKvRF-hAh4CsumN1-8trz4sr-_zrXIwdHpqoSXj7YwsJToWjpPir045hID2s9pLd82Lbi2-YuA1M3hCdIToH7hdVeWVFfTXWADAdn9PT3rteyGEst70QMWiPURwdeoqoGuCFAOY7yk1a9pAxEwmIu2ZkwonEiCaWUqqv-Wnoxx7DRTl9FImfa6ulagMe_9KC3XGYWcieu6GNZQEMK4IyCzIEYtcfA", "person":{ "id":"_JNhzjKkLQNtZ9M2", "familyName":"Test", "givenName":"User", "completeName":"Test user", "alternativeName":"", "role":"", "identifiers":[ { "type":"imeji", "value":"_JbhzjKkLQNtZ9M2" } ], "organizations":[ { "id":"u93RAFKLMV0BCoX", "name":"example.org", "description":"", "identifiers":[ { "type":"imeji", "value":"u93RwFKLMV0BCoX" } ], "city":"Munich", "country":"Germany" } ] } }