SMS

SMS quickstart

Send your first Canadian SMS in under 5 minutes.

Authentication, API keys, webhook setup and signatures, rate limits, the SDK, the MCP server and the general error codes are on the Platform page.

Quickstart

  1. Create a free account, then open API Keys → Create key in the dashboard. The full key is shown once, right after you create it, so copy it then.
  2. Start with a test key: it works immediately, before any top-up, so you can send test messages and explore the API for free.
  3. Top up your balance with a card via Stripe. Live keys return 402 PAYMENT_REQUIRED until the first top-up.
  4. Verify your phone number as the account owner. A live send needs a verified owner phone.
  5. Buy a Canadian number to send from; a live send needs a number your account owns.
  6. Record CASL consent for each phone number you will message.
  7. Send your first message using the REST API.

Send your first message

With a key, a number and consent in place, one call sends the SMS. The Node.js SDK and the REST API take the same fields.

import { Honkio } from '@honkio/node'

const honkio = new Honkio(process.env.HONKIO_API_KEY)

// "from" is one of your HonkIO numbers; "to" is a real number you hold consent for
const { data, error } = await honkio.messages.send({
  from: '+1416XXXXXXX',
  to: '+1613XXXXXXX',
  body: 'Hello from HonkIO! 🇨🇦',
})
if (error) throw new Error(`${error.name}: ${error.message}`)
console.log(data.id, data.status)

See the SDK reference for a typed client with every resource and webhook verification.