title: Postman - Error 400 Bad Request
body: <p>I'm trying to access an API using Postman to get a response using basic authentication, but when I submit the data, it gives me the dreaded 400 error, which apparently indicates that some headers aren't set up properly.</p>
  
  <p>Here's the API info:</p>
  
  <pre><code>Request
  
  Endpoint: {loginUrl}
  Data to submit: an email and a password
  POST /login HTTP/1.1
  Host: {baseUrl}
  Accept: application/json
  Content-Type: application/json
  Content-Length: 68
  
  {
      "email": "{email}",
      "password": "{password}"
  }
  </code></pre>
  
  <p>And in response, I should get an encrypted token in form of JSON, instead I'm getting this error.</p>
  
  <p>Here are the postman screenshots:</p>
  
  <p><img src="https://i.imgur.com/lLnbSJ4.jpg" alt="Postman_01"></p>
  
  <p><img src="https://i.imgur.com/Ox2eOIm.jpg" alt="Postman_02"></p>
  
  <p>Am I missing something?</p>