Skip to content

Contact.subscribe

POST /{namespace}/contacts/{contact}/subscribe

Subscribe records a Contact’s chosen topics and frequency from the hosted preference page, with Consent for each topic.

Mode
do
Event
Contact.subscribed

Inputs

InputTypeRequiredDescription
contactContactrequiredThe Contact.
topicsstring[]requiredThe topics the Contact chose.

Outputs

OutputTypeRequiredDescription
contactContactrequiredThe Contact, with their topics.

Effects

  • Emits Contact.subscribed.
  • Performed by the Marketing Lead.
  • Two-way: it runs at once, in the try, send and do modes.
  • Writes one Consent per topic, with its notice and time.

Refuses when

CheckErrorFixThen call
The key is valid, but its scopes do not allow this operation.forbiddenUse a key whose scopes cover the operation, or ask an owner of the namespace to grant them.Contact.subscribe

When it waits

GateDefault
Decision classLow: two-way, nothing at stake
Delay windowNone: it runs once review passes.
LimitThe call Limit of the Permission it runs under.
Over the LimitIt waits pending for an Approval from the Founder. Approved, it runs; refused, it ends refused with limit-exceeded; unanswered by its deadline, it ends canceled.