To get lead data or any data from your site you need to create an automation with a Webhook trigger.
- Visit redbeltgym.com.
- Sign in to your account.
- Click Automation in the left-side menu.

- Click + Create new.

- Click Add trigger.

- Select Webhook (Trigger from external apps).

- The webhook settings open. Click Copy to copy the Webhook URL. To open these settings again later, click the Webhook trigger in the builder.

- Optional: click View dummy payload to see an example request body.

- Send a POST request to this Webhook URL with the required data (first name, last name, email, and phone). Click Test your request to check that your integration works.
- Click Save.

- Add at least one action (for example, Tags or SMS), then click Publish. Click Save as draft to finish later.

Do not delete the Webhook and ensure you use the RBG WP Plugin or use your custom script to send lead data by POST request.
Request Body (JSON):
{
"firstName": "John",
"lastName": "Doe",
"email": "[email protected]",
"phone": "9876540000"
}
Validation Rules:
firstName → required, string
lastName → required, string
email → required, valid email format
phone → required, valid phone number
:point_right: If any field is missing or invalid → API should return 400 Bad RequestImportant Notes
- Content-Type must be: application/json
- All fields are mandatory
- Do not send empty strings ("")
- Ensure proper email & phone format
Example: Using Fetch (JavaScript)
fetch(Endpoint: webhook URL, {
method: "POST",
headers: {
"Content-Type": "application/json",
},
body: JSON.stringify({
firstName: "John",
lastName: "Doe",
email: "[email protected]",
phone: "9876543210",
}),
}).then((res) => res.json())
.then((data) => console.log(data))
.catch((err) => console.error(err));
Expected Success Response
{
"success": true,
"message": "Execution successfully"
}Summary
- Method → POST
- Endpoint → Red belt gym webhook url
- Body → JSON with 4 required fields
- Response → success or validation error