Email marketing
AWeber in your product and your AI agents, through one API
The AWeber toolkit covers the accounts, lists, subscribers and broadcast emails of a customer's AWeber account: read and update subscribers, and create, schedule or cancel broadcasts. Through Connect, your product or AI agent calls these operations with one endpoint, while Connect stores and renews the OAuth credentials and logs every execution.
15 days to try it. No credit card.
POST https://connect.reportei.com/api/tools/aweber_create_subscriber/execute
Authorization: Bearer <merchant token>
x-customer-token: <customer token>
Content-Type: application/json
Accept: application/json
{
"customer_toolkit": "<connection UUID>",
"arguments": {
"accountId": 1,
"listId": 1,
"email": "<email>"
}
}How it works
From a connected customer to the first AWeber call.
- 1
Your customer connects the account
Your system opens a Connect session for the toolkit and your customer connects their AWeber account. You get the connection id.
- 2
Your product calls the tool
A POST to /api/tools/{tool}/execute with the connection id and arguments. On success, Connect preserves the app's response status and body.
- 3
Connect handles the rest
It stores the credential encrypted, renews tokens for OAuth connections that support renewal and records executions in an audit trail available through the API.
Use cases
What your product does with AWeber.
Sync signups to a list
When a user signs up in your SaaS, create the subscriber in the customer's AWeber list, which starts the list's follow-up series.
Update subscriber status
Mark a subscriber as unsubscribed or change tags when something changes in your product, so the emails follow the real state of the contact.
Agent-drafted broadcasts
An AI agent writes a broadcast as a draft, a person reviews it, and your product schedules it for a future time or cancels it before it is sent.
Tools
12 AWeber tools
- List accountsGETReturns the AWeber account the connection reaches, in entries, with its id, the accountId every other tool asks for, and the company name.
- List listsGETLists the subscriber lists of the account, in entries, with id, name and the counts of subscribed, unconfirmed and unsubscribed subscribers. Only the first 100 come back; total_size has the count.
- List subscribersGETLists the subscribers of a list, in entries, with id, email, name, status, tags, custom fields and subscription date. Only the first 100 come back, oldest first unless sort_order is desc; total_size has the count.
- Get subscriberGETReturns one subscriber of a list with email, name, status, tags, custom fields, location and the follow-up messages already sent.
- Create subscriberPOSTAdds a subscriber to a list, which starts the follow-up series of the list. An email already on the list returns 400, unless update_existing is true. Add people one at a time: bulk adding through the API breaks the AWeber terms.
- Update subscriberPATCHChanges the subscriber of a list that has the given email. Setting status to unsubscribed stops the emails to the subscriber; tags take an add and a remove list.
- List broadcastsGETLists the broadcast emails of a list in one status, in entries: drafts created through the API, scheduled ones by send time or sent ones by send date. Only the first 100 come back; total_size has the count.
- Get broadcastGETReturns one broadcast email with subject, content, status, schedule, archive URL and, once sent, its stats.
- Create broadcastPOSTCreates a broadcast email as a draft for the list; nothing is sent until Schedule broadcast. The response has the broadcast_id.
- Update broadcastPUTChanges a draft broadcast. Only drafts created through the API can be changed.
OAuth with your product's app
You register your product's OAuth app once, with POST /api/merchants/credentials/aweber, and your customer authorizes the account on a consent screen. Connect renews the token when it is about to expire.
Questions about the AWeber toolkit
Do I need to build against the AWeber API?
No. Connect ships 12 AWeber tools, described and ready. Your customer connects the account and your system calls every tool through the same endpoint, with the same request format.
How does my customer connect their AWeber account?
With the mode the toolkit accepts: OAuth with your product's app. Connect stores the credential encrypted and never returns it to your system.
Does it work with AI agents?
Yes. Each tool's input is described in JSON Schema, which your agent uses directly as a tool definition. The agent picks the tool and the arguments, and your system makes the call to Connect.
Does my customer need a Reportei account?
No. Your customer connects the account on a Connect screen, or your system sends the credential through the API, and they keep using only your product.
See Connect applied to your product.
Try it for 15 days with no card, or walk our team through your use case.
