API Reference
Log In

POST /send-email-code

To make the request to /customers and create the account creation request, your application must first verify the customer's phone number and email.

To verify the code, you must first send the verification code.

To send the verification code to email, send a POST to:

const axios = require('axios');

async function sendEmailCode() {
    const baseUrl = 'https://whitelabel-sandbox.delbank.com.br/v1/customers/send-email-code';
    const emailAddress = '[email protected]';

    try {
        const response = await axios.post(baseUrl, { email: emailAddress });

        console.log(response.data);
    } catch (error) {
        console.error(error);
    }
}

sendEmailCode();

Here you can see a practical example of how to use the method described above: https://github.com/DelbankDev/publico-api/tree/main/receitas/criacao-conta-pf-whitelabel/send-email-code/