
Connectors / Communication · HTTP Connector
Automate Textmagic with Tray.ai
Send an SMS, add a contact and create a template in Textmagic, and start a workflow when Textmagic sends “Message delivery status changed”.
What can you do with Textmagic on Tray.ai?
Textmagic is a business text messaging service for sending SMS and MMS, two-way chats, scheduled and bulk messages, and email campaigns to contact lists. Tray.ai connects to Textmagic through the HTTP Connector, so your workflows can call the Textmagic API alongside the rest of your stack.
- Send an SMS to customers when their order ships from your ecommerce store.
- When Textmagic sends “Inbound message received”, open a ticket in your help desk with the reply.
- Unsubscribe a contact in Textmagic when they opt out in your email marketing tool.
- Connects through
- HTTP Connector
- Authentication
- An API key in a request header
- Base URL
- https://rest.textmagic.com/api/v2
Set it up
Connect Textmagic to Tray.ai
Each step uses Textmagic's own API details, from its documentation.
Step 1
Save Textmagic'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.
Step 2
Point the HTTP Client at the API
Add an HTTP Client step and use https://rest.textmagic.com/api/v2 as the base URL. Or paste a cURL example from Textmagic's API docs, and Tray.ai fills in the method, URL, and headers.
Step 3
Start with “Find contacts”
It's one of 17 documented actions, under Contacts. The response comes back as data the next step can map into your other apps.
Step 4
Start workflows from Textmagic events
Give Textmagic the URL of a Tray.ai webhook trigger. “Message delivery status changed” can then start a workflow, and so can 1 other event.
Give your AI agents Textmagic tools
Build an MCP server on Textmagic 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
- Send an SMS
- Add a contact
- Create a template
- Get chats
- Look up a carrier
- Send bulk messages
- Schedule a message
- Find contacts
What the Textmagic API covers
5 resources and 17 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.
Messages
- Send an SMS
- Send bulk messages
- Schedule a message
Contacts
- Add a contact
- Find contacts
- Edit a contact
- Delete a contact
- Unsubscribe a contact
Templates
- Create a template
- Get a template
- Update a template
- Delete a template
Chats
- Get chats
- Find chats
- Delete a chat
Lookup
- Look up a carrier
- Validate an email address
Events Textmagic can send to a Tray.ai webhook trigger
- Message delivery status changed
- Inbound message received
Checked against Textmagic's own documentation on 2026-10-22
How Tray.ai makes this work
Textmagic plugs into the whole Tray.ai platform
Intelligent Integration
Integrate and automate across 10,100+ apps, databases, APIs, and services with visual workflows, error handling, and observability.
Learn more →Agent Builder
Build AI agents that read, write, and take action in Textmagic — with guardrails, audit, and human-in-the-loop.
Learn more →Agent Gateway for MCP
Expose Textmagic actions as governed MCP tools — observable, rate-limited, authenticated.
Learn more →Tray Helix
Build apps on Textmagic data with your AI assistant, then deploy, run, and govern them on Tray.ai.
Learn more →More communication apps on Tray.ai
Dedicated connectors and other apps Tray.ai reaches in the same category. See every communication connector →
Frequently asked questions
What can a Tray.ai workflow do in Textmagic?
+
The Textmagic API documents 17 actions across 5 resources (Messages, Contacts, Templates, Chats, Lookup). For example: Send an SMS; Add a contact; Create a template. A workflow can make any documented call through the HTTP Connector.
How does Tray.ai authenticate with Textmagic?
+
The Textmagic 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 Textmagic events can start a Tray.ai workflow?
+
Textmagic sends 2 events to a webhook URL, for example: Message delivery status changed; Inbound message received. A Tray.ai webhook trigger receives them and starts a workflow.
See Textmagic working against your stack.
We'll walk through a tailored demo with your systems plugged in.
Thanks — someone from our team will be in touch soon.