Skip to main content
Altcraft Docs LogoAltcraft Docs Logo
User guide iconUser guide
Developer guide iconDeveloper guide
Admin guide iconAdmin guide
English
  • Русский
  • English
Login
    Getting StartedAdministrator documentationFunctional characteristics
      Technology descriptionarrow
    • Architecture OverviewComponent Description
        Deployment schemesarrow
      • Basic schemeFail-safe schemeTypical Placement in Infrastructure
    System requirements
      Admin Panelarrow
      • Account areaarrow
        • Accountsarrow
        • Account UsersAccount Virtual SendersAccount Database Indexes
        TariffsExternal data configurationLDAPTasksSchedule JobsGlobal Stop ListsWebversion Store Policies
        Settingsarrow
      • Databases
          Accessarrow
        • AdminsAPI tokens
        Notifiers
          MTAarrow
        • Default rulesRetry rulesLock rulesBounce patternsStrategiesKeysISPsPools
      Nodes
        Sendersarrow
      • EmailSMSEvent generatorIntegration with SendsayENS: настройка сендера
        Reportsarrow
      • Audit JournalData Usage
        Toolsarrow
      • ARF decoderURL decoderSMID decoderLicense
      Platform installationarrow
    • Automatic installationManual installationRunning the platform in a Docker container
      Platform configurationarrow
    • Configuration fileDomain settingsLDAP access configurationSending Email via SMTP relayPixel and push domain configurationCluster and Replication SetupSystem notifications configurationProcesses UNIX sockets configurationHTTPS ConfigurationMigrating from MongoDB Community Edition to Percona Server for MongoDBAdding sender IP addressesDeduplication request settingsPostgreSQL database for account dataProxy server settingsKeycloak Integration with AltcraftGetting HTTP service statusesConfiguration MongoDB logs rotation
        Configuration of system constants and directoriesarrow
      • Filtering bot actionsDirectory of gender markers
      Platform maintenancearrow
    • Personnel requirementsPlatform maintenance processesPlatform updatingPlatform service monitoringBackup and recoveryTransferring the platform to a new serverCreating, deleting, and populating tables for statistics in ClickHouseUsage of the aktool utilityUsers and directories engaged by the platform
      Custom channels guidearrow
    • OverviewCreating and configuring a channelEntity field configurationTemplate languageEntities
        Pipesarrow
      • Pipe: Basic ConceptsResultErrorsLogPackUnpackHTTP RequestStore SetStore GetSelectorSQLEventerScheduler
        Pipelinesarrow
      • Pipeline: Basic ConceptsMessageScheduleListenerModerateStop
      Extraarrow
    • System page customizationSend Message IDИнструкция по миграции истории в ClickHouseInstructions for migrating history to ClickHouseUtility for importing push subscriptions to Firebase projectUtility for importing push subscriptions to Firebase project
    Processing HTTP/HTTPS traffic
      Administrator APIarrow
      • Accounts admin apiarrow
        • Restricted accessarrow
        • Account Activation and DeactivationAccount Freeze and Unfreeze
        Get accounts listAdd a new accountDelete the account
        Account usersarrow
      • Update an Existing AccountAdd a new accountDelete a userGet a list of usersSending a Welcome Email
        Nodesarrow
      • Synchronize node MTA configurationGet nodes listGet node MTA statusActivate node MTADeactivate node MTA
        Senders admin apiarrow
      • Create or update AKMTA senderGet AKMTA sender informationAssign account to senderGet senders listDelete senderRestore sender
          Sender queuearrow
        • Get sender queue informationHold sender queueRelease sender queueClear sender queue
        Virtual sendersarrow
      • Get virtual senders listGet virtual sender informationCreate virtual senderUpdate virtual senderClone virtual senderDelete virtual sender
    Documentation Archive
  • Custom channels guide
  • Pipes
  • Eventer

Eventer

Description​

Eventer The pipe registers a custom channel event. This pipe is also used to implement the moderation mechanism and stop the placement mailing on a channel with a configured Stop pipeline.

Structure​

FieldType of valueExampleRequiredDescription
idnumber10yesPipe's ID
typestring"event"yesType of a pipe
paramsEventParamsObject
noType-specific parameters
outsOutsObject
noPipe's outputs

EventParamsObject
FieldTypeExampleReqieredDefaultDescription
event_typestringsendyes-

Event type. The following options are possible:

  • stop
  • moderate_pass
  • moderate_error
  • send
  • deliv
  • sbounce
  • hbounce
  • complain
  • undeliv
  • reply
  • custom
channel_idint10001

yes,


beside event_type:

  • stop
  • moderate_pass
  • moderate_error
-Channel ID.
action_typeint100005

yes,


beside event_type:

  • stop
  • moderate_pass
  • moderate_error
-Channel ID.
eventEventObjectyes-Event Specific Parameters

EventObject
FieldTypeExampleReqieredDefaultDescription
send_message_id

string

$origin.send_message_idyes-

ID of the message in the platform.

caution

If we are talking about the Schedule pipeline, then the message identifier must additionally be transmitted using the Schedule pipe. In this case, it can be accessed will be received as follows:

$origin.<name of the field with the identifier from the Schedule pipe>

Errors​

  1. Error processing template params.event.send_message_id.

  2. params.event.send_message_id format is incorrect.

Example​

  1. {
    "id": 100,
    "type": "event",
    "params": {
    "event_type": "send",
    "channel_id": 10001,
    "action_type": 100021,
    "event": {
    "send_message_id": "$origin.send_message_id"
    }
    },
    "outs": {
    "error": 101
    }
    }
  2. {
    "id": 150,
    "type": "event",
    "params": {
    "event_type": "stop",
    "event": {
    "send_message_id": "$origin.send_message_id"
    }
    }
    }
  3. {
    "id": 18,
    "type": "event",
    "params": {
    "event_type": "moderate_error",
    "event": {
    "send_message_id": "$origin.send_message_id"
    }
    },
    "outs": {
    "success": 19,
    "error": 20
    }
    }
Last updated on Jan 29, 2023
Previous
SQL
Next
Scheduler
  • Description
  • Structure
  • Errors
  • Example
© 2015 - 2026 Altcraft, LLC. All rights reserved.