AhaSend Campaigns API

Create, change, read, duplicate, delete, test and send the account's marketing campaigns, and read their stats and recipients

GitHub OpenAPI
Business capability
Email AE-150.10

Operations 11

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /v2/accounts/{account_id}/campaigns List marketing campaigns · List Campaigns #
Ask an LLM
“What marketing campaigns have I created in AhaSend?”
“Can I list only campaigns in a particular status?”
Tell an agent
List campaigns in account {account_id}.
Show {status} campaigns in account {account_id}.
POST /v2/accounts/{account_id}/campaigns Create a draft marketing campaign · Create Campaign #
Ask an LLM
“How do I create a draft email campaign without sending it yet?”
“Can I start a campaign from a template or an empty editor?”
Tell an agent
Create a campaign named {name} in account {account_id}.
Create campaign {name} from template {template_id} in account {account_id}.
GET /v2/accounts/{account_id}/campaigns/{campaign_id} Get a marketing campaign · Get Campaign #
Ask an LLM
“What lists, content and issues does a draft campaign have?”
“Can I see the full details of one campaign?”
Tell an agent
Get campaign {campaign_id} in account {account_id}.
Show the issues blocking campaign {campaign_id} in account {account_id}.
PUT /v2/accounts/{account_id}/campaigns/{campaign_id} Update a draft marketing campaign · Update Campaign #
Ask an LLM
“How do I change the subject or sender of a draft campaign?”
“Can I replace the lists a draft campaign sends to?”
Tell an agent
Set the subject of campaign {campaign_id} in account {account_id} to {subject}.
Replace the lists on campaign {campaign_id} in account {account_id} with {list_ids}.
DELETE /v2/accounts/{account_id}/campaigns/{campaign_id} Delete a draft marketing campaign · Delete Campaign #
Ask an LLM
“How do I delete a draft campaign I no longer need?”
“Can I remove a campaign's design and list choices?”
Tell an agent destructive · confirm first
Delete campaign {campaign_id} in account {account_id}.
Remove draft campaign {campaign_id} from account {account_id}.
POST /v2/accounts/{account_id}/campaigns/{campaign_id}/duplicate Duplicate a marketing campaign · Duplicate Campaign #
Ask an LLM
“How do I make a copy of an existing campaign?”
“Can I duplicate a campaign that is already sent?”
Tell an agent
Duplicate campaign {campaign_id} in account {account_id}.
Copy campaign {campaign_id} in account {account_id} as {name}.
POST /v2/accounts/{account_id}/campaigns/{campaign_id}/send Send a draft marketing campaign · Send Campaign #
Ask an LLM
“How do I send a draft campaign immediately?”
“Can I schedule a campaign to send at a later time?”
Tell an agent
Send campaign {campaign_id} in account {account_id} now.
Schedule campaign {campaign_id} in account {account_id} to send at {send_at}.
POST /v2/accounts/{account_id}/campaigns/{campaign_id}/unschedule Cancel a scheduled campaign · Unschedule Campaign #
Ask an LLM
“How do I cancel a campaign that is scheduled to send?”
“Can I return a scheduled campaign to draft?”
Tell an agent destructive · confirm first
Unschedule campaign {campaign_id} in account {account_id}.
Cancel the scheduled send of campaign {campaign_id} in account {account_id}.
POST /v2/accounts/{account_id}/campaigns/{campaign_id}/test Send a test of a draft campaign · Test Campaign #
Ask an LLM
“How do I send a test of a draft campaign to myself?”
“Can I test a campaign against several addresses at once?”
Tell an agent
Send a test of campaign {campaign_id} in account {account_id} to {to}.
Test campaign {campaign_id} in account {account_id} on addresses {to}.
GET /v2/accounts/{account_id}/campaigns/{campaign_id}/stats Get a campaign's stats · Get Campaign Stats #
Ask an LLM
“What are the open and click rates for a campaign?”
“Where can I see a campaign's stored report?”
Tell an agent
Get the stats for campaign {campaign_id} in account {account_id}.
Show the stored report of campaign {campaign_id} in account {account_id}.
GET /v2/accounts/{account_id}/campaigns/{campaign_id}/recipients List a campaign's recipients · List Campaign Recipients #
Ask an LLM
“Which recipients of a campaign bounced?”
“Can I list only the recipients in one status?”
Tell an agent
List recipients of campaign {campaign_id} in account {account_id}.
Show {status} recipients of campaign {campaign_id} in account {account_id}.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/ahasend:ahasend-campaigns-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

