Skip to main content
POST
Required token scopes: Create scenarios, Manage scenarios on behalf of user (both are required)
  • url (required) - located under data.actions[0].params.url. Replace {{yourWebhookURL}} with the destination URL that should receive the events.
  • asStatus - keep "active" to enable the subscription immediately, "inactive" to save it as an inactive revision, or "draft" to save it as a draft.
  • Template-specific placeholders such as {{word1}}/{{word2}} (Messages with Specific Text) or {{targetLabelId}} (Specific Label Added).
Optionally, you can include an authorUid body field (a Texter user UID) to attribute the action to a specific user; when omitted, it is attributed automatically. Every event also has its own page under Webhooks in the sidebar (e.g. All Messages) with the ready-to-send template, exactly what to change in it, and the payload your URL receives. If the provided templates don’t satisfy your needs, contact Texter Support and we’ll gladly help modify any triggers, conditions, or actions for your webhook.

הרשאות

Authorization
string
header
נדרש

API token generated in Texter: gear icon → Developers → API Tokens. When creating a token, assign it the scopes required by the endpoints you plan to call - each endpoint lists its required scopes.

גוף

application/json
data
object
נדרש

The scenario definition (use one of the provided templates)

asStatus
enum<string>
נדרש
אפשרויות זמינות:
active,
inactive,
draft
authorUid
string

Optional - Texter user ID (UID) to attribute the subscription to. When omitted, it is attributed automatically

תגובה

The created subscription (scenario object). Field-by-field reference: The Scenario object

An event subscription (scenario) in Texter

_id
string

Unique identifier of the subscription/scenario

system
string

System scenario identifier. Present only on built-in system scenarios (returned when includeSystem=true)

drafts
object[]

Draft revisions of this scenario being edited. Same shape as a revision, but with status: "draft", no version/revisionComment, and metadata limited to authorUid/created/modified

inactiveRevisions
object[]

Inactive revisions

activeRevision
object

The currently active version of the scenario