How can I make a post request to API after a user signs up?

Hi @FreshPineapples,

I suggest using a Post-User Registration Action to make an Axios request to your backend API. Below is an example:

exports.onExecutePostUserRegistration = async (event, api) => {
  const axios = require('axios');
  
  const url = 'https://YOUR_URL';
  const options = {
    headers: {
      'Content-Type': 'application/json'
    }
  };
  const data = {
    username: event.user.username, 
    email: event.user.email
  };
  var response = await axios.post(url, data, options);
  console.log(response.data);
};

See the following resources for more details:

Let me know if you have any questions.

Thanks,
Rueben