Docs
OverviewPlatformPlatform APIA2P Messaging API
AI & MCP
Open dashboard
OverviewPlatformPlatform APIA2P Messaging API
AI & MCP
  • Overview
  • Introduction
  • Create an account
  • Choose your API
  • Authentication
  • AI & MCP
Product API
  • Guide
  • Quickstart
    • API tokens
    • Connected apps (OAuth)
    • Project readiness
    • Channel readiness
    • Senders
    • Attention
    • Recommendations
    • Overview
    • Contacts and attributes
    • Events
    • Query filter
    • Event query filter
    • Probes
    • Counting and retrieval
    • Segments
    • Overview
    • Creating a draft
    • Audience targeting
    • Message content
    • Dates and scheduling
    • Reading campaigns
    • Estimating and deleting
    • OverviewBeta
    • Templates
    • Creating and editing drafts
    • Triggers and exits
    • Nodes
    • Delays and waits
    • Overview
    • Statistics catalog
    • Building queries
    • Conversions & revenue
    • Reading results
    • Flow reports
    • Rate limits
    • Errors
  • Full API Reference
Ingest API
  • Guide
  • Quickstart
  • Authentication
  • Rate limits
  • Errors
  • Best practices
  • Full API Reference
Further reading
  • Query Filter
DashboardSupportinstasent.com

Platform API · Product API · Campaigns

Message content

Write the copy a campaign draft carries: template variables and short links, the sender that speaks for it, SMS Unicode, RCS buttons, the SMS fallback for contacts RCS cannot reach, and how to declare languages to translate later.

On this page▾
  • One block of copy
  • Template variables
  • Choosing a sender
  • SMS
  • RCS
  • Falling back to SMS
  • Which sender the fallback uses
  • Declaring other languages
  • Errors
  • What's next

channel decides the shape of everything on this page. A campaign is sms or rcs, the choice is made at creation and cannot change afterwards, and each channel accepts fields the other ignores: allowUnicode is meaningless for RCS, suggestions is meaningless for SMS, and only a channel that cannot reach every contact takes a fallback.

What both share is the core: one block of copy, in one language, and a sender to speak for it.

One block of copy

{
  "message": {
    "text": "Your order is ready for pickup at our downtown store."
  }
}

message.text is required whenever you send a message at all. You can also omit message entirely — the result is a valid draft with an audience, a sender and a date, and no copy, for someone to write in the dashboard. That is a legitimate way to use this endpoint: prepare the boring parts programmatically and leave the words to a human.

What this endpoint never does is invent copy. Nothing is generated, completed or translated on your behalf; a draft contains exactly the text you supplied.

Template variables

The text supports the same template variables as the rest of the platform. Two of them matter for almost every campaign:

