How to execute a Curl command within a Zapier Webhook

I’m looking for guidance on how to execute a specific Curl command using a Webhook in Zapier. I’m unsure about the correct way to format this for the Webhook. Would it be more effective to implement this as a separate Code Zap instead?

const webhookUrl = 'https://api.zoom.us/v2/users';
const accessToken = 'your_access_token_here';

fetch(webhookUrl + '?access_token=' + accessToken, {
    method: 'POST',
    headers: {
        'Accept': 'application/json',
        'Content-Type': 'application/json'
    },
    body: JSON.stringify({
        action: 'create',
        user_info: {
            email: '[email protected]',
            type: 1,
            first_name: 'Chris',
            last_name: 'G',
            password: 'Password123'
        }
    })
})
.then(response => response.json())
.then(data => console.log(data));

Using a Webhook by Zapier to send a Curl command can indeed be tricky if you’re more comfortable using Curl commands directly. However, Zapier’s Webhooks are fairly robust for simple POST requests. You just need to make sure you configure the Webhook Zap with the appropriate method, such as POST, and accurately format the JSON payload within the Zap setup interface. Additionally, ensure inputs are correctly mapped, particularly if the data includes sensitive information like an access token, which should be securely handled. If you continue to encounter issues, using a Code Zap with JavaScript, as you’re doing, might offer you more control for complex requests.