Logs the currently logged-in user out. It does not work with an API token.
curl -L \ --request POST \ --url 'https://eu1.make.com/api/v2/logout'
{ "ok": 1 }
Logs a user in by passing the user's email and password in the request body. It does not work with an API token.
curl -L \ --request POST \ --url 'https://eu1.make.com/api/v2/login' \ --header 'Content-Type: application/json' \ --data '{ "email": "test@make.cloud", "password": "test" }'
{ "userId": 1 }
experimental
curl -L \ --request POST \ --url 'https://eu1.make.com/api/v2/sso/authorize' \ --header 'Content-Type: application/json' \ --data '{ "redirect": "/" }'
{ "authorizeUrl": "https://sso.example.com/authorize?response_type=code&client_id=mock.make.cloud&redirect_uri=https%3A%2F%2Fmock.make.cloud%2Fsso%2Foauth&state=c72e0f91265beae1cf7f&scope=mock.connect" }
curl -L \ --request POST \ --url 'https://eu1.make.com/api/v2/sso/login' \ --header 'Content-Type: application/json' \ --data '{ "code": "966d7b84db750a3a297341fff8e33f07cb47b420", "state": "c72e0f91265beae1cf7f" }'
{ "redirect": "/", "redirectAction": { "action": "CREATE_SCENARIO", "data": { "modules": [ "weather:now", "google:sheet" ] } } }