Adding a Request Body to a Monitor
When you monitor a POST, PUT, or PATCH endpoint, you may need to send a request body for the endpoint to respond correctly. This article explains how to configure a request body on a monitor.
When You Need a Request Body
Most health check endpoints don't require a body — a simple GET or POST with no body is enough to verify the endpoint is up. You need a request body when:
- The endpoint returns an error (400, 422) without a specific payload
- You're monitoring an API that validates input before processing
- The endpoint logic depends on request data to reach the code path you want to verify
Adding a Body During Monitor Creation
- Open the New Monitor form (Monitors → New Monitor).
- Set the HTTP Method to POST (or PUT/PATCH).
- Scroll to the Advanced section and look for the Request Body field.
- Enter the body content.
- Set the Content-Type header to match the body format (e.g.,
application/json).
- Complete the form and click Create Monitor.
Adding a Body to an Existing Monitor
- Go to Monitors and click the monitor to edit.
- Click Edit.
- Scroll to Request Body.
- Enter the body and confirm the Content-Type header is set correctly.
- Click Save.
Example: JSON Body
If the endpoint expects a JSON payload:
Request Body:
{
"action": "health_check",
"source": "pulseapi"
}
Content-Type Header:
Content-Type: application/json
Example: Form Data
If the endpoint expects application/x-www-form-urlencoded (HTML form submission format):
Request Body:
action=health_check&source=pulseapi
Content-Type Header:
Content-Type: application/x-www-form-urlencoded
Related Articles
Still have questions? Contact support.
Related Articles
Adding Request Headers to a Monitor
Some endpoints require specific HTTP headers to respond correctly — for example, an Authorization header for authenticated endpoints or a Content-Type header when sending JSON. This article explains how to add custom headers to a monitor. Adding ...
Creating a Monitor
This article explains how to add a new monitor (endpoint) to PulseAPI. After completing these steps, PulseAPI will begin checking the URL on your configured schedule and alert you if it goes down. Prerequisites: You must be a team Owner, Admin, or ...
Monitor Settings Reference
This article describes every field in the monitor create/edit form. Use it as a reference when configuring a monitor or troubleshooting unexpected behavior. Basic Settings Name A label for the monitor. Appears in the dashboard, incident ...
HTTP Methods Explained
When you create a monitor, you choose which HTTP method PulseAPI uses for each check. This article explains the available methods and when to use each one for monitoring. The Methods GET Use for: Most health check and status endpoints. GET retrieves ...
Authentication Options for Monitors
If the endpoint you want to monitor requires authentication, PulseAPI needs to send credentials with each check. This article explains the supported authentication methods and how to configure them. Option 1: Basic Authentication Basic auth sends a ...