Skip to content
Smaily logo

Connectors / Marketing · HTTP Connector

Smaily integration and API

Create or update subscribers and create or update a segment in Smaily. Connect Smaily to the rest of your marketing stack with Tray.ai.

What can you do with Smaily on Tray.ai?

Smaily is an email marketing service for sending newsletters, automated workflows and transactional messages to subscriber lists. Tray.ai connects to Smaily through the HTTP Connector, so your workflows can call the Smaily API alongside the rest of your stack.

  • Create or update subscribers when customers opt in at checkout in your online store.
  • Trigger an automation workflow when a deal is won in your CRM.
  • Forget subscribers when a data deletion request is approved by your privacy team.
  • Get campaign statistics after each send and log them in your reporting spreadsheet.
Connects through
HTTP Connector
Authentication
Basic authentication
Base URL
https://{subdomain}.sendsmaily.net/api

Set it up

Connect Smaily to Tray.ai

Each step uses Smaily's own API details, from its documentation.

Save Smaily's username and password

Save the credentials Smaily gives you as a Tray.ai authentication. The HTTP Client sends them as basic auth. They stay out of the workflow and out of the logs.

Point the HTTP Client at the API

Add an HTTP Client step and use https://{subdomain}.sendsmaily.net/api as the base URL. Or paste a cURL example from Smaily's API docs, and Tray.ai fills in the method, URL, and headers.

Start with “Get a subscriber”

It's one of 15 documented actions, under Subscribers. The response comes back as data the next step can map into your other apps.

Hand it to an AI agent

Wrap “Create or update subscribers” and “Opt in subscribers” in workflows, and Tray.ai's Agent Gateway for MCP publishes them as governed tools Claude and other AI agents can call.

Workflows to build with Smaily

Connect Smaily with Shopify, Zendesk and Google Sheets

Each one uses actions and events from Smaily's own API documentation.

Add new Shopify customers to Smaily

When

A customer creates an account in Shopify

Then

  1. Create or update subscribers with the customer's email
  2. Trigger an automation workflow for the welcome series

With Shopify

Forget Smaily subscribers after a Zendesk deletion request

When

A data deletion request is created in Zendesk

Then

  1. Forget subscribers with the requester's email
  2. Add a note to the Zendesk ticket confirming the removal

With Zendesk

Send weekly Smaily campaign results to Google Sheets

When

On a schedule

Then

  1. List campaigns sent in the last week
  2. Get campaign statistics for each one
  3. Add a row per campaign in Google Sheets

With Google Sheets

Apps you can build on Smaily data

Internal tools your team can build with an AI assistant, each one using Smaily calls from its API documentation.

Newsletter results report

Lists sent campaigns with their statistics side by side so the team can compare results.

A/B test results board

Lists A/B tests with their statistics and lets a marketer launch a new test.

Subscriber privacy request tool

Looks up a subscriber and lets support forget them when a privacy request comes in.

Give your AI agents Smaily tools

Build an MCP server on Smaily in Agent Gateway and choose which actions your agents can call. Every call runs with access control and an audit trail. How Agent Gateway works

  • Get a subscriber
  • List segments
  • List campaigns
  • List automation workflows
  • List A/B tests
  • Create or update subscribers
  • Opt in subscribers
  • Forget subscribers

What the Smaily API covers

5 resources and 15 documented actions, each one a call the HTTP Connector can make from a Tray.ai workflow. Connecting it takes a few clicks: here's how.

Subscribers

  • Get a subscriber
  • Create or update subscribers
  • Opt in subscribers
  • Forget subscribers

Segments

  • List segments
  • Create or update a segment
  • List segment subscribers

Campaigns

  • List campaigns
  • Launch a campaign
  • Get campaign statistics

Automations

  • List automation workflows
  • Trigger an automation workflow

A/B tests

  • List A/B tests
  • Launch an A/B test
  • Get A/B test statistics

Checked against Smaily's own documentation on 2026-10-22

smaily.com/help/api

Frequently asked questions

What can a Tray.ai workflow do in Smaily?

The Smaily API documents 15 actions across 5 resources (Subscribers, Segments, Campaigns, Automations, A/B tests). For example: Get a subscriber; List segments; List campaigns. A workflow can make any documented call through the HTTP Connector.

How does Tray.ai authenticate with Smaily?

The Smaily API uses basic authentication. You save it once as a Tray.ai authentication, and the HTTP Connector adds it to every request.

See Smaily working against your stack.

We'll walk through a tailored demo with your systems plugged in.

Great, a couple more details

This helps us connect you with the right person. Optional, and you can skip it.