Account Sign In
This endpoint allows you to securely access your account by providing your email and password.

Expected Behavior:


  • When the credentials are correct, the system will authenticate you and return authentication tokens along with your account details, granting you access to the system.
  • If the credentials are incorrect or the request is unauthorized, the system will return an error message explaining the issue, such as an invalid email or password.
Request Body Parameters
  • email string
    The user's email address used for authentication.
  • password string
JavaScript
Response codes
const axios = require('axios');

const url = 'https://auth.api.pinghome.io/v1/auth';
const requestBody = {
    email: 'pinghome@gmail.com',
    password: 'TestPassw0rd!'
};

axios.post(url, requestBody)
.then(response => {
    console.log(response.data);
})
.catch(error => {
    console.error(error);
});
ResponseThis section is used to view the possible HTTP response codes returned by the API. These codes indicate the status of a request, such as 201 (Created), 401 (Unauthorized), 409 (Conflict), or 422 (Unprocessable Entity).