Sign-in a User automatically from your application via our API.
curl -X POST http://app.cloudmattr.com/api/v1/sessions \
-H "Accept: application/json" -H "Content-Type: application/json" \
-H "Authorization: YOUR_API_KEY"
JSON Body
{
"id": "asdf1234"
}
JSON Response
{
"user": {
"id": "asdf1234",
"email": "mscott@dundermifflin.com"
"properties": {
"title": "Regional Manager",
"subscription_name": "Pro Plan"
},
},
"authorize_url": "http://dmifflin.cloudmattr.com/auth/passwordless/QMS6xS4oEL7PottWnYNkMGxj",
"expires_at": "2020-11-22T09:19:39.369Z"
}
Redirect to authorize_url and the user will be automatically logged in and redirected to your Workspace.