Overview
This node performs HTTP POST requests to a specified URL with a JSON body and optional additional headers. It is useful for sending data to APIs or web services that accept JSON payloads, such as submitting form data, triggering webhooks, or interacting with RESTful endpoints.
Use Case Examples
- Sending a JSON payload to a webhook URL to trigger an external workflow.
- Posting data to a REST API endpoint to create or update resources.
Properties
| Name | Meaning |
|---|---|
| URL | The endpoint URL to which the HTTP POST request is sent. |
| JSON Body | The JSON payload to include in the body of the POST request. |
| Additional Headers | Optional HTTP headers to include in the request, specified as name-value pairs. |
Output
JSON
statusCode- HTTP status code returned by the API.headers- HTTP response headers returned by the API.body- The JSON-parsed response body from the API.
Dependencies
- Requires network access to the specified URL endpoint.
Troubleshooting
- Invalid JSON Body error occurs if the JSON Body input is not valid JSON. Ensure the JSON is correctly formatted.
- HTTP request failures may occur due to network issues, incorrect URL, or server errors. Verify the URL and network connectivity.
- If additional headers are incorrectly formatted or missing required values, the request may fail or behave unexpectedly.