AhaSend Lists API

Manage contact lists and the contacts on them

GitHub OpenAPI

Operations 10

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}/lists List the account's contact lists · List Lists #
Ask an LLM
“What contact lists exist in my account?”
“How many members does each list have?”
Tell an agent
List the contact lists in account {account_id}.
Show lists in account {account_id} whose name contains {name}.
POST /v2/accounts/{account_id}/lists Create a contact list · Create List #
Ask an LLM
“How do I create a new list to send campaigns to?”
“Can a list name be duplicated within an account?”
Tell an agent
Create a list named {name} in account {account_id}.
Create list {name} in account {account_id} described as {description}.
GET /v2/accounts/{account_id}/lists/{list_id} Get a contact list · Get List #
Ask an LLM
“How many members does a particular list have?”
“Can I look up one list by ID?”
Tell an agent
Get list {list_id} in account {account_id}.
Show the contact count of list {list_id} in account {account_id}.
PUT /v2/accounts/{account_id}/lists/{list_id} Update a contact list · Update List #
Ask an LLM
“How do I rename a list or change its description?”
“Can I replace the tags on a list?”
Tell an agent
Rename list {list_id} in account {account_id} to {name}.
Set the tags on list {list_id} in account {account_id} to {tags}.
DELETE /v2/accounts/{account_id}/lists/{list_id} Delete a contact list · Delete List #
Ask an LLM
“How do I delete a list I no longer use?”
“Are membership records kept after a list is deleted?”
Tell an agent destructive · confirm first
Delete list {list_id} from account {account_id}.
Remove the unused list {list_id} in account {account_id}.
GET /v2/accounts/{account_id}/lists/{list_id}/contacts List the members of a list · List Contacts on a List #
Ask an LLM
“Who is on a particular list?”
“Can I list only confirmed subscribers on a list?”
Tell an agent
List the members of list {list_id} in account {account_id}.
Show {subscription_status} members of list {list_id} in account {account_id}.
POST /v2/accounts/{account_id}/lists/{list_id}/contacts/batch Add many contacts to a list at once · Batch add contacts to a list #
Ask an LLM
“How do I bulk add existing contacts to a list?”
“What happens to contacts already on the list when I bulk add?”
Tell an agent
Add these contacts to list {list_id} in account {account_id}: {data}.
Bulk add the contacts in {data} to list {list_id} in account {account_id}.
PUT /v2/accounts/{account_id}/lists/{list_id}/contacts/{id_or_email} Add or update a contact on a list · Add or Update a List Contact #
Ask an LLM
“How do I add an existing contact to a list?”
“Can I change a contact's subscription status on a list?”
Tell an agent
Add contact {id_or_email} to list {list_id} in account {account_id}.
Set contact {id_or_email} on list {list_id} in account {account_id} to status {subscription_status}.
DELETE /v2/accounts/{account_id}/lists/{list_id}/contacts/{id_or_email} Remove a contact from a list · Remove a Contact from a List #
Ask an LLM
“How do I remove someone from a list?”
“Does removing a contact from a list also remove their unsubscribe record?”
Tell an agent destructive · confirm first
Remove contact {id_or_email} from list {list_id} in account {account_id}.
Delete the membership of {id_or_email} on list {list_id} in account {account_id}.
GET /v2/accounts/{account_id}/contacts/{id_or_email}/lists List the lists a contact is on · List a Contact's Lists #
Ask an LLM
“Which lists is a particular person subscribed to?”
“Can I find out what one contact is on without checking every list?”
Tell an agent
List the lists contact {id_or_email} is on in account {account_id}.
Show {subscription_status} memberships of {id_or_email} on account {account_id} lists.

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-lists-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-lists-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: AhaSend API v2 Lists 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 (72 KB total) ---
# Full source: https://artifacts.apis.io/ahasend/openapi/ahasend-lists-api-openapi.yml