Account Confirmation
This endpoint allows you to confirm your account by entering the confirmation code that was sent to your email address during the sign up process. To complete the confirmation, provide your confirmation_code along with youremail. Once the information is verified, the API will update your account status to confirm your identity. This final step activates your account, granting you access to all features and services associated with it. If the confirmation code is invalid or expired, an error message will be returned, prompting you to request a new code.
Request Body Parameters
  • email string
    The user's email address.
  • confirmation_code string
JavaScript
Response codes
const axios = require('axios');

const url = 'https://auth.api.pinghome.io/v1/account';
const requestBody = {
    email: 'pinghome@gmail.com',
    confirmation_code: '876112',
    }
};

axios.patch(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).