ahasend-campaigns-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: AhaSend API v2 Campaigns API
  description: 'The AhaSend API v2 allows you to send transactional emails, manage domains, webhooks, routes, API keys, and view statistics. ## Authentication

    All API requests must be authenticated using a Bearer token in the Authorization header:

    ```

    Authorization: Bearer aha-sk-64-CHARACTER-RANDOM-STRING

    ```


    ## Scopes

    API keys have specific scopes that control access to different resources and actions:


    ### Message Scopes

    - `messages:send:all` - Send messages from any domain in the account

    - `messages:send:{domain}` - Send messages from a specific domain

    - `messages:cancel:all` - Cancel messages from any domain

    - `messages:cancel:{domain}` - Cancel messages from a specific domain

    - `messages:read:all` - Read messages from any domain

    - `messages:read:{domain}` - Read messages from a specific domain


    ### Domain Scopes

    - `domains:read` - Read all domains

    - `domains:write` - Create and update domains

    - `domains:delete:all` - Delete any domain

    - `domains:delete:{domain}` - Delete a specific domain


    ### Account Scopes

    - `accounts:read` - Read account information

    - `accounts:write` - Update account settings

    - `accounts:billing` - Access billing information

    - `accounts:members:read` - Read account members

    - `accounts:members:add` - Add account members

    - `accounts:members:update` - Update account members

    - `accounts:members:remove` - Remove account members


    ### Webhook Scopes

    - `webhooks:read:all` - Read all webhooks

    - `webhooks:read:{domain}` - Read webhooks for a specific domain

    - `webhooks:write:all` - Create and update webhooks

    - `webhooks:write:{domain}` - Create and update webhooks for a specific domain

    - `webhooks:delete:all` - Delete any webhook

    - `webhooks:delete:{domain}` - Delete webhooks for a specific domain


    ### Route Scopes

    - `routes:read:all` - Read all routes

    - `routes:read:{domain}` - Read routes for a specific domain

    - `routes:write:all` - Create and update routes

    - `routes:write:{domain}` - Create and update routes for a specific domain

    - `routes:delete:all` - Delete any route

    - `routes:delete:{domain}` - Delete routes for a specific domain


    ### Suppression Scopes

    - `suppressions:read` - Read suppressions

    - `suppressions:write` - Create suppressions

    - `suppressions:delete` - Delete suppressions

    - `suppressions:wipe` - Delete the account''s suppressions except protected ones (dangerous)


    ### Template Scopes

    - `templates:read` - Read transactional templates, their drafts and their published versions, and campaign templates

    - `templates:write` - Create and update transactional templates, and publish, discard and restore their drafts; create and update campaign templates

    - `templates:delete` - Delete transactional templates and campaign templates


    ### Campaign Scopes

    - `campaigns:read` - Read campaigns, their stats and their recipients

    - `campaigns:write` - Create, update and duplicate campaigns

    - `campaigns:delete` - Delete draft campaigns

    - `campaigns:send` - Send, unschedule and test-send campaigns


    ### Contact Scopes

    - `contacts:read` - Read contacts

    - `contacts:write` - Create and update contacts

    - `contacts:delete` - Delete contacts


    ### Contact lifecycle and attributes

    Contacts are account-global. A contact created through this API joins no

    list on its own; campaigns target lists, so add it to one with the Lists

    endpoints before a campaign can reach it. Contact subscription state and suppression records are independent:

    creating, updating, unsubscribing, resubscribing, or deleting a contact

    never creates, changes, or removes complaint, permanent, or protected

    suppressions. Prefer unsubscribe over delete when the goal is only to stop

    marketing mail, because unsubscribe is reversible and preserves contact

    history. Writable attribute keys and types come from the account''s contact-attribute

    definitions managed in the dashboard; this API does not expose property

    definition CRUD.'
  version: 2.0.0
  contact:
    email: support@ahasend.com
  license:
    name: MIT
    identifier: MIT
servers:
- url: https://api.ahasend.com
  description: Production server
security:
- BearerAuth: []
tags:


# --- truncated at 32 KB (86 KB total) ---
# Full source: https://artifacts.apis.io/ahasend/openapi/ahasend-campaigns-api-openapi.yml