Home · Guides

Send SMS from a website or a form

A form on your site can text you, or the customer, the moment it is sent. Your server makes one HTTP call to Otipi, and the SMS goes out from your business name.

At a glance

Call
POST /v1/messages from your server code
Works with
Node.js, PHP, Python, or any server that can send HTTP
No code
Make, Zapier or n8n with an HTTP step
Price
From 6 agorot an SMS, plans from ₪49 a month
Test mode
Free, no card: real test SMS to your own phone

Typical uses

A note to the owner about a new lead from the contact form, an order confirmation to the buyer, a reminder before an appointment, or a code to confirm the phone number typed in the form.

Call from the server, not the page

The key must stay secret, so the browser never calls Otipi directly. The form posts to your server or to a server function, and that code sends the SMS with the key kept in its settings.

Sites without code

On Wix, WordPress or another site builder, connect the form to an automation tool such as Make, Zapier or n8n, and add an HTTP step that calls /v1/messages. The same works for Google Forms or a sheet.

Check the number

An Israeli mobile number looks like 05XXXXXXXX; send it as +9725XXXXXXXX. If the number is wrong, the API answers with an error at once and the SMS is not counted.

Example

// A server route: text the owner when the contact form is sent (Node.js 18+)
const res = await fetch('https://otipi.co.il/v1/messages', {
  method: 'POST',
  headers: { Authorization: `Bearer ${process.env.OTIPI_KEY}`, 'Content-Type': 'application/json' },
  body: JSON.stringify({ channel: 'sms', to: '+972501234567', text: `New lead: ${form.name}, ${form.phone}` }),
});
if (!res.ok) console.error(await res.json());

Questions

Can the SMS go to the customer and to me?

Yes. Make two calls, one per number. Each SMS counts toward your plan.

Can I put the customer name in the text?

Yes. Your code builds the text, so it can hold the name, the order number or a link.

Will a bot that fills my form burn my plan?

Protect the form itself with a bot check. For phone codes, Otipi also limits how many codes one number gets an hour.

Try it in a minute

A free test key right away, no card. Test codes go to your own phone and email.

Get a test key Read the docs

More guides