Docs — Login

Login

Authenticate user and receive a JWT. Include tenant header.

Example

fetch('https://auth.magicrunez.com/login', {
  method: 'POST',
  headers: { 'Content-Type': 'application/json',
    'X-Tenant-ID': '...value...'
  },
  body: JSON.stringify({ email: 'user@example.com', password: 's3cret' })
})
  .then(r => r.json())
  .then(console.log)
  .catch(console.error);