Skip to content
First requestVisit website ↗
Navigation

Register an RCS content template for a workspace (platform owner only)

Stores a reference to a Twilio Content Template (created via the Content API or Console) so it can be reused by id. variable_mapping maps Twilio's numbered placeholders ({{1}}, {{2}}, …) to contact/appointment field paths that are resolved at send time. SaaS platform owner access required.

POST
https://api.channelautomation.com/api/rcs/workspaces/{workspaceId}/templates

Authorization

  • BearerAuth
    HTTP Bearer (JWT)
    required

Path parameters

  • workspaceId
    string
    required

Request body JSON required

  • contentSid
    string
    required

    Twilio Content SID (HX…)

  • label
    string
    required

    Operator-facing name

  • description
    optional
    string
  • variableMapping
    optional
    object

    e.g. {"1":"contact.firstname","2":"appointment.appointment_date"}

  • smsFallback
    optional
    string

    Reference copy of the SMS fallback text

Returns

200

Template registered (or already existed — upserted on content_sid).

400

Missing contentSid or label.

401

Authentication required
JSON
  • error
    optional
    string
  • success
    optional
    boolean

403

SaaS owner access required.

500

Internal server error
JSON
  • error
    optional
    string
  • details
    optional
    string
  • success
    optional
    boolean

503

Identity verification is temporarily unavailable.

Type to search…

↑↓ navigate↵ selectEsc close