API Reference

POST /send-phone-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 your phone, send a POST to:

const axios = require('axios');

async function sendPhoneCode() {
    const baseUrl = 'https://whitelabel-sandbox.delbank.com.br/v1/customers/send-phone-code';
    const phoneNumber = '79900000000';

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

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

sendPhoneCode();

Here you can find 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-phone-code/