Install any skill in seconds. Free to start, no credit card required.
Get Started Free →ActiveCampaign API integration with managed OAuth. Marketing automation, CRM, contacts, deals, and email campaigns. Use this skill when users want to manage contacts, deals, tags, lists, automations, or campaigns in ActiveCampaign. For other third party apps, use the api-gateway skill (https://clawhub.ai/byungkyu/api-gateway). Requires network access and valid Maton API key.
| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-01 | ✗→✓ | ▲ Improved | 235% | 0% |
| case-02 | ✗→✓ | ▲ Improved | 212% | 0% |
| case-03 | ✗→✓ | ▲ Improved | 231% | 0% |
| case-04 | ✗→✓ | ▲ Improved | 314% | 0% |
| case-05 | ✗→✓ | ▲ Improved | 515% | 0% |
Access the ActiveCampaign API with managed OAuth authentication. Manage contacts, deals, tags, lists, automations, and email campaigns.
bash# List all contacts python <<'EOF' import urllib.request, os, json req = urllib.request.Request('https://gateway.maton.ai/active-campaign/api/3/contacts') req.add_header('Authorization', f'Bearer {os.environ["MATON_API_KEY"]}') print(json.dumps(json.load(urllib.request.urlopen(req)), indent=2)) EOF
https://gateway.maton.ai/active-campaign/{native-api-path}Replace {native-api-path} with the actual ActiveCampaign API endpoint path. The gateway proxies requests to {account}.api-us1.com and automatically injects your OAuth token.
All requests require the Maton API key in the Authorization header:
Authorization: Bearer $MATON_API_KEYEnvironment Variable: Set your API key as MATON_API_KEY:
bashexport MATON_API_KEY="YOUR_API_KEY"
Manage your ActiveCampaign OAuth connections at https://ctrl.maton.ai.
bashpython <<'EOF' import urllib.request, os, json req = urllib.request.Request('https://ctrl.maton.ai/connections?app=active-campaign&status=ACTIVE') req.add_header('Authorization', f'Bearer {os.environ["MATON_API_KEY"]}') print(json.dumps(json.load(urllib.request.urlopen(req)), indent=2)) EOF
bashpython <<'EOF' import urllib.request, os, json data = json.dumps({'app': 'active-campaign'}).encode() req = urllib.request.Request('https://ctrl.maton.ai/connections', data=data, method='POST') req.add_header('Authorization', f'Bearer {os.environ["MATON_API_KEY"]}') req.add_header('Content-Type', 'application/json') print(json.dumps(json.load(urllib.request.urlopen(req)), indent=2)) EOF
bashpython <<'EOF' import urllib.request, os, json req = urllib.request.Request('https://ctrl.maton.ai/connections/{connection_id}') req.add_header('Authorization', f'Bearer {os.environ["MATON_API_KEY"]}') print(json.dumps(json.load(urllib.request.urlopen(req)), indent=2)) EOF
Response:
json{ "connection": { "connection_id": "9e8ba2aa-25ec-4ba0-8815-3068be304dca", "status": "ACTIVE", "creation_time": "2026-02-09T20:03:16.595823Z", "last_updated_time": "2026-02-09T20:04:09.550767Z", "url": "https://connect.maton.ai/?session_token=...", "app": "active-campaign", "metadata": {} } }
Open the returned url in a browser to complete OAuth authorization.
bashpython <<'EOF' import urllib.request, os, json req = urllib.request.Request('https://ctrl.maton.ai/connections/{connection_id}', method='DELETE') req.add_header('Authorization', f'Bearer {os.environ["MATON_API_KEY"]}') print(json.dumps(json.load(urllib.request.urlopen(req)), indent=2)) EOF
If you have multiple ActiveCampaign connections, specify which one to use with the Maton-Connection header:
bashpython <<'EOF' import urllib.request, os, json req = urllib.request.Request('https://gateway.maton.ai/active-campaign/api/3/contacts') req.add_header('Authorization', f'Bearer {os.environ["MATON_API_KEY"]}') req.add_header('Maton-Connection', '9e8ba2aa-25ec-4ba0-8815-3068be304dca') print(json.dumps(json.load(urllib.request.urlopen(req)), indent=2)) EOF
If omitted, the gateway uses the default (oldest) active connection.
bashGET /active-campaign/api/3/contacts
Query Parameters:
limit - Number of results (default: 20)offset - Starting indexsearch - Search by emailfilters[email] - Filter by emailfilters[listid] - Filter by list IDResponse:
json{ "contacts": [ { "id": "1", "email": "user@example.com", "firstName": "John", "lastName": "Doe", "phone": "", "cdate": "2026-02-09T14:03:19-06:00", "udate": "2026-02-09T14:03:19-06:00" } ], "meta": { "total": "1" } }
bashGET /active-campaign/api/3/contacts/{contactId}
Returns contact with related data including lists, tags, deals, and field values.
bashPOST /active-campaign/api/3/contacts Content-Type: application/json { "contact": { "email": "newcontact@example.com", "firstName": "John", "lastName": "Doe", "phone": "555-1234" } }
Response:
json{ "contact": { "id": "2", "email": "newcontact@example.com", "firstName": "John", "lastName": "Doe", "cdate": "2026-02-09T17:51:39-06:00", "udate": "2026-02-09T17:51:39-06:00" } }
bashPUT /active-campaign/api/3/contacts/{contactId} Content-Type: application/json { "contact": { "firstName": "Updated", "lastName": "Name" } }
bashDELETE /active-campaign/api/3/contacts/{contactId}
Returns 200 OK on success.
bashPOST /active-campaign/api/3/contact/sync Content-Type: application/json { "contact": { "email": "user@example.com", "firstName": "Updated Name" } }
Creates the contact if it doesn't exist, updates if it does.
bashGET /active-campaign/api/3/tags
Response:
json{ "tags": [ { "id": "1", "tag": "VIP Customer", "tagType": "contact", "description": "High-value customers", "cdate": "2026-02-09T17:51:39-06:00" } ], "meta": { "total": "1" } }
bashGET /active-campaign/api/3/tags/{tagId}
bashPOST /active-campaign/api/3/tags Content-Type: application/json { "tag": { "tag": "New Tag", "tagType": "contact", "description": "Tag description" } }
bashPUT /active-campaign/api/3/tags/{tagId} Content-Type: application/json { "tag": { "tag": "Updated Tag Name" } }
bashDELETE /active-campaign/api/3/tags/{tagId}
bashPOST /active-campaign/api/3/contactTags Content-Type: application/json { "contactTag": { "contact": "2", "tag": "1" } }
bashDELETE /active-campaign/api/3/contactTags/{contactTagId}
bashGET /active-campaign/api/3/contacts/{contactId}/contactTags
bashGET /active-campaign/api/3/lists
Response:
json{ "lists": [ { "id": "1", "stringid": "master-contact-list", "name": "Master Contact List", "cdate": "2026-02-09T14:03:20-06:00" } ], "meta": { "total": "1" } }
bashGET /active-campaign/api/3/lists/{listId}
bashPOST /active-campaign/api/3/lists Content-Type: application/json { "list": { "name": "New List", "stringid": "new-list", "sender_url": "https://example.com", "sender_reminder": "You signed up on our website" } }
bashPUT /active-campaign/api/3/lists/{listId} Content-Type: application/json { "list": { "name": "Updated List Name" } }
bashDELETE /active-campaign/api/3/lists/{listId}
bashPOST /active-campaign/api/3/contactLists Content-Type: application/json { "contactList": { "contact": "2", "list": "1", "status": "1" } }
Status values: 1 = subscribed, 2 = unsubscribed
bashGET /active-campaign/api/3/deals
Query Parameters:
search - Search by title, contact, or orgfilters[stage] - Filter by stage IDfilters[owner] - Filter by owner IDResponse:
json{ "deals": [ { "id": "1", "title": "New Deal", "value": "10000", "currency": "usd", "stage": "1", "owner": "1" } ], "meta": { "total": 0, "currencies": [] } }
bashGET /active-campaign/api/3/deals/{dealId}
bashPOST /active-campaign/api/3/deals Content-Type: application/json { "deal": { "title": "New Deal", "value": "10000", "currency": "usd", "contact": "2", "stage": "1", "owner": "1" } }
bashPUT /active-campaign/api/3/deals/{dealId} Content-Type: application/json { "deal": { "title": "Updated Deal", "value": "15000" } }
bashDELETE /active-campaign/api/3/deals/{dealId}
bashGET /active-campaign/api/3/dealStages
bashPOST /active-campaign/api/3/dealStages Content-Type: application/json { "dealStage": { "title": "New Stage", "group": "1", "order": "1" } }
bashGET /active-campaign/api/3/dealGroups
bashPOST /active-campaign/api/3/dealGroups Content-Type: application/json { "dealGroup": { "title": "Sales Pipeline", "currency": "usd" } }
bashGET /active-campaign/api/3/automations
Response:
json{ "automations": [ { "id": "1", "name": "Welcome Series", "cdate": "2026-02-09T14:00:00-06:00", "mdate": "2026-02-09T14:00:00-06:00", "status": "1" } ], "meta": { "total": "1" } }
bashGET /active-campaign/api/3/automations/{automationId}
bashGET /active-campaign/api/3/campaigns
Response:
json{ "campaigns": [ { "id": "1", "name": "Newsletter", "type": "single", "status": "0" } ], "meta": { "total": "1" } }
bashGET /active-campaign/api/3/campaigns/{campaignId}
bashGET /active-campaign/api/3/users
Response:
json{ "users": [ { "id": "1", "username": "admin", "firstName": "John", "lastName": "Doe", "email": "admin@example.com" } ] }
bashGET /active-campaign/api/3/users/{userId}
bashGET /active-campaign/api/3/accounts
bashPOST /active-campaign/api/3/accounts Content-Type: application/json { "account": { "name": "Acme Inc" } }
bashGET /active-campaign/api/3/fields
bashPOST /active-campaign/api/3/fields Content-Type: application/json { "field": { "type": "text", "title": "Custom Field", "descript": "A custom field" } }
bashPUT /active-campaign/api/3/fieldValues/{fieldValueId} Content-Type: application/json { "fieldValue": { "value": "New Value" } }
bashGET /active-campaign/api/3/notes
bashPOST /active-campaign/api/3/notes Content-Type: application/json { "note": { "note": "This is a note", "relid": "2", "reltype": "Subscriber" } }
bashGET /active-campaign/api/3/webhooks
bashPOST /active-campaign/api/3/webhooks Content-Type: application/json { "webhook": { "name": "My Webhook", "url": "https://example.com/webhook", "events": ["subscribe", "unsubscribe"], "sources": ["public", "admin"] } }
ActiveCampaign uses offset-based pagination:
bashGET /active-campaign/api/3/contacts?limit=20&offset=0
Parameters:
limit - Results per page (default: 20)offset - Starting indexResponse includes meta:
json{ "contacts": [...], "meta": { "total": "150" } }
For large datasets, use orders[id]=ASC and id_greater parameter for better performance:
bashGET /active-campaign/api/3/contacts?orders[id]=ASC&id_greater=100
javascriptconst response = await fetch( 'https://gateway.maton.ai/active-campaign/api/3/contacts', { headers: { 'Authorization': `Bearer ${process.env.MATON_API_KEY}` } } ); const data = await response.json(); console.log(data.contacts);
pythonimport os import requests response = requests.get( 'https://gateway.maton.ai/active-campaign/api/3/contacts', headers={'Authorization': f'Bearer {os.environ["MATON_API_KEY"]}'} ) data = response.json() print(data['contacts'])
pythonimport os import requests headers = { 'Authorization': f'Bearer {os.environ["MATON_API_KEY"]}', 'Content-Type': 'application/json' } # Create contact contact_response = requests.post( 'https://gateway.maton.ai/active-campaign/api/3/contacts', headers=headers, json={ 'contact': { 'email': 'newuser@example.com', 'firstName': 'New', 'lastName': 'User' } } ) contact = contact_response.json()['contact'] print(f"Created contact ID: {contact['id']}") # Add tag to contact tag_response = requests.post( 'https://gateway.maton.ai/active-campaign/api/3/contactTags', headers=headers, json={ 'contactTag': { 'contact': contact['id'], 'tag': '1' } } ) print("Tag added to contact")
/api/3/ prefix{"contact": {...}})jq or other commands, environment variables like $MATON_API_KEY may not expand correctly in some shell environments| Status | Meaning | |--------|---------| | 400 | Missing ActiveCampaign connection or bad request | | 401 | Invalid or missing Maton API key | | 404 | Resource not found | | 422 | Validation error | | 429 | Rate limited (5 req/sec) | | 4xx/5xx | Passthrough error from ActiveCampaign API |
Error responses include details:
json{ "errors": [ { "title": "The contact email is required", "source": { "pointer": "/data/attributes/email" } } ] }
When you receive an "Invalid API key" error, ALWAYS follow these steps before concluding there is an issue:
MATON_API_KEY environment variable is set:bashecho $MATON_API_KEY
bashpython <<'EOF' import urllib.request, os, json req = urllib.request.Request('https://ctrl.maton.ai/connections') req.add_header('Authorization', f'Bearer {os.environ["MATON_API_KEY"]}') print(json.dumps(json.load(urllib.request.urlopen(req)), indent=2)) EOF
Other measured skills in the registry, with their headline benchmark lift.