\\\",\\n \\\"css_content\\\" : \\\".tweet-text{background-color:#fff2ac;background-image:linear-gradient(to right,#ffe359 0,#fff2ac 100%);font-weight:bolder;font-size:32px;font-family:Roboto,sans-serif;padding:4px}\\\",\\n \\\"generate_img_url\\\": true\\n}\",\"__typename\":\"OauthBody\"},\"bodyParams\":[],\"authorization\":{\"type\":null,\"basicUsername\":\"\",\"basicPassword\":\"\",\"bearerToken\":\"\",\"oauthAccessToken\":null,\"oauthRefreshToken\":null,\"oauthSignerUri\":null,\"__typename\":\"Authorization\"},\"extracts\":[],\"metadataExtracts\":[],\"cellParams\":[],\"tab\":\"Body\",\"__typename\":\"OauthReq\"},\"marketplaceContent\":null,\"integrationConnections\":{\"nodes\":[{\"id\":\"int_e9sByxM8\",\"slug\":\"convert-html-to-image-with-html-to-image-api-on-new-requests-from-http-webhook-api\",\"title\":\"Convert HTML to Image with HTML to Image API on New Requests from HTTP / Webhook API\",\"triggerKey\":\"http-new-requests\",\"triggerApp\":{\"id\":\"app_X7LhNG\",\"name\":\"HTTP / Webhook\",\"__typename\":\"App\"},\"actionKey\":\"html_to_image-convert-html-to-image\",\"actionApp\":{\"id\":\"app_dBhwjL\",\"name\":\"HTML to Image\",\"__typename\":\"App\"},\"__typename\":\"Integration\"},{\"id\":\"int_g2sZeG3V\",\"slug\":\"convert-html-to-pdf-with-html-to-image-api-on-new-requests-from-http-webhook-api\",\"title\":\"Convert HTML to PDF with HTML to Image API on New Requests from HTTP / Webhook API\",\"triggerKey\":\"http-new-requests\",\"triggerApp\":{\"id\":\"app_X7LhNG\",\"name\":\"HTTP / Webhook\",\"__typename\":\"App\"},\"actionKey\":\"html_to_image-convert-html-to-pdf\",\"actionApp\":{\"id\":\"app_dBhwjL\",\"name\":\"HTML to Image\",\"__typename\":\"App\"},\"__typename\":\"Integration\"},{\"id\":\"int_XespbMM8\",\"slug\":\"convert-url-to-image-with-html-to-image-api-on-new-requests-from-http-webhook-api\",\"title\":\"Convert URL to Image with HTML to Image API on New Requests from HTTP / Webhook API\",\"triggerKey\":\"http-new-requests\",\"triggerApp\":{\"id\":\"app_X7LhNG\",\"name\":\"HTTP / Webhook\",\"__typename\":\"App\"},\"actionKey\":\"html_to_image-convert-url-to-image\",\"actionApp\":{\"id\":\"app_dBhwjL\",\"name\":\"HTML to Image\",\"__typename\":\"App\"},\"__typename\":\"Integration\"},{\"id\":\"int_7vs4eyB0\",\"slug\":\"convert-url-to-pdf-with-html-to-image-api-on-new-requests-from-http-webhook-api\",\"title\":\"Convert URL to PDF with HTML to Image API on New Requests from HTTP / Webhook API\",\"triggerKey\":\"http-new-requests\",\"triggerApp\":{\"id\":\"app_X7LhNG\",\"name\":\"HTTP / Webhook\",\"__typename\":\"App\"},\"actionKey\":\"html_to_image-convert-url-to-pdf\",\"actionApp\":{\"id\":\"app_dBhwjL\",\"name\":\"HTML to Image\",\"__typename\":\"App\"},\"__typename\":\"Integration\"},{\"id\":\"int_LMsZOABe\",\"slug\":\"convert-html-to-image-with-html-to-image-api-on-new-requests-payload-only-from-http-webhook-api\",\"title\":\"Convert HTML to Image with HTML to Image API on New Requests (Payload Only) from HTTP / Webhook API\",\"triggerKey\":\"http-new-requests-payload-only\",\"triggerApp\":{\"id\":\"app_X7LhNG\",\"name\":\"HTTP / Webhook\",\"__typename\":\"App\"},\"actionKey\":\"html_to_image-convert-html-to-image\",\"actionApp\":{\"id\":\"app_dBhwjL\",\"name\":\"HTML to Image\",\"__typename\":\"App\"},\"__typename\":\"Integration\"},{\"id\":\"int_m8s9R6Ag\",\"slug\":\"convert-html-to-pdf-with-html-to-image-api-on-new-requests-payload-only-from-http-webhook-api\",\"title\":\"Convert HTML to PDF with HTML to Image API on New Requests (Payload Only) from HTTP / Webhook API\",\"triggerKey\":\"http-new-requests-payload-only\",\"triggerApp\":{\"id\":\"app_X7LhNG\",\"name\":\"HTTP / Webhook\",\"__typename\":\"App\"},\"actionKey\":\"html_to_image-convert-html-to-pdf\",\"actionApp\":{\"id\":\"app_dBhwjL\",\"name\":\"HTML to Image\",\"__typename\":\"App\"},\"__typename\":\"Integration\"},{\"id\":\"int_yqs5WDDB\",\"slug\":\"convert-url-to-image-with-html-to-image-api-on-new-requests-payload-only-from-http-webhook-api\",\"title\":\"Convert URL to Image with HTML to Image API on New Requests (Payload Only) from HTTP / Webhook API\",\"triggerKey\":\"http-new-requests-payload-only\",\"triggerApp\":{\"id\":\"app_X7LhNG\",\"name\":\"HTTP / Webhook\",\"__typename\":\"App\"},\"actionKey\":\"html_to_image-convert-url-to-image\",\"actionApp\":{\"id\":\"app_dBhwjL\",\"name\":\"HTML to Image\",\"__typename\":\"App\"},\"__typename\":\"Integration\"},{\"id\":\"int_OqsKgr74\",\"slug\":\"convert-url-to-pdf-with-html-to-image-api-on-new-requests-payload-only-from-http-webhook-api\",\"title\":\"Convert URL to PDF with HTML to Image API on New Requests (Payload Only) from HTTP / Webhook API\",\"triggerKey\":\"http-new-requests-payload-only\",\"triggerApp\":{\"id\":\"app_X7LhNG\",\"name\":\"HTTP / Webhook\",\"__typename\":\"App\"},\"actionKey\":\"html_to_image-convert-url-to-pdf\",\"actionApp\":{\"id\":\"app_dBhwjL\",\"name\":\"HTML to Image\",\"__typename\":\"App\"},\"__typename\":\"Integration\"},{\"id\":\"int_pQsOge6Z\",\"slug\":\"convert-html-to-image-with-html-to-image-api-on-new-event-when-the-content-of-the-url-changes-from-http-webhook-api\",\"title\":\"Convert HTML to Image with HTML to Image API on New event when the content of the URL changes. from HTTP / Webhook API\",\"triggerKey\":\"http-watch-url\",\"triggerApp\":{\"id\":\"app_X7LhNG\",\"name\":\"HTTP / Webhook\",\"__typename\":\"App\"},\"actionKey\":\"html_to_image-convert-html-to-image\",\"actionApp\":{\"id\":\"app_dBhwjL\",\"name\":\"HTML to Image\",\"__typename\":\"App\"},\"__typename\":\"Integration\"},{\"id\":\"int_OqsKgrLo\",\"slug\":\"convert-html-to-pdf-with-html-to-image-api-on-new-event-when-the-content-of-the-url-changes-from-http-webhook-api\",\"title\":\"Convert HTML to PDF with HTML to Image API on New event when the content of the URL changes. from HTTP / Webhook API\",\"triggerKey\":\"http-watch-url\",\"triggerApp\":{\"id\":\"app_X7LhNG\",\"name\":\"HTTP / Webhook\",\"__typename\":\"App\"},\"actionKey\":\"html_to_image-convert-html-to-pdf\",\"actionApp\":{\"id\":\"app_dBhwjL\",\"name\":\"HTML to Image\",\"__typename\":\"App\"},\"__typename\":\"Integration\"},{\"id\":\"int_ozsWQQW9\",\"slug\":\"convert-url-to-image-with-html-to-image-api-on-new-event-when-the-content-of-the-url-changes-from-http-webhook-api\",\"title\":\"Convert URL to Image with HTML to Image API on New event when the content of the URL changes. from HTTP / Webhook API\",\"triggerKey\":\"http-watch-url\",\"triggerApp\":{\"id\":\"app_X7LhNG\",\"name\":\"HTTP / Webhook\",\"__typename\":\"App\"},\"actionKey\":\"html_to_image-convert-url-to-image\",\"actionApp\":{\"id\":\"app_dBhwjL\",\"name\":\"HTML to Image\",\"__typename\":\"App\"},\"__typename\":\"Integration\"},{\"id\":\"int_6PsBLL38\",\"slug\":\"convert-url-to-pdf-with-html-to-image-api-on-new-event-when-the-content-of-the-url-changes-from-http-webhook-api\",\"title\":\"Convert URL to PDF with HTML to Image API on New event when the content of the URL changes. from HTTP / Webhook API\",\"triggerKey\":\"http-watch-url\",\"triggerApp\":{\"id\":\"app_X7LhNG\",\"name\":\"HTTP / Webhook\",\"__typename\":\"App\"},\"actionKey\":\"html_to_image-convert-url-to-pdf\",\"actionApp\":{\"id\":\"app_dBhwjL\",\"name\":\"HTML to Image\",\"__typename\":\"App\"},\"__typename\":\"Integration\"}],\"__typename\":\"IntegrationConnection\"}},\"otherApp\":{\"id\":\"app_X7LhNG\",\"name\":\"HTTP / Webhook\",\"nameSlug\":\"http\",\"description\":\"Get a unique URL where you can send HTTP or webhook requests\",\"appPrompts\":[{\"id\":\"8900\",\"label\":\"Webhook Responder\",\"prompt\":\"Create an agent that receives webhook events from any service, processes the payload, and returns a customized response. The agent should: 1) Set up an HTTP endpoint that accepts POST requests, 2) Parse the incoming JSON payload, 3) Extract specific fields from the payload, 4) Transform the data if needed, 5) Return a JSON response with a 200 status code and confirmation message. Include error handling for malformed requests.\",\"__typename\":\"AppPrompt\"},{\"id\":\"8901\",\"label\":\"API Aggregator\",\"prompt\":\"Create an agent that aggregates data from multiple external APIs and returns a combined response. The agent should: 1) Set up an HTTP endpoint that accepts GET requests with query parameters, 2) Make parallel requests to multiple third-party APIs based on the input parameters, 3) Wait for all responses, 4) Combine and transform the data from all APIs into a single unified format, 5) Return the aggregated data as a JSON response. Include rate limiting and error handling.\",\"__typename\":\"AppPrompt\"},{\"id\":\"8902\",\"label\":\"Scheduled API Poller\",\"prompt\":\"Create an agent that periodically polls an external API for new data and processes the results. The agent should: 1) Run on a schedule (every hour), 2) Send an HTTP GET request to a specified API endpoint, 3) Compare the response with previously stored data to identify new items, 4) Process only the new data items, 5) Store the latest response for future comparison. Include error handling for API failures and options to customize the polling interval.\",\"__typename\":\"AppPrompt\"},{\"id\":\"8903\",\"label\":\"Form Submission Handler\",\"prompt\":\"Create an agent that processes form submissions from a website and stores the data. The agent should: 1) Set up an HTTP endpoint that accepts POST requests with form data, 2) Validate the incoming form fields (required fields, email format, etc.), 3) Clean and normalize the data, 4) Store the submission in a database or spreadsheet, 5) Send a confirmation email to the submitter, 6) Return a success response that can redirect the user to a thank you page. Include CORS configuration and security measures.\",\"__typename\":\"AppPrompt\"},{\"id\":\"8904\",\"label\":\"Webhook Broadcaster\",\"prompt\":\"Create an agent that receives a webhook and forwards the payload to multiple destinations. The agent should: 1) Set up an HTTP endpoint that accepts POST requests, 2) Parse the incoming payload, 3) Optionally transform the data for each destination, 4) Send the payload to multiple configured endpoints (other webhooks, APIs, etc.) in parallel, 5) Collect all delivery statuses, 6) Return a summary response with the status of each delivery. Include retry logic for failed deliveries.\",\"__typename\":\"AppPrompt\"},{\"id\":\"8905\",\"label\":\"API Authentication Proxy\",\"prompt\":\"Create an agent that acts as a secure proxy for a third-party API, handling authentication and rate limiting. The agent should: 1) Set up an HTTP endpoint that accepts requests with simplified authentication, 2) Validate the incoming request and authenticate the client, 3) Transform the request as needed and add the proper authentication headers/tokens for the third-party API, 4) Forward the request to the external API, 5) Return the API response to the original caller. Include rate limiting to prevent abuse and cache common responses.\",\"__typename\":\"AppPrompt\"},{\"id\":\"8906\",\"label\":\"Webhook Debugger\",\"prompt\":\"Create an agent that helps debug webhook payloads by logging and visualizing incoming requests. The agent should: 1) Set up an HTTP endpoint that accepts any type of request (GET, POST, etc.), 2) Log the complete request including headers, query parameters, and body, 3) Store the request history with timestamps, 4) Provide a response that includes a unique ID for the request, 5) Optionally notify the developer of new requests via email or other channels. Include functionality to replay captured requests for testing.\",\"__typename\":\"AppPrompt\"},{\"id\":\"8907\",\"label\":\"API Status Monitor\",\"prompt\":\"Create an agent that monitors the status of multiple APIs and alerts when issues are detected. The agent should: 1) Run on a schedule (every 5 minutes), 2) Send HTTP requests to a list of API health endpoints, 3) Measure response times and validate expected responses, 4) Detect downtime or performance degradation, 5) Send alerts via email, SMS, or other channels when problems are found, 6) Maintain a history of uptime and performance metrics. Include configurable thresholds for alerts.\",\"__typename\":\"AppPrompt\"}],\"authType\":null,\"customFieldsDescriptionMd\":\"\",\"oauthScopes\":[],\"customFields\":[],\"oauthReqsByType\":{\"requestToken\":{\"httpMethod\":\"POST\",\"url\":\"\",\"urlParams\":[],\"headerParams\":[],\"body\":null,\"bodyParams\":[],\"authorization\":{\"type\":\"OAuth\",\"basicUsername\":\"\",\"basicPassword\":\"\",\"bearerToken\":\"\",\"oauthAccessToken\":null,\"oauthRefreshToken\":null,\"oauthSignerUri\":null,\"__typename\":\"Authorization\"},\"extracts\":[],\"metadataExtracts\":null,\"cellParams\":null,\"tab\":null,\"__typename\":\"OauthReq\"},\"authorization\":{\"httpMethod\":\"GET\",\"url\":\"\",\"urlParams\":[{\"key\":\"client_id\",\"value\":\"{{oauth.client_id}}\",\"__typename\":\"Kv\"},{\"key\":\"redirect_uri\",\"value\":\"{{oauth.redirect_uri}}\",\"__typename\":\"Kv\"},{\"key\":\"state\",\"value\":\"{{oauth.state}}\",\"__typename\":\"Kv\"},{\"key\":\"response_type\",\"value\":\"code\",\"__typename\":\"Kv\"},{\"key\":\"scope\",\"value\":\"{{oauth.space_separated_scopes}}\",\"__typename\":\"Kv\"}],\"headerParams\":[],\"body\":null,\"bodyParams\":[],\"authorization\":{\"type\":null,\"basicUsername\":\"\",\"basicPassword\":\"\",\"bearerToken\":\"\",\"oauthAccessToken\":null,\"oauthRefreshToken\":null,\"oauthSignerUri\":null,\"__typename\":\"Authorization\"},\"extracts\":[],\"metadataExtracts\":null,\"cellParams\":null,\"tab\":null,\"__typename\":\"OauthReq\"},\"accessToken\":{\"httpMethod\":\"POST\",\"url\":\"\",\"urlParams\":[],\"headerParams\":[{\"key\":\"content-type\",\"value\":\"application/x-www-form-urlencoded\",\"__typename\":\"Kv\"},{\"key\":\"accept\",\"value\":\"application/json\",\"__typename\":\"Kv\"}],\"body\":null,\"bodyParams\":[{\"key\":\"client_id\",\"value\":\"{{oauth.client_id}}\",\"__typename\":\"Kv\"},{\"key\":\"client_secret\",\"value\":\"{{oauth.client_secret}}\",\"__typename\":\"Kv\"},{\"key\":\"redirect_uri\",\"value\":\"{{oauth.redirect_uri}}\",\"__typename\":\"Kv\"},{\"key\":\"grant_type\",\"value\":\"authorization_code\",\"__typename\":\"Kv\"},{\"key\":\"code\",\"value\":\"{{oauth.code}}\",\"__typename\":\"Kv\"}],\"authorization\":{\"type\":null,\"basicUsername\":\"\",\"basicPassword\":\"\",\"bearerToken\":\"\",\"oauthAccessToken\":null,\"oauthRefreshToken\":null,\"oauthSignerUri\":null,\"__typename\":\"Authorization\"},\"extracts\":[],\"metadataExtracts\":null,\"cellParams\":null,\"tab\":null,\"__typename\":\"OauthReq\"},\"refreshToken\":{\"httpMethod\":\"POST\",\"url\":\"\",\"urlParams\":[],\"headerParams\":[{\"key\":\"content-type\",\"value\":\"application/x-www-form-urlencoded\",\"__typename\":\"Kv\"},{\"key\":\"accept\",\"value\":\"application/json\",\"__typename\":\"Kv\"}],\"body\":null,\"bodyParams\":[{\"key\":\"client_id\",\"value\":\"{{oauth.client_id}}\",\"__typename\":\"Kv\"},{\"key\":\"client_secret\",\"value\":\"{{oauth.client_secret}}\",\"__typename\":\"Kv\"},{\"key\":\"grant_type\",\"value\":\"refresh_token\",\"__typename\":\"Kv\"},{\"key\":\"refresh_token\",\"value\":\"{{oauth.refresh_token}}\",\"__typename\":\"Kv\"}],\"authorization\":{\"type\":null,\"basicUsername\":\"\",\"basicPassword\":\"\",\"bearerToken\":\"\",\"oauthAccessToken\":null,\"oauthRefreshToken\":null,\"oauthSignerUri\":null,\"__typename\":\"Authorization\"},\"extracts\":[],\"metadataExtracts\":null,\"cellParams\":null,\"tab\":null,\"__typename\":\"OauthReq\"},\"__typename\":\"OauthReqsByType\"},\"__typename\":\"App\",\"registryComponents\":[{\"id\":\"sc_Zrirvaoe\",\"key\":\"http-new-requests\",\"name\":\"New Requests\",\"description\":\"Get a URL and emit the full HTTP event on every request (including headers and query parameters). You can also configure the HTTP response code, body, and more.\",\"type\":\"SOURCE\",\"__typename\":\"SavedComponent\"},{\"id\":\"sc_EgirgYEl\",\"key\":\"http-new-requests-payload-only\",\"name\":\"New Requests (Payload Only)\",\"description\":\"Get a URL and emit the HTTP body as an event on every request\",\"type\":\"SOURCE\",\"__typename\":\"SavedComponent\"},{\"id\":\"sc_bnikeZ05\",\"key\":\"http-custom-request\",\"name\":\"Send any HTTP Request\",\"description\":\"Send an HTTP request using any method and URL. Optionally configure query string parameters, headers, and basic auth.\",\"type\":\"ACTION\",\"__typename\":\"SavedComponent\"},{\"id\":\"sc_GBiJBype\",\"key\":\"http-get-request\",\"name\":\"Send GET Request\",\"description\":\"Send an HTTP GET request to any URL. Optionally configure query string parameters, headers and basic auth.\",\"type\":\"ACTION\",\"__typename\":\"SavedComponent\"},{\"id\":\"sc_k3ixzQDa\",\"key\":\"http-post-request\",\"name\":\"Send POST Request\",\"description\":\"Send an HTTP POST request to any URL. Optionally configure query string parameters, headers and basic auth.\",\"type\":\"ACTION\",\"__typename\":\"SavedComponent\"},{\"id\":\"sc_r1ilAroE\",\"key\":\"http-put-request\",\"name\":\"Send PUT Request\",\"description\":\"Send an HTTP PUT request to any URL. Optionally configure query string parameters, headers and basic auth.\",\"type\":\"ACTION\",\"__typename\":\"SavedComponent\"},{\"id\":\"sc_Q2iBRweq\",\"key\":\"http-watch-url\",\"name\":\"New event when the content of the URL changes.\",\"description\":\"Emit new event when the content of the URL changes.\",\"type\":\"SOURCE\",\"__typename\":\"SavedComponent\"},{\"id\":\"sc_L4iqRbLe\",\"key\":\"http-return-http-response\",\"name\":\"Return HTTP Response\",\"description\":\"Use with an HTTP trigger that uses \\\"Return a custom response from your workflow\\\" as its `HTTP Response`\",\"type\":\"ACTION\",\"__typename\":\"SavedComponent\"},{\"id\":\"sc_A3ip30Nx\",\"key\":\"http-validate-webhook-auth\",\"name\":\"Validate Webhook Auth\",\"description\":\"Require authorization for incoming HTTP webhook requests. Make sure to configure the HTTP trigger to \\\"Return a custom response from your workflow\\\".\",\"type\":\"ACTION\",\"__typename\":\"SavedComponent\"},{\"id\":\"sc_v4ixNEqA\",\"key\":\"http-verify-hmac-signature\",\"name\":\"Verify HMAC Signature\",\"description\":\"Validate HMAC signature for incoming HTTP webhook requests. Make sure to configure the HTTP trigger to \\\"Return a custom response from your workflow\\\".\",\"type\":\"ACTION\",\"__typename\":\"SavedComponent\"}],\"componentCodeScaffoldRaw\":\"// To use any npm package on Pipedream, just import it\\nimport axios from \\\"axios\\\"\\n\\nexport default defineComponent({\\n async run({ steps, $ }) {\\n const { data } = await axios({\\n method: \\\"GET\\\",\\n url: \\\"https://pokeapi.co/api/v2/pokemon/charizard\\\",\\n })\\n return data.species\\n },\\n})\\n\",\"testRequest\":{\"httpMethod\":\"GET\",\"url\":\"https://pokeapi.co/api/v2/pokemon/charizard\",\"urlParams\":[],\"headerParams\":[],\"body\":null,\"bodyParams\":[],\"authorization\":{\"type\":null,\"basicUsername\":\"\",\"basicPassword\":\"\",\"bearerToken\":\"\",\"oauthAccessToken\":null,\"oauthRefreshToken\":null,\"oauthSignerUri\":null,\"__typename\":\"Authorization\"},\"extracts\":[{\"field\":\"uid\",\"path\":\"id\",\"optional\":null,\"__typename\":\"Extract\"},{\"field\":\"info\",\"path\":\"email\",\"optional\":null,\"__typename\":\"Extract\"}],\"metadataExtracts\":[],\"cellParams\":[],\"tab\":null,\"__typename\":\"OauthReq\"},\"marketplaceContent\":{\"id\":\"14\",\"markdown\":\"# Overview\\n\\nBuild, test, and send HTTP requests without code using your Pipedream workflows. The HTTP / Webhook action is a tool to build HTTP requests with a Postman-like graphical interface.\\n\\n\\n\\n## Point and click HTTP requests\\n\\nDefine the target URL, HTTP verb, headers, query parameters, and payload body without writing custom code.\\n\\n\\n\\n[Here's an example workflow that uses the HTTP / Webhook action to send an authenticated API request to OpenAI.](https://pipedream.com/new?h=tch_v4fzLp)\\n\\n## Focus on integrating, not authenticating\\n\\nThis action can also use your connected accounts with third-party APIs. Selecting an integrated app will automatically update the request’s headers to authenticate with the app properly, and even inject your token dynamically. \\n\\n\\n\\nPipedream integrates with thousands of APIs, but if you can’t find a Pipedream integration simply use [Environment Variables](https://pipedream.com/docs/environment-variables) in your request headers to authenticate with.\\n\\n## Compatible with no code actions or Node.js and Python\\n\\nThe HTTP/Webhook action exports HTTP response data for use in subsequent workflow steps, enabling easy data transformation, further API calls, database storage, and more.\\n\\nResponse data is available for both coded (Node.js, Python) and no-code steps within your workflow.\\n\\n\\n\\n# Getting Started\\n\\nThe HTTP / Webhook action is flexible. You can use it with your [Pipedream connected accounts](https://pipedream.com/docs/connected-accounts), import cURL commands, or manually define authentication headers with API keys stored in [Environment Variables](https://pipedream.com/docs/environment-variables).\\n\\n## Connecting to an API with a Pipedream connected account\\n\\nWe recommend choosing this approach to authenticate your HTTP requests. Pipedream will manage your connected accounts, even rotating OAuth tokens, and you can focus on implementing the payload details.\\n\\nStart by adding the HTTP/Webhook action as a new step in your workflow.\\n\\n\\n\\nThen select Use app to search for the API you’d like to send this HTTP request to. Then use 'Select App' to find and choose the API for your HTTP request:\\n\\n\\n\\nThen connect your account, if the app has OAuth then Pipedream will initiate the OAuth sequence and automatically rotate your tokens for you.\\n\\nAfter connecting your account, the URL, verb, and headers update to enable a valid authenticated request.\\n\\nThen click **Test** to send the HTTP request:\\n\\n\\n\\n\\nIn the **Exports** tab, you’ll see the data the API responds with. You can click Copy Path next to an attribute to copy the path to that specific variable to your clipboard for easy pasting in other steps.\\n\\n\\n\\n### Connecting to an API with an imported cURL command\\n\\nAPI documentation sometimes include cURL commands as examples. The HTTP request builder action can recognize cURL and update your request configuration to match.\\n\\nFor example, the OpenAI documentation includes an example cURL command to send a prompt to ChatGPT:\\n\\n```bash\\ncurl https://api.openai.com/v1/chat/completions \\\\\\n -H \\\"Content-Type: application/json\\\" \\\\\\n -H \\\"Authorization: Bearer $OPENAI_API_KEY\\\" \\\\\\n -d '{\\n \\\"model\\\": \\\"gpt-3.5-turbo\\\",\\n \\\"messages\\\": [\\n {\\n \\\"role\\\": \\\"system\\\",\\n \\\"content\\\": \\\"You are a helpful assistant.\\\"\\n },\\n {\\n \\\"role\\\": \\\"user\\\",\\n \\\"content\\\": \\\"Hello!\\\"\\n }\\n ]\\n }'\\n```\\n\\nConfigure the HTTP request to match this cURL command by clicking *Import cURL*:\\n\\n\\n\\nThen paste in the cURL command and click *Import*:\\n\\n\\n\\nThis will configure the HTTP request to match the details of the cURL statement:\\n\\n\\n\\nDon't forget to inject your API keys into the headers. We recommend using [Environment Variables](https://pipedream.com/docs/environment-variables) to store your non-Pipedream managed account API keys.\\n\\nFor example, storing your OpenAI API key as `OPEN_API_KEY` you can then reference it in the `Authorization` header like so:\\n\\n```\\n{{ process.env[\\\"OPEN_API_KEY\\\"] }}\\n```\\n\\nThen your key will be injected into the request.\\n\\n# Troubleshooting\\n\\nYou may run into issues integrating with other APIs. Typically these are errors thrown by the API you’re attempting to integrate with.\\n\\nCommon HTTP status codes provide a standard, but implementations may vary. Please check the API documentation for the service or app you’re integrating with for more details.\\n\\nBelow are a list of common errors when sending HTTP requests to 3rd party APIs:\\n\\n## Resource Not Found (404)\\n\\nThis means that the API request successfully authenticated, but the resource you’re attempting to retrieve or act on doesn’t exist.\\n\\nFor example, if you’re attempting to update a Google Sheet but that sheet has been deleted, then you’ll see a 404 HTTP status code.\\n\\n## Method not allowed (405)\\n\\nThis error message means that you attempted to access an endpoint but the HTTP verb the request is using isn’t supported.\\n\\nFor example, you might have sent a `GET` request instead of a `POST` request or vice versa. This error is usually fixed by double checking that the HTTP action the request is configured with matches what the endpoint supports.\\n\\n## Invalid Request (422)\\n\\nThis error indicates the request's payload lacks data or contains invalid data.\\n\\nUsually the API’s response will give you a list of errors that give more details.\\n\\nFor example, if you attempt to create a Google Calendar event, but the `start_at` date is **after** the `end_at` date, then the API will return a 422 error because you can’t create an event that ends before it starts.\\n\\nIf this error happens only intermittently, it could mean that downstream data is missing or occasionally produces invalid payloads. You’ll need to select the broken use case in the builder, and test it to find the culprit.\\n\\n## Rate limited (429)\\n\\nAPIs typically implement rate limits. A rate limit defines how many times you’re allowed to send requests to the API within a specific time frame.\\n\\nExceeding this limit prompts the API to respond with a 429 status code and reject the requests.\\n\\nYou can use Concurrency and Rate Limiting controls within your Pipedream workflow settings to respect these 3rd party API limits, and you can also enable Automatic Retries to attempt the request again.\\n\\n## Not Authorized or Forbidden (401)\\n\\nThis error means that either your request isn’t authentication properly, meaning that your API token is missing or is in the incorrect header; or potentially it means that your API key is valid but it doesn’t have the permissions required to access that resource.\\n\\nFor example, you might see this error if your API key is missing a character, or is incorrectly formatted in the request.\\n\\nA common cause is omitting 'Bearer' or the space after it in the **`Authorization`** header: **`Bearer ${your API key here}`**.\\n\\nAn authorization error can happen if you attempt to modify a resource your account on that service doesn’t have permission to access.\\n\\nFor example, modifying a Google Sheet not shared with your Google Drive account will result in a permissions error.\\n\\n## Internal Server Error (50x)\\n\\nThis means that the API encountered a fatal error and it wasn’t able to perform your request. It could be that this service is having an outage, or there’s a specific issue with this particular resource you’re attempting to access or modify.\\n\\nYour request might be configured correctly, and your authentication headers properly set, but the issue is within the 3rd party’s API. We recommend contacting their customer support for more details.\\n\\nYou can also enable Automatic Retries on your workflow to automatically retry failed requests in case of an intermittent outage.\\n\",\"__typename\":\"MarketplaceContent\"}}}","hasNext":false}}
with HTML to Image and HTTP / Webhook?
Get a URL and emit the full HTTP event on every request (including headers and query parameters). You can also configure the HTTP response code, body, and more.
Get a URL and emit the HTTP body as an event on every request
Emit new event when the content of the URL changes.
Create an image from HTML. See the documentation
Create a PDF file from HTML. See the documentation
Capture a screenshot from a URL. See the documentation
Send an HTTP request using any method and URL. Optionally configure query string parameters, headers, and basic auth.
Create a PDF from a URL. See the documentation
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
html_to_image: {
type: "app",
app: "html_to_image",
}
},
async run({steps, $}) {
const data = {
"html_content" : "<div class=\"mt-4 p-4 text-center\"style=width:500px><span class=\"mb-4 tweet-text\">This is Little Bear. He tolerates baths because he knows how phenomenal his floof will appear afterwards. 13/10</span><div class=\"mt-2 p-4\"><img class=\"mt-4 border rounded-circle shadow\"src=https://docs.htmlcsstoimage.com/assets/images/dog.jpg width=100px></div><h4 class=mt-2>WeRateDogs</h4><span class=text-muted>@dog_rates</span></div><link href=https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css rel=stylesheet crossorigin=anonymous integrity=sha384-9aIt2nRpC12Uk9gS9baDl411NQApFmC26EwAOH8WgZl5MYYxFfc+NcPb1dKGj7Sk><link href=\"https://fonts.googleapis.com/css2?family=Roboto:wght@700\"rel=stylesheet>",
"css_content" : ".tweet-text{background-color:#fff2ac;background-image:linear-gradient(to right,#ffe359 0,#fff2ac 100%);font-weight:bolder;font-size:32px;font-family:Roboto,sans-serif;padding:4px}",
"generate_img_url": true
}
return await axios($, {
method: "post",
url: `https://api.htmlcsstoimg.com/api/v1/generateImage`,
headers: {
"CLIENT-API-KEY": `${this.html_to_image.$auth.api_key}`,
},
data,
})
},
})
Build, test, and send HTTP requests without code using your Pipedream workflows. The HTTP / Webhook action is a tool to build HTTP requests with a Postman-like graphical interface.
An interface for configuring an HTTP request within Pipedream's workflow system. The current selection is a GET request with fields for the request URL, authorization type (set to 'None' with a note explaining "This request does not use authorization"), parameters, headers (with a count of 1, though the detail is not visible), and body. Below the main configuration area is an option to "Include Response Headers," and a button labeled "Configure to test." The overall layout suggests a user-friendly, no-code approach to setting up custom HTTP requests.
Define the target URL, HTTP verb, headers, query parameters, and payload body without writing custom code.
A screenshot of Pipedream's HTTP Request Configuration interface with a GET request type selected. The request URL is set to 'https://api.openai.com/v1/models'. The 'Auth' tab is highlighted, indicating that authentication is required for this request. In the headers section, there are two headers configured: 'User-Agent' is set to 'pipedream/1', and 'Authorization' is set to 'Bearer {{openai_api_key}}', showing how the OpenAI account's API key is dynamically inserted into the headers to handle authentication automatically.
This action can also use your connected accounts with third-party APIs. Selecting an integrated app will automatically update the request’s headers to authenticate with the app properly, and even inject your token dynamically.
This GIF depicts the process of selecting an application within Pipedream's HTTP Request Builder. A user hovers the cursor over the 'Auth' tab and clicks on a dropdown menu labeled 'Authorization Type', then scrolls through a list of applications to choose from for authorization purposes. The interface provides a streamlined and intuitive method for users to authenticate their HTTP requests by selecting the relevant app in the configuration settings.
Pipedream integrates with thousands of APIs, but if you can’t find a Pipedream integration simply use Environment Variables in your request headers to authenticate with.
The HTTP/Webhook action exports HTTP response data for use in subsequent workflow steps, enabling easy data transformation, further API calls, database storage, and more.
Response data is available for both coded (Node.js, Python) and no-code steps within your workflow.
An image showing the Pipedream interface where the HTTP Webhook action has returned response data as a step export. The interface highlights a structured view of the returned data with collapsible sections. We can see 'steps.custom_request1' expanded to show 'return_value' which is an object containing a 'list'. Inside the list, an item 'data' is expanded to reveal an element with an 'id' of 'whisper-1', indicating a model created by and owned by 'openai-internal'. Options to 'Copy Path' and 'Copy Value' are available for easy access to the data points.
// To use any npm package on Pipedream, just import it
import axios from "axios"
export default defineComponent({
async run({ steps, $ }) {
const { data } = await axios({
method: "GET",
url: "https://pokeapi.co/api/v2/pokemon/charizard",
})
return data.species
},
})