HTTP RECIPE

n8n

Use Gravity SMS in n8n workflows with the built-in HTTP Request node (send) and Webhook node (receive). A native n8n node is not yet available.

Prerequisites

Send an SMS

Add an HTTP Request node with:

  • Method: POST
  • URL: https://smsgateway-api.onrender.com/v1/sms/send
  • Authentication: Header Auth (or send the header manually)
  • Header: Authorization: Bearer YOUR_API_KEY
  • Body type: JSON
JSON body
{
"to": "+15551234567",
"from": "+15559876543",
"body": "Hello from n8n"
}

Use n8n expressions ({{ $json.field }}) to wire upstream fields into the JSON values.

Trigger a workflow on inbound SMS

  1. Add a Webhook node as the workflow trigger.
  2. Set HTTP Method to POST and copy the Production URL (or Test URL while you're developing).
  3. Paste the URL into your Gravity SMS app's Webhook URL field.
  4. Activate the workflow. Send a test SMS to one of your RingCentral numbers from another phone. The webhook fires and inbound fields are available via $json.body, $json.from, etc.

Full payload shape: Generic Webhook Recipe.

Consent (TCPA / similar) is your responsibility
Verify each recipient has opted in before your workflow sends. "Trigger on every new record" patterns are the #1 way these rules get violated.

Related