# Smaily integrations: subscribers and segments

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

**Canonical page:** https://tray.ai/connectors/smaily-integrations/
**Categories:** Marketing
**Connects through:** HTTP Connector

## Overview

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.

## Use cases

### Subscribers

Read, create, and manage subscribers in Smaily from any Tray.ai workflow. The Smaily API covers calls such as get a subscriber and create or update subscribers.

- Get a subscriber
- Create or update subscribers
- Opt in subscribers

### Segments

Read and create segments in Smaily from any Tray.ai workflow. The Smaily API covers calls such as list segments and create or update a segment.

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

### Campaigns

Read and create campaigns in Smaily from any Tray.ai workflow. The Smaily API covers calls such as list campaigns and launch a campaign.

- List campaigns
- Launch a campaign
- Get campaign statistics

### Automations

Read and create automations in Smaily from any Tray.ai workflow. The Smaily API covers calls such as list automation workflows and trigger an automation workflow.

- List automation workflows
- Trigger an automation workflow

### A/B tests

Read and create a/b tests in Smaily from any Tray.ai workflow. The Smaily API covers calls such as list A/B tests and launch an A/B test.

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

## Challenges Tray.ai solves

### Keeping Smaily credentials out of logs

A raw API call usually means pasting a key or token into the request, where it ends up in step inputs, logs, and screenshots.

**How Tray.ai helps:** Store Smaily credentials once as a Tray.ai authentication and reference them from the HTTP Connector. Tray.ai masks authentication values in logs, so the secret never shows up in a step's input or output.

### Going from the Smaily API docs to a working call

Translating an example request from API docs into a workflow step means copying the method, URL, headers, and body by hand.

**How Tray.ai helps:** Paste a cURL example from the Smaily API docs into the HTTP Connector and Tray.ai fills in the method, URL, headers, and body for you.

### Handling files and non-JSON responses

Not every API answers in JSON. Some return XML, files, or binary data, or expect a multipart upload.

**How Tray.ai helps:** The HTTP Connector parses JSON and XML responses, returns files you can pass to the next step, and sends multipart form data for uploads.

## Frequently asked questions

### Does Tray.ai connect to Smaily?

Yes. Tray.ai connects to Smaily through the HTTP Connector, which calls the Smaily API directly. Any call the Smaily API documents can run as a step in a Tray.ai workflow.

### 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.

### Can I get a dedicated Smaily connector?

Smaily runs through the HTTP Connector rather than a dedicated connector. If your team wants one, the Tray.ai connector SDK can build a dedicated Smaily connector from the Smaily API.

## Learn more

- Tray iPaaS: https://tray.ai/platform/ipaas/
- Tray Helix agents: https://tray.ai/helix/agents/
- Agent Gateway for MCP: https://tray.ai/platform/agent-gateway/
- Book a demo: https://tray.ai/contact/
