| Send a message | client.send.message({ message }) | client.send.message(message=...) |
| Create a template | client.notifications.create({ notification, state }) → returns { id, name, content, … } at top level | client.notifications.create(notification=..., state=...) → response.id |
| Publish a template | client.notifications.publish(templateId) | client.notifications.publish(template_id) |
| Retrieve a message | client.messages.retrieve(id) | client.messages.retrieve(id) |
| List messages | client.messages.list({ ... }) | client.messages.list(...) |
| Subscribe a user to a list (additive) | client.lists.subscriptions.subscribeUser(userId, { list_id }) | client.lists.subscriptions.subscribe_user(user_id, list_id=...) |
| Replace a list's subscribers | client.lists.subscriptions.subscribe(listId, { recipients }) | client.lists.subscriptions.subscribe(list_id, recipients=...) |
| Create/replace a tenant | client.tenants.update(tenantId, body) | client.tenants.update(tenant_id, ...) |
| Add a user to a tenant | client.users.tenants.addSingle(tenantId, { user_id }) | client.users.tenants.add_single(tenant_id, user_id=...) |
| Create a bulk job | client.bulk.createJob({ message: { event } }) (event required) | client.bulk.create_job(message={"event": ...}) |
| Create/update a profile (merge) | client.profiles.create(userId, { profile }) | client.profiles.create(user_id, profile=...) |
| Get a user's preferences | client.users.preferences.retrieve(userId) | client.users.preferences.retrieve(user_id) |
| Update a user's preference for a topic | client.users.preferences.updateOrCreateTopic(topicId, { user_id, topic: { status, ... } }) | client.users.preferences.update_or_create_topic(topic_id, user_id=..., topic=...) |
| Register a user's device token | client.users.tokens.addSingle(token, { user_id, provider_key, device }) | client.users.tokens.add_single(token, user_id=..., provider_key=..., device=...) |
| Create a journey | client.journeys.create({ name, nodes, enabled }) | client.journeys.create(name=..., nodes=..., enabled=...) |
| Replace a journey (draft) | client.journeys.replace(id, { name, nodes, enabled }) | client.journeys.replace(id, name=..., nodes=..., enabled=...) |
| Publish a journey | client.journeys.publish(id) | client.journeys.publish(id) |
| Invoke a journey (start a run) | client.journeys.invoke(id, { user_id, data, profile }) → { runId } | client.journeys.invoke(template_id=id, user_id=..., data=..., profile=...) → .run_id |
| Create a journey-scoped template | POST /journeys/{id}/templates (no SDK helper) | POST /journeys/{id}/templates (no SDK helper) |
| Publish a journey-scoped template | POST /journeys/{id}/templates/{templateId}/publish (no SDK helper) | POST /journeys/{id}/templates/{templateId}/publish (no SDK helper) |
| Trigger an automation (legacy) | client.automations.invoke.invokeByTemplate(templateId, { recipient, data }) | client.automations.invoke.invoke_by_template(template_id, recipient=..., data=...) |
| Trigger an ad-hoc automation (legacy) | client.automations.invoke.invokeAdHoc({ recipient, automation }) | client.automations.invoke.invoke_ad_hoc(recipient=..., automation=...) |
| Create a routing strategy | client.routingStrategies.create({ name, routing, channels?, providers? }) → returns { id: "rs_...", ... } | client.routing_strategies.create(name=..., routing=..., ...) |
| Replace a routing strategy (full PUT) | client.routingStrategies.replace(id, { name, routing, ... }) | client.routing_strategies.replace(id, name=..., routing=..., ...) |
| Configure a provider | client.providers.create({ provider, settings, title?, alias? }) | client.providers.create(provider=..., settings=..., ...) |
List provider catalog (required settings schema) | client.providers.catalog.list({ keys?, name?, channel? }) | client.providers.catalog.list(keys=..., channel=...) |
| Cancel a message | client.messages.cancel(messageId) | client.messages.cancel(message_id) |
| Retrieve a template | client.notifications.retrieve(templateId) | client.notifications.retrieve(template_id) |
| List templates | client.notifications.list() | client.notifications.list() |
| Replace a template (full PUT) | client.notifications.replace(templateId, { notification, state }) | client.notifications.replace(template_id, notification=..., state=...) |
| Archive a template | client.notifications.archive(templateId) | client.notifications.archive(template_id) |
| Get published template content | client.notifications.retrieveContent(templateId) | client.notifications.retrieve_content(template_id) |