VariableEffect
{{short:https://example.com/page}}Replaces the URL with a short link.
{{unsubscribe}}Inserts an unsubscribe link.

A short link costs 10–15 characters instead of the full URL, and every tap on it is measurable in the campaign's reporting. In SMS, where length is billed, that is usually worth doing for every link you include.

{
  "message": {
    "text": "Summer sale starts today: 30% off everything.\nShop now: {{short:https://example.com/sale}}"
  }
}

Do not wrap a suggestion URL in {{short:...}}. The rule applies to the message text. URLs inside RCS suggestions are shortened and tracked by the platform on their own when the message is prepared — wrapping them yourself shortens an already-shortened link.

Choosing a sender

sender is a top-level field, not part of message, and it takes the id of a sender that belongs to this project. An id from another project is refused with unknown-sender rather than silently ignored.

Omit it and the project's default sender for the channel applies. If the project has no default either, the draft is still created — with no sender, and a no-default-sender entry in metadata.warnings. The campaign cannot be sent until someone picks one in the dashboard, which is why that warning is worth surfacing in your own UI rather than dropping.

Whichever sender ends up on the campaign is also inherited by every language declared through translateTo that does not name its own.

SMS

An SMS body has no hard maximum in this API; length maps to cost instead.

allowUnicodebooleandefault: false

SMS only. Set it to true when the text may contain non-GSM-7 characters — accents, emoji, most non-Latin scripts. Ignored on RCS campaigns.

A GSM-7 part holds 160 characters; a Unicode part holds 70. Longer copy is split into several parts, and each part is billed as a message — so a 200-character GSM-7 message costs two, and the same text carrying one emoji costs three. That is simply the price of the copy you chose; a {{short:...}} link is the cheapest way to claw characters back.

{
  "channel": "sms",
  "title": "Flash sale for Spanish contacts",
  "message": {
    "text": "Solo hoy: 30% de descuento en toda la tienda.",
    "allowUnicode": true
  }
}

RCS

An RCS campaign carries a text bubble of up to 3072 characters and, optionally, up to 4 tappable buttons under it. The richer RCS formats — cards, carousels, media — are not surfaced on this endpoint yet; a draft that needs them is finished in the dashboard.

suggestionsarray

RCS only. The buttons shown under the message, in order, up to 4.

typestringrequired

url opens a link; dialer starts a phone call.

displayTextstringrequired

The label the recipient sees, up to 25 characters.

urlstring

Required when type is url. A plain absolute http or https URL — not wrapped in a template variable. With urlVariable, it is the page the button opens for contacts without a link of their own, and its query parameters are added to each contact's link too, replacing any of the same name.

urlVariablestring

Only for type url. Makes the button open each contact's own link: the name of the contact attribute that holds it, without braces. Each contact's link is shortened and tracked, and a contact with no link (or a value that is not a URL) opens url instead, so the button is never missing. Campaigns have no trigger event, so only contact attributes resolve here.

interactionTokenstring

Optional interaction tag, up to 32 characters of lowercase letters, numbers, - and _. It lands on the taps the button produces, so reports can tell which button was used. Never generated for you.

phoneNumberstring

Required when type is dialer. The number to call, in E.164 format.

{
  "channel": "rcs",
  "title": "Order pickup reminder",
  "audience": {
    "include": ["pending-pickups"]
  },
  "message": {
    "text": "Your order is ready for pickup at our downtown store.",
    "suggestions": [
      {
        "type": "url",
        "displayText": "View order",
        "url": "https://example.com/orders"
      },
      {
        "type": "dialer",
        "displayText": "Call the store",
        "phoneNumber": "+34600000000"
      }
    ]
  }
}

Two behaviours to know when you generate suggestions programmatically:

  • Incomplete or unrecognised entries are dropped, not fatal. A button without displayText, a dialer without phoneNumber, or a type this endpoint does not support, is left out and the rest of the draft is created. Count the buttons on the response if your caller needs to know what survived.
  • A url button is never dropped. Without a valid http(s) url, or with a malformed urlVariable, the request fails with a message on that field, so a link button cannot vanish silently.
  • More than four accepted buttons is an error (invalid-message). The cap is a channel limit, not a preference, so it fails loudly rather than truncating your list at an arbitrary point.

Falling back to SMS

RCS does not reach every contact: the handset and the network have to support it. A fallback covers the rest with an SMS, forming an rcs -> sms chain — the contacts RCS can reach get the rich message, everyone else gets the SMS.

fallbackobject

RCS only. Sending it on an SMS campaign is refused with fallback-not-supported: SMS already reaches everyone, so there is nothing to fall back to.

textstringrequired

The SMS body. Required whenever fallback is present.

senderstring

Id of the SMS sender for this leg. Must belong to the project.

allowUnicodeboolean

Allow non-GSM characters in the fallback SMS.

{
  "channel": "rcs",
  "title": "Order pickup reminder",
  "audience": {
    "include": ["pending-pickups"]
  },
  "message": {
    "text": "Your order is ready for pickup at our downtown store.",
    "suggestions": [
      {
        "type": "url",
        "displayText": "View order",
        "url": "https://example.com/orders"
      }
    ]
  },
  "fallback": {
    "text": "Your order is ready for pickup at our downtown store: {{short:https://example.com/orders}}"
  }
}

The fallback copy is required and is never derived from the RCS body. Beyond the standing rule that this endpoint writes no copy nobody supplied, there is a cost reason: an RCS body may run to 3072 characters, and pushing that into SMS would bill a long multi-part message nobody asked to send. Write the SMS version deliberately, short, with a short link.

Which sender the fallback uses

The SMS leg resolves its sender from the most specific answer available:

  1. 1

    The explicit one

    fallback.sender, when you send it.

  2. 2

    The one the RCS sender designates

    The SMS sender configured on the RCS sender itself — whoever set up the RCS sender already chose which SMS speaks for it.

  3. 3

    The project default

    The project's default SMS sender.

If none of the three exists the draft is still created, with no-fallback-sender in metadata.warnings.

Declaring other languages

translateTo lists the other languages the campaign should eventually go out in, as two-letter lowercase codes:

{
  "channel": "sms",
  "title": "Product launch",
  "audience": {
    "include": ["newsletter-subscribers"]
  },
  "message": {
    "language": "en",
    "text": "Our new collection is live. Take a look: {{short:https://example.com/new}}"
  },
  "translateTo": ["fr", "de"]
}

Each entry becomes a declared but empty language on the draft — a recorded intention to translate, not a translation. No copy is generated. Someone writes the French and the German in the dashboard, and until they do, the campaign cannot be estimated, quoted or prepared: an empty declared language is a deliberate gate, so a half-translated campaign can never be sent by accident.

message.language is the two-letter code of the copy you already wrote. Its only job is this de-duplication: without it, the language you supplied would be declared as one of the missing translations and the campaign would wait forever on a translation that already exists. That is why it is optional on its own and required whenever translateTo is used — and why it is not stored anywhere: it is a fact about your request, not about the campaign.

Multi-language campaigns are a paid feature. A request that declares languages without a subscription that includes it returns 409 Conflict and creates nothing at all — there is no partial draft to clean up.

Errors

errorCodeCause
invalid-messagemessage was sent without text; a fallback was sent without text; more than 4 RCS buttons; translateTo without message.language; an unknown compliance value.
unknown-senderThe sender id does not exist or belongs to another project.
fallback-not-supportedA fallback was sent on a channel that reaches every contact.
unknown-channelchannel is missing, or names a channel this endpoint cannot draft.

What's next

Dates and scheduling

Where the campaign sits on the calendar — and why nothing is scheduled here.

Audience targeting

Who receives what you just wrote.

Creating a draft

Back to the endpoint contract, limits and error codes.

Last updated October 25, 2026

PreviousAudience targetingNextDates and scheduling
  • One block of copy
  • Template variables
  • Choosing a sender
  • SMS
  • RCS
  • Falling back to SMS
  • Which sender the fallback uses
  • Declaring other languages
  • Errors
  • What's next

© 2026 Instasent

Privacy PolicyTerms & ConditionsCookie PolicyLegal Notice
All systems operational