Talky home

Developer docs

Send texts, one-time passcodes and number lookups from your own code with one REST API. Every request is JSON over HTTPS to https://api.talky.ca/api/v1/.

On this page

Getting started

  1. Create a free account. New accounts get 250 free texts.
  2. Top up your balance from $1 (USD) on the Billing page when you need more.
  3. Create an API key on the API Keys page of your dashboard.

Authentication

Send your API key in the Authorization header. The secret is shown only once, when you create the key. Each key has scopes: tick send to send texts, messages:read (or send) to check delivery status, otp (or send) for one-time passcodes, and hlr:lookup for number lookups.

Authorization: ApiKey tk_AbCd1234.your-secret

Send a text

POST/messaging/send/

curl -X POST https://api.talky.ca/api/v1/messaging/send/ \
  -H "Authorization: ApiKey tk_AbCd1234.your-secret" \
  -H "Content-Type: application/json" \
  -d '{"recipient": "+14165551234", "content": "Your order has shipped."}'
FieldRequiredNotes
recipientYesPhone number with country code, e.g. +14165551234.
contentYesUp to 918 characters. Long texts go out in parts (segments), each charged: 160 characters fit in one, 70 if the text has emoji or non-Latin letters. Try a text in the price estimator.
message_typeNotransactional (default), promotional, otp or notification. Promotional texts get “Reply STOP to opt out.” added if they don't already say it; it counts toward the length and the price.

The reply (201) is the message, including:

{"id": "3f0c2b9e-…", "recipient": "+14165551234", "status": "queued",
 "message_type": "transactional", "cost": "0.0150", "scheduled_at": null}

Keep the id to check delivery status. A promotional text sent during quiet hours comes back with scheduled_at set to when it will go out.

Opt-outs and quiet hours. People who reply STOP to our number don't receive promotional texts from any customer, and promotional texts wait until 9am–9pm in the recipient's local time. Transactional texts and passcodes are not held.

Delivery status

GET/messaging/messages/{id}/ with the id from the send reply.

curl https://api.talky.ca/api/v1/messaging/messages/3f0c2b9e-…/ \
  -H "Authorization: ApiKey tk_AbCd1234.your-secret"
{"id": "3f0c2b9e-…", "recipient": "+14165551234", "status": "delivered", "parts": 1,
 "cost": "0.0150", "refunded": false, "error_message": null,
 "sent_at": "2026-10-30T15:00:01Z", "delivered_at": "2026-10-30T15:00:04Z", "failed_at": null}
StatusMeaning
pendingAccepted, not sent yet: waiting for its scheduled_at time (or for quiet hours to end).
queuedWaiting to be sent.
sentHanded to the carrier; no delivery report yet (some carriers never send one).
deliveredThe carrier reported it delivered to the phone.
failedCouldn't be sent or delivered; error_message says why when the carrier gave a reason.
expiredThe carrier couldn't deliver it before it expired.
rejectedNot sent: refused before sending (for example, the person replied STOP or the campaign was cancelled), or refused by the carrier.

A text that wasn't delivered and was refunded shows "refunded": true. Check every few seconds at most: up to 120 requests a minute per account, then 429. Only your account's messages can be read; any other id is 404.

One-time passcodes

POST/otp/request/ sends a code; POST/otp/verify/ checks the code your user typed in.

curl -X POST https://api.talky.ca/api/v1/otp/request/ \
  -H "Authorization: ApiKey tk_AbCd1234.your-secret" \
  -H "Content-Type: application/json" \
  -d '{"phone_number": "+14165551234", "purpose": "login"}'

curl -X POST https://api.talky.ca/api/v1/otp/verify/ \
  -H "Authorization: ApiKey tk_AbCd1234.your-secret" \
  -H "Content-Type: application/json" \
  -d '{"phone_number": "+14165551234", "otp_code": "123456", "purpose": "login"}'

purpose is one of login, registration, password_reset, phone_verification (default), transaction or two_factor; use the same value to verify. Codes expire and allow a limited number of attempts. A code that couldn't be sent is refunded.

Number lookup

Check validity, carrier and line type before you send, one number at a time, up to 100 per request, or by CSV batch. See the Number Lookup API page.

Errors

Errors come back as JSON: most have an error and a message to show; an invalid field comes back as {"recipient": ["what's wrong"]}.

StatusWhen
400A field is missing or invalid, the text is over 918 characters, or it has content carriers refuse (cannabis or CBD, payday loans, gambling). Nothing is charged.
402insufficient_balance: top up on the Billing page. The reply includes estimated_cost_cents and wallet_balance.
403insufficient_scope (the key lacks the scope), recipient_opted_out (promotional text to someone who replied STOP), or the account can't send.
429Too many requests: wait the retry_after seconds. Sends also return X-RateLimit-Limit and X-RateLimit-Remaining headers.

A text or code that couldn't be sent is refunded to your balance.

Pricing

ServicePrice (USD)
SMS$0.015 per segment, after your 250 free texts
One-time passcode$0.05 each, less at higher monthly volumes
Number lookup$0.01 each (invalid numbers are free)

Prepaid: top up from $1, no contract and no monthly fee.

Questions? Contact us or email notifications@techsynergy.ca. We reply within one business day.