Baileys Instance icon

Baileys Instance

Use the wa-instance API built on Baileys 7

Custom API Request → Execute

AI-generated

Summary

Execute an arbitrary HTTP request to a wa-instance API endpoint with customizable method, relative path, query parameters, body payload, and headers, using the credentials' base URL. Optionally ignore HTTP response errors and return them as JSON instead of failing.

Inputs

  • Method (required) — HTTP method for the request: DELETE, GET, PATCH, POST, or PUT.
  • Path (required) — Relative API path appended to the credential's base URL for the request.
  • Send Query Parameters — Toggle to include query parameters.
  • Query Parameters — Key-value pairs to send as query parameters if enabled.
  • Send Body — Toggle to include a JSON body payload.
  • JSON Body — A valid JSON string representing the request body if enabled.
  • Additional Headers — Custom HTTP headers as name-value pairs.
  • Ignore Response Code — If enabled, do not fail the node on HTTP errors but return error details as JSON.

Output shape

a single record

Returns the JSON response from the wa-instance API call. If 'Ignore Response Code' is true, HTTP errors return a JSON object with ok: false and error details instead of throwing an error.

Links

Discussion