Send POST Request

Web API

📘

Availability

This workflow action is available on our Enterprise plan for Incident Management. Please contact our Sales Team to upgrade to an account with this action.

Description

Sends a POST request to a given URL with given headers and body.

🚧

PagerDuty Events API

POST requests to the PagerDuty Events API are currently blocked from Incident Workflows.

Instructions

  1. If you have not done so already, please follow our instructions to Create an Incident Workflow.
  2. When you are prompted to add actions , select this action.
  3. Enter the following Inputs and then click Save. Continue following instructions to Publish the Workflow. When the action runs, you will see the Outputs listed below.

Inputs

NameDescription
Request URLEnter the URL to send the request to. Only HTTPS URLs are supported.
Authentication HeadersSelect a Workflow Integration or click New Web API Connection to establish a new one.
HeadersEnter a list of headers to include on the request, one per line. DO NOT INCLUDE SENSITIVE HEADERS, create a new Web API Credentials Connection above and use that instead. Ex: Content-Type: application/json
BodyThe body to attach to the request.

Outputs

NameDescription
Response Status CodeThe status code of the response.
Successful Status Code ResponseWhether or not the response status code indicates success (2XX).
Response BodyThe Body attached to the response.
JSON Response BodyThe response body parsed into a JSON object, if the content-type is application/json.
Response HeadersThe HTTP headers set in the response.
Response Time in MillisecondsThe time in milliseconds taken for a response to be sent to the request.
ResultValue that shows if the action was successful or not. Either "Success" or "Failed."
Result SummaryBrief description of what the action did or if it failed.
ErrorBrief description that is populated if the action failed.