Skip to content
SendX logo

Connectors / Marketing · HTTP Connector

SendX integration and API

Create a contact, create a campaign and create a list in SendX, and start a workflow when SendX sends “Contact created”.

What can you do with SendX on Tray.ai?

SendX is an email marketing service for growing contact lists, sending campaigns and transactional email, and running automated email workflows. Tray.ai connects to SendX through the HTTP Connector, so your workflows can call the SendX API alongside the rest of your stack.

  • When SendX sends “Email bounced”, flag the contact's email as invalid in your CRM.
  • Push a revenue event when an order is paid in your store, so campaigns show the sales they drive.
  • Create a contact for each new trial sign-up in your product.
  • When SendX sends “Link clicked”, raise the lead's score in your CRM.
Connects through
HTTP Connector
Authentication
An API key in a request header
Base URL
https://api.sendx.io/api/v1/rest

Set it up

Connect SendX to Tray.ai

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

Save SendX's API key

Save the key as a Tray.ai authentication. The HTTP Client puts it in the request header, read from $.auth. The key stays out of the workflow and out of the logs.

Point the HTTP Client at the API

Add an HTTP Client step and use https://api.sendx.io/api/v1/rest as the base URL. Or paste a cURL example from SendX's API docs, and Tray.ai fills in the method, URL, and headers.

Start with “List contacts”

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

Start workflows from SendX events

Give SendX the URL of a Tray.ai webhook trigger. “Contact created” can then start a workflow, and so can 5 other events.

Workflows to build with SendX

Connect SendX with Salesforce, Stripe and HubSpot

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

Add Salesforce leads to SendX and tag them by source

When

A new lead is created in Salesforce

Then

  1. Create a contact with the lead's email and name
  2. Mark the lead in Salesforce as added to email

With Salesforce

Push Stripe payments to SendX as revenue events

When

A payment succeeds in Stripe

Then

  1. Find the customer's email in Stripe
  2. Push a revenue event with the amount for the customer's email

With Stripe

Mark bounced SendX emails on HubSpot contacts

When

Email bounced

Then

  1. Find the contact by email in HubSpot
  2. Set the contact's email status to bounced in HubSpot

With HubSpot

Apps you can build on SendX data

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

Campaign results report

Lists email campaigns with their reports so marketing can compare results.

Bounce and spam cleanup

Collects bounces and spam reports as they arrive and lets staff unsubscribe or delete the contact.

Contact tagging tool

Lists contacts and tags so staff can update a contact with the right tags.

SendX MCP server for AI agents

Build an MCP server on SendX 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

  • List contacts
  • List campaigns
  • List lists
  • List tags
  • Send a transactional email
  • Push a custom event
  • Create a contact
  • Update a contact

What the SendX API covers

6 resources and 21 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.

Contacts

  • List contacts
  • Create a contact
  • Update a contact
  • Delete a contact
  • Unsubscribe a contact

Campaigns

  • List campaigns
  • Create a campaign
  • Delete a campaign
  • Get a campaign report

Lists

  • List lists
  • Create a list
  • Update a list
  • Delete a list

Tags

  • List tags
  • Create a tag
  • Update a tag
  • Delete a tag

Emails

  • Send a transactional email
  • Send an email from template

Events

  • Push a custom event
  • Push a revenue event

Events SendX can send to a Tray.ai webhook trigger

  • Contact created
  • Contact unsubscribed
  • Email opened
  • Link clicked
  • Email bounced
  • Email marked as spam

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

docs.sendx.io/api-reference/introduction

Frequently asked questions

What can a Tray.ai workflow do in SendX?

The SendX API documents 21 actions across 6 resources (Contacts, Campaigns, Lists, Tags, Emails, Events). For example: List contacts; List campaigns; List lists. A workflow can make any documented call through the HTTP Connector.

How does Tray.ai authenticate with SendX?

The SendX API uses an API key in a request header. You save it once as a Tray.ai authentication, and the HTTP Connector adds it to every request.

Which SendX events can start a Tray.ai workflow?

SendX sends 6 events to a webhook URL, for example: Contact created; Contact unsubscribed; Email opened; Link clicked; Email bounced; Email marked as spam. A Tray.ai webhook trigger receives them and starts a workflow.

See SendX 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.