简介
ClickFunnels
原始描述
ClickFunnels API integration with managed OAuth. Manage contacts, products, orders, courses, forms, and webhooks. Use this skill when users want to create sales funnels, manage contacts, process orders, or build marketing automation. For other third party apps, use the api-gateway skill
通过你的 Agent 添加
安装目录:clickfunnels/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。
点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。
或者手动安装
包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可;
目录名不用换,也不要把包直接解压到 skills 根目录。
技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。
技能正文
name: clickfunnels
description: |
ClickFunnels API integration with managed OAuth. Manage contacts, products, orders, courses, forms, and webhooks.
Use this skill when users want to create sales funnels, manage contacts, process orders, or build marketing automation.
For other third party apps, use the api-gateway skill (https://clawhub.ai/byungkyu/api-gateway).
Requires network access and valid Maton API key.
metadata:
author: maton
version: "1.0"
clawdbot:
emoji: 🧠
requires:
env:
- MATON_API_KEY
ClickFunnels
Access the ClickFunnels 2.0 API with managed OAuth authentication. Manage contacts, products, orders, courses, forms, webhooks, and more.
Quick Start
# List teams
python <<'EOF'
import urllib.request, os, json
req = urllib.request.Request('https://api.maton.ai/clickfunnels/api/v2/teams')
req.add_header('Authorization', f'Bearer {os.environ["MATON_API_KEY"]}')
req.add_header('User-Agent', 'Maton/1.0')
print(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))
EOF
Base URL
https://api.maton.ai/clickfunnels/{native-api-path}
# List teams
python <<'EOF'
import urllib.request, os, json
req = urllib.request.Request('https://api.maton.ai/clickfunnels/api/v2/teams')
req.add_header('Authorization', f'Bearer {os.environ["MATON_API_KEY"]}')
req.add_header('User-Agent', 'Maton/1.0')
print(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))
EOF
https://api.maton.ai/clickfunnels/{native-api-path}
Maton proxies requests to {subdomain}.myclickfunnels.com and automatically injects your OAuth token.
Authentication
All requests require the Maton API key in the Authorization header and a User-Agent header:
Authorization: Bearer $MATON_API_KEY
User-Agent: Maton/1.0
Environment Variable: Set your API key as MATON_API_KEY:
export MATON_API_KEY="YOUR_API_KEY"
Getting Your API Key
- Sign in or create an account at maton.ai
- Go to maton.ai/settings
- Copy your API key
Connection Management
Manage your ClickFunnels OAuth connections at https://api.maton.ai.
List Connections
python <<'EOF'
import urllib.request, os, json
req = urllib.request.Request('https://api.maton.ai/connections?app=clickfunnels&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
Create Connection
python <<'EOF'
import urllib.request, os, json
data = json.dumps({'app': 'clickfunnels'}).encode()
req = urllib.request.Request('https://api.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
Get Connection
python <<'EOF'
import urllib.request, os, json
req = urllib.request.Request('https://api.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
python <<'EOF'
import urllib.request, os, json
req = urllib.request.Request('https://api.maton.ai/connections?app=clickfunnels&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
python <<'EOF'
import urllib.request, os, json
data = json.dumps({'app': 'clickfunnels'}).encode()
req = urllib.request.Request('https://api.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
Get Connection
python <<'EOF'
import urllib.request, os, json
req = urllib.request.Request('https://api.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
python <<'EOF'
import urllib.request, os, json
req = urllib.request.Request('https://api.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:
{
"connection": {
"connection_id": "{connection_id}",
"status": "ACTIVE",
"creation_time": "2025-12-08T07:20:53.488460Z",
"last_updated_time": "2026-01-31T20:03:32.593153Z",
"url": "https://connect.maton.ai/?session_token=...",
"app": "clickfunnels",
"metadata": {}
}
}
Open the returned url in a browser to complete OAuth authorization.
Delete Connection
python <<'EOF'
import urllib.request, os, json
req = urllib.request.Request('https://api.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
Specifying Connection
python <<'EOF'
import urllib.request, os, json
req = urllib.request.Request('https://api.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 ClickFunnels connections, specify which one to use with the Maton-Connection header:
python <<'EOF'
import urllib.request, os, json
req = urllib.request.Request('https://api.maton.ai/clickfunnels/api/v2/teams')
req.add_header('Authorization', f'Bearer {os.environ["MATON_API_KEY"]}')
req.add_header('User-Agent', 'Maton/1.0')
req.add_header('Maton-Connection', '{connection_id}')
print(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))
EOF
If you have multiple connections, always include this header to ensure requests go to the intended account.
Security & Permissions
- Access is scoped to contacts, products, orders, courses, forms, and webhooks within the connected ClickFunnels account.
- All write operations require explicit user approval. Before executing any create, update, or delete call, confirm the target resource and intended effect with the user.
API Reference
Teams
List Teams
GET /clickfunnels/api/v2/teams
Teams
GET /clickfunnels/api/v2/teams
Response:
[
{
"id": 412840,
"public_id": "vPNqAp",
"name": "My Team",
"time_zone": "Pacific Time (US & Canada)",
"locale": "en",
"created_at": "2026-02-07T09:28:29.709Z",
"updated_at": "2026-02-07T11:14:32.118Z"
}
]
Get Team
GET /clickfunnels/api/v2/teams/{team_id}
Workspaces
List Workspaces
GET /clickfunnels/api/v2/teams/{team_id}/workspaces
GET /clickfunnels/api/v2/teams/{team_id}
List Workspaces
GET /clickfunnels/api/v2/teams/{team_id}/workspaces
Response:
[
{
"id": 435231,
"public_id": "JZqWGb",
"team_id": 412840,
"name": "My Workspace",
"subdomain": "myworkspace",
"created_at": "2026-02-07T09:28:31.268Z",
"updated_at": "2026-02-07T09:28:34.498Z"
}
]
Get Workspace
GET /clickfunnels/api/v2/workspaces/{workspace_id}
Contacts
List Contacts
GET /clickfunnels/api/v2/workspaces/{workspace_id}/contacts
GET /clickfunnels/api/v2/workspaces/{workspace_id}
List Contacts
GET /clickfunnels/api/v2/workspaces/{workspace_id}/contacts
With filtering:
GET /clickfunnels/api/v2/workspaces/{workspace_id}/contacts?filter[email_address]=user@example.com
Response:
[
{
"id": 1087091674,
"public_id": "PWzmxEx",
"workspace_id": 435231,
"email_address": "user@example.com",
"first_name": "John",
"last_name": "Doe",
"phone_number": null,
"time_zone": null,
"uuid": "eb7a970c-727d-4c82-9209-bd8f7457a801",
"tags": [],
"custom_attributes": {},
"created_at": "2026-02-07T09:28:52.713Z",
"updated_at": "2026-02-07T09:28:52.777Z"
}
]
Get Contact
GET /clickfunnels/api/v2/contacts/{contact_id}
Create Contact
POST /clickfunnels/api/v2/workspaces/{workspace_id}/contacts
Content-Type: application/json
{
"contact": {
"email_address": "newuser@example.com",
"first_name": "Jane",
"last_name": "Smith",
"phone_number": "+1234567890"
}
}
Update Contact
PUT /clickfunnels/api/v2/contacts/{contact_id}
Content-Type: application/json
{
"contact": {
"first_name": "Updated Name",
"phone_number": "+1987654321"
}
}
Delete Contact
DELETE /clickfunnels/api/v2/contacts/{contact_id}
GET /clickfunnels/api/v2/contacts/{contact_id}
POST /clickfunnels/api/v2/workspaces/{workspace_id}/contacts
Content-Type: application/json
{
"contact": {
"email_address": "newuser@example.com",
"first_name": "Jane",
"last_name": "Smith",
"phone_number": "+1234567890"
}
}
Update Contact
PUT /clickfunnels/api/v2/contacts/{contact_id}
Content-Type: application/json
{
"contact": {
"first_name": "Updated Name",
"phone_number": "+1987654321"
}
}
Delete Contact
DELETE /clickfunnels/api/v2/contacts/{contact_id}
PUT /clickfunnels/api/v2/contacts/{contact_id}
Content-Type: application/json
{
"contact": {
"first_name": "Updated Name",
"phone_number": "+1987654321"
}
}
DELETE /clickfunnels/api/v2/contacts/{contact_id}
Returns HTTP 204 on success.
Upsert Contact
Create or update a contact based on matching email:
POST /clickfunnels/api/v2/workspaces/{workspace_id}/contacts/upsert
Content-Type: application/json
{
"contact": {
"email_address": "user@example.com",
"first_name": "Updated"
}
}
GDPR Redact Contact
DELETE /clickfunnels/api/v2/workspaces/{workspace_id}/contacts/{contact_id}/gdpr_destroy
Products
List Products
GET /clickfunnels/api/v2/workspaces/{workspace_id}/products
DELETE /clickfunnels/api/v2/workspaces/{workspace_id}/contacts/{contact_id}/gdpr_destroy
List Products
GET /clickfunnels/api/v2/workspaces/{workspace_id}/products
Response:
[
{
"id": 962732,
"public_id": "jAvBEA",
"workspace_id": 435231,
"name": "My Product",
"current_path": "/my-product",
"archived": false,
"visible_in_store": true,
"visible_in_customer_center": true,
"default_variant_id": 5361073,
"variant_ids": [5361073],
"price_ids": [],
"tag_ids": [],
"created_at": "2026-02-09T07:23:02.158Z",
"updated_at": "2026-02-09T07:23:02.163Z"
}
]
Get Product
GET /clickfunnels/api/v2/products/{product_id}
Create Product
POST /clickfunnels/api/v2/workspaces/{workspace_id}/products
Content-Type: application/json
{
"product": {
"name": "New Product",
"visible_in_store": true,
"visible_in_customer_center": true
}
}
Update Product
PUT /clickfunnels/api/v2/products/{product_id}
Content-Type: application/json
{
"product": {
"name": "Updated Product Name"
}
}
Archive Product
POST /clickfunnels/api/v2/products/{product_id}/archive
Unarchive Product
POST /clickfunnels/api/v2/products/{product_id}/unarchive
Orders
List Orders
GET /clickfunnels/api/v2/workspaces/{workspace_id}/orders
Get Order
GET /clickfunnels/api/v2/orders/{order_id}
Update Order
PUT /clickfunnels/api/v2/orders/{order_id}
Content-Type: application/json
{
"order": {
"notes": "Updated order notes"
}
}
Fulfillments
List Fulfillments
GET /clickfunnels/api/v2/workspaces/{workspace_id}/fulfillments
Get Fulfillment
GET /clickfunnels/api/v2/fulfillments/{fulfillment_id}
Create Fulfillment
POST /clickfunnels/api/v2/workspaces/{workspace_id}/fulfillments
Content-Type: application/json
{
"fulfillment": {
"contact_id": 1087091674,
"location_id": 12345,
"tracking_url": "https://tracking.example.com/123",
"shipping_provider": "ups",
"tracking_code": "1Z999AA10123456784",
"notify_customer": true
}
}
Cancel Fulfillment
POST /clickfunnels/api/v2/fulfillments/{fulfillment_id}/cancel
Courses
List Courses
GET /clickfunnels/api/v2/workspaces/{workspace_id}/courses
Get Course
GET /clickfunnels/api/v2/courses/{course_id}
Enrollments
List Enrollments
GET /clickfunnels/api/v2/courses/{course_id}/enrollments
Create Enrollment
POST /clickfunnels/api/v2/courses/{course_id}/enrollments
Content-Type: application/json
{
"courses_enrollment": {
"contact_id": 1087091674
}
}
Update Enrollment
PUT /clickfunnels/api/v2/courses/{course_id}/enrollments/{enrollment_id}
Content-Type: application/json
{
"courses_enrollment": {
"suspended": true,
"suspension_reason": "Payment failed"
}
}
Forms
List Forms
GET /clickfunnels/api/v2/workspaces/{workspace_id}/forms
GET /clickfunnels/api/v2/products/{product_id}
POST /clickfunnels/api/v2/workspaces/{workspace_id}/products
Content-Type: application/json
{
"product": {
"name": "New Product",
"visible_in_store": true,
"visible_in_customer_center": true
}
}
Update Product
PUT /clickfunnels/api/v2/products/{product_id}
Content-Type: application/json
{
"product": {
"name": "Updated Product Name"
}
}
Archive Product
POST /clickfunnels/api/v2/products/{product_id}/archive
Unarchive Product
POST /clickfunnels/api/v2/products/{product_id}/unarchive
Orders
List Orders
GET /clickfunnels/api/v2/workspaces/{workspace_id}/orders
Get Order
GET /clickfunnels/api/v2/orders/{order_id}
Update Order
PUT /clickfunnels/api/v2/orders/{order_id}
Content-Type: application/json
{
"order": {
"notes": "Updated order notes"
}
}
Fulfillments
List Fulfillments
GET /clickfunnels/api/v2/workspaces/{workspace_id}/fulfillments
Get Fulfillment
GET /clickfunnels/api/v2/fulfillments/{fulfillment_id}
Create Fulfillment
POST /clickfunnels/api/v2/workspaces/{workspace_id}/fulfillments
Content-Type: application/json
{
"fulfillment": {
"contact_id": 1087091674,
"location_id": 12345,
"tracking_url": "https://tracking.example.com/123",
"shipping_provider": "ups",
"tracking_code": "1Z999AA10123456784",
"notify_customer": true
}
}
Cancel Fulfillment
POST /clickfunnels/api/v2/fulfillments/{fulfillment_id}/cancel
Courses
List Courses
GET /clickfunnels/api/v2/workspaces/{workspace_id}/courses
Get Course
GET /clickfunnels/api/v2/courses/{course_id}
Enrollments
List Enrollments
GET /clickfunnels/api/v2/courses/{course_id}/enrollments
Create Enrollment
POST /clickfunnels/api/v2/courses/{course_id}/enrollments
Content-Type: application/json
{
"courses_enrollment": {
"contact_id": 1087091674
}
}
Update Enrollment
PUT /clickfunnels/api/v2/courses/{course_id}/enrollments/{enrollment_id}
Content-Type: application/json
{
"courses_enrollment": {
"suspended": true,
"suspension_reason": "Payment failed"
}
}
Forms
List Forms
GET /clickfunnels/api/v2/workspaces/{workspace_id}/forms
PUT /clickfunnels/api/v2/products/{product_id}
Content-Type: application/json
{
"product": {
"name": "Updated Product Name"
}
}
POST /clickfunnels/api/v2/products/{product_id}/archive
Unarchive Product
POST /clickfunnels/api/v2/products/{product_id}/unarchive
Orders
List Orders
GET /clickfunnels/api/v2/workspaces/{workspace_id}/orders
Get Order
GET /clickfunnels/api/v2/orders/{order_id}
Update Order
PUT /clickfunnels/api/v2/orders/{order_id}
Content-Type: application/json
{
"order": {
"notes": "Updated order notes"
}
}
Fulfillments
List Fulfillments
GET /clickfunnels/api/v2/workspaces/{workspace_id}/fulfillments
Get Fulfillment
GET /clickfunnels/api/v2/fulfillments/{fulfillment_id}
Create Fulfillment
POST /clickfunnels/api/v2/workspaces/{workspace_id}/fulfillments
Content-Type: application/json
{
"fulfillment": {
"contact_id": 1087091674,
"location_id": 12345,
"tracking_url": "https://tracking.example.com/123",
"shipping_provider": "ups",
"tracking_code": "1Z999AA10123456784",
"notify_customer": true
}
}
Cancel Fulfillment
POST /clickfunnels/api/v2/fulfillments/{fulfillment_id}/cancel
Courses
List Courses
GET /clickfunnels/api/v2/workspaces/{workspace_id}/courses
Get Course
GET /clickfunnels/api/v2/courses/{course_id}
Enrollments
List Enrollments
GET /clickfunnels/api/v2/courses/{course_id}/enrollments
Create Enrollment
POST /clickfunnels/api/v2/courses/{course_id}/enrollments
Content-Type: application/json
{
"courses_enrollment": {
"contact_id": 1087091674
}
}
Update Enrollment
PUT /clickfunnels/api/v2/courses/{course_id}/enrollments/{enrollment_id}
Content-Type: application/json
{
"courses_enrollment": {
"suspended": true,
"suspension_reason": "Payment failed"
}
}
Forms
List Forms
GET /clickfunnels/api/v2/workspaces/{workspace_id}/forms
POST /clickfunnels/api/v2/products/{product_id}/unarchive
List Orders
GET /clickfunnels/api/v2/workspaces/{workspace_id}/orders
GET /clickfunnels/api/v2/orders/{order_id}
Update Order
PUT /clickfunnels/api/v2/orders/{order_id}
Content-Type: application/json
{
"order": {
"notes": "Updated order notes"
}
}
Fulfillments
List Fulfillments
GET /clickfunnels/api/v2/workspaces/{workspace_id}/fulfillments
Get Fulfillment
GET /clickfunnels/api/v2/fulfillments/{fulfillment_id}
Create Fulfillment
POST /clickfunnels/api/v2/workspaces/{workspace_id}/fulfillments
Content-Type: application/json
{
"fulfillment": {
"contact_id": 1087091674,
"location_id": 12345,
"tracking_url": "https://tracking.example.com/123",
"shipping_provider": "ups",
"tracking_code": "1Z999AA10123456784",
"notify_customer": true
}
}
Cancel Fulfillment
POST /clickfunnels/api/v2/fulfillments/{fulfillment_id}/cancel
Courses
List Courses
GET /clickfunnels/api/v2/workspaces/{workspace_id}/courses
Get Course
GET /clickfunnels/api/v2/courses/{course_id}
Enrollments
List Enrollments
GET /clickfunnels/api/v2/courses/{course_id}/enrollments
Create Enrollment
POST /clickfunnels/api/v2/courses/{course_id}/enrollments
Content-Type: application/json
{
"courses_enrollment": {
"contact_id": 1087091674
}
}
Update Enrollment
PUT /clickfunnels/api/v2/courses/{course_id}/enrollments/{enrollment_id}
Content-Type: application/json
{
"courses_enrollment": {
"suspended": true,
"suspension_reason": "Payment failed"
}
}
Forms
List Forms
GET /clickfunnels/api/v2/workspaces/{workspace_id}/forms
PUT /clickfunnels/api/v2/orders/{order_id}
Content-Type: application/json
{
"order": {
"notes": "Updated order notes"
}
}
List Fulfillments
GET /clickfunnels/api/v2/workspaces/{workspace_id}/fulfillments
GET /clickfunnels/api/v2/fulfillments/{fulfillment_id}
Create Fulfillment
POST /clickfunnels/api/v2/workspaces/{workspace_id}/fulfillments
Content-Type: application/json
{
"fulfillment": {
"contact_id": 1087091674,
"location_id": 12345,
"tracking_url": "https://tracking.example.com/123",
"shipping_provider": "ups",
"tracking_code": "1Z999AA10123456784",
"notify_customer": true
}
}
Cancel Fulfillment
POST /clickfunnels/api/v2/fulfillments/{fulfillment_id}/cancel
Courses
List Courses
GET /clickfunnels/api/v2/workspaces/{workspace_id}/courses
Get Course
GET /clickfunnels/api/v2/courses/{course_id}
Enrollments
List Enrollments
GET /clickfunnels/api/v2/courses/{course_id}/enrollments
Create Enrollment
POST /clickfunnels/api/v2/courses/{course_id}/enrollments
Content-Type: application/json
{
"courses_enrollment": {
"contact_id": 1087091674
}
}
Update Enrollment
PUT /clickfunnels/api/v2/courses/{course_id}/enrollments/{enrollment_id}
Content-Type: application/json
{
"courses_enrollment": {
"suspended": true,
"suspension_reason": "Payment failed"
}
}
Forms
List Forms
GET /clickfunnels/api/v2/workspaces/{workspace_id}/forms
POST /clickfunnels/api/v2/workspaces/{workspace_id}/fulfillments
Content-Type: application/json
{
"fulfillment": {
"contact_id": 1087091674,
"location_id": 12345,
"tracking_url": "https://tracking.example.com/123",
"shipping_provider": "ups",
"tracking_code": "1Z999AA10123456784",
"notify_customer": true
}
}
POST /clickfunnels/api/v2/fulfillments/{fulfillment_id}/cancel
Courses
List Courses
GET /clickfunnels/api/v2/workspaces/{workspace_id}/courses
Get Course
GET /clickfunnels/api/v2/courses/{course_id}
Enrollments
List Enrollments
GET /clickfunnels/api/v2/courses/{course_id}/enrollments
Create Enrollment
POST /clickfunnels/api/v2/courses/{course_id}/enrollments
Content-Type: application/json
{
"courses_enrollment": {
"contact_id": 1087091674
}
}
Update Enrollment
PUT /clickfunnels/api/v2/courses/{course_id}/enrollments/{enrollment_id}
Content-Type: application/json
{
"courses_enrollment": {
"suspended": true,
"suspension_reason": "Payment failed"
}
}
Forms
List Forms
GET /clickfunnels/api/v2/workspaces/{workspace_id}/forms
GET /clickfunnels/api/v2/courses/{course_id}
List Enrollments
GET /clickfunnels/api/v2/courses/{course_id}/enrollments
POST /clickfunnels/api/v2/courses/{course_id}/enrollments
Content-Type: application/json
{
"courses_enrollment": {
"contact_id": 1087091674
}
}
Update Enrollment
PUT /clickfunnels/api/v2/courses/{course_id}/enrollments/{enrollment_id}
Content-Type: application/json
{
"courses_enrollment": {
"suspended": true,
"suspension_reason": "Payment failed"
}
}
Forms
List Forms
GET /clickfunnels/api/v2/workspaces/{workspace_id}/forms
PUT /clickfunnels/api/v2/courses/{course_id}/enrollments/{enrollment_id}
Content-Type: application/json
{
"courses_enrollment": {
"suspended": true,
"suspension_reason": "Payment failed"
}
}
List Forms
GET /clickfunnels/api/v2/workspaces/{workspace_id}/forms
Response:
[
{
"id": 442896,
"public_id": "NdOxzL",
"workspace_id": 435231,
"name": "Contact Form",
"created_at": "2026-02-07T09:28:33.316Z",
"updated_at": "2026-02-07T09:28:33.316Z"
}
]
Get Form
GET /clickfunnels/api/v2/forms/{form_id}
List Form Submissions
GET /clickfunnels/api/v2/forms/{form_id}/submissions
Images
List Images
GET /clickfunnels/api/v2/workspaces/{workspace_id}/images
GET /clickfunnels/api/v2/forms/{form_id}
GET /clickfunnels/api/v2/forms/{form_id}/submissions
Images
List Images
GET /clickfunnels/api/v2/workspaces/{workspace_id}/images
Response:
[
{
"id": 20670308,
"public_id": "mvvWWM",
"url": "https://statics.myclickfunnels.com/workspace/JZqWGb/image/20670308/file/image.png",
"workspace_id": 435231,
"alt_text": null,
"name": null,
"created_at": "2026-02-07T09:28:40.102Z",
"updated_at": "2026-02-07T09:29:01.697Z"
}
]
Create Image (via URL)
POST /clickfunnels/api/v2/workspaces/{workspace_id}/images
Content-Type: application/json
{
"image": {
"upload_source_url": "https://example.com/image.png"
}
}
Webhooks
List Webhook Endpoints
GET /clickfunnels/api/v2/workspaces/{workspace_id}/webhooks/outgoing/endpoints
POST /clickfunnels/api/v2/workspaces/{workspace_id}/images
Content-Type: application/json
{
"image": {
"upload_source_url": "https://example.com/image.png"
}
}
List Webhook Endpoints
GET /clickfunnels/api/v2/workspaces/{workspace_id}/webhooks/outgoing/endpoints
Response:
[
{
"id": 96677,
"public_id": "vBZlEl",
"workspace_id": 435231,
"url": "https://example.com/webhook",
"name": "My Webhook",
"event_type_ids": ["contact.created"],
"api_version": 2,
"webhook_secret": "e779d4b2faa7d986...",
"created_at": "2026-02-09T07:23:22.295Z",
"updated_at": "2026-02-09T07:23:22.295Z"
}
]
Create Webhook Endpoint
POST /clickfunnels/api/v2/workspaces/{workspace_id}/webhooks/outgoing/endpoints
Content-Type: application/json
{
"webhooks_outgoing_endpoint": {
"url": "https://example.com/webhook",
"name": "New Webhook",
"event_type_ids": ["contact.created", "order.created"]
}
}
Get Webhook Endpoint
GET /clickfunnels/api/v2/webhooks/outgoing/endpoints/{endpoint_id}
Update Webhook Endpoint
PUT /clickfunnels/api/v2/webhooks/outgoing/endpoints/{endpoint_id}
Content-Type: application/json
{
"webhooks_outgoing_endpoint": {
"name": "Updated Webhook",
"event_type_ids": ["contact.created", "contact.updated"]
}
}
Delete Webhook Endpoint
DELETE /clickfunnels/api/v2/webhooks/outgoing/endpoints/{endpoint_id}
POST /clickfunnels/api/v2/workspaces/{workspace_id}/webhooks/outgoing/endpoints
Content-Type: application/json
{
"webhooks_outgoing_endpoint": {
"url": "https://example.com/webhook",
"name": "New Webhook",
"event_type_ids": ["contact.created", "order.created"]
}
}
GET /clickfunnels/api/v2/webhooks/outgoing/endpoints/{endpoint_id}
Update Webhook Endpoint
PUT /clickfunnels/api/v2/webhooks/outgoing/endpoints/{endpoint_id}
Content-Type: application/json
{
"webhooks_outgoing_endpoint": {
"name": "Updated Webhook",
"event_type_ids": ["contact.created", "contact.updated"]
}
}
Delete Webhook Endpoint
DELETE /clickfunnels/api/v2/webhooks/outgoing/endpoints/{endpoint_id}
PUT /clickfunnels/api/v2/webhooks/outgoing/endpoints/{endpoint_id}
Content-Type: application/json
{
"webhooks_outgoing_endpoint": {
"name": "Updated Webhook",
"event_type_ids": ["contact.created", "contact.updated"]
}
}
DELETE /clickfunnels/api/v2/webhooks/outgoing/endpoints/{endpoint_id}
Returns HTTP 204 on success.
Pagination
ClickFunnels uses cursor-based pagination. Each list endpoint returns a maximum of 20 items.
Use the after parameter with the ID of the last item to get the next page:
GET /clickfunnels/api/v2/workspaces/{workspace_id}/contacts?after=1087091674
Response Headers:
Pagination-Next: ID of the last item (use for next page)Link: Full URL for the next page
Example pagination flow:
# First page
GET /clickfunnels/api/v2/workspaces/{workspace_id}/images
# Response header: Pagination-Next: 20670327
# Next page
GET /clickfunnels/api/v2/workspaces/{workspace_id}/images?after=20670327
Filtering
Use the filter query parameter to filter list results:
# Filter by email
GET /clickfunnels/api/v2/workspaces/{workspace_id}/contacts?filter[email_address]=user@example.com
# Filter by multiple emails (OR)
GET /clickfunnels/api/v2/workspaces/{workspace_id}/contacts?filter[email_address]=user1@example.com,user2@example.com
# Multiple filters (AND)
GET /clickfunnels/api/v2/workspaces/{workspace_id}/contacts?filter[email_address]=user@example.com&filter[id]=1087091674
Code Examples
JavaScript
const response = await fetch(
'https://api.maton.ai/clickfunnels/api/v2/teams',
{
headers: {
'Authorization': `Bearer ${process.env.MATON_API_KEY}`,
'User-Agent': 'Maton/1.0'
}
}
);
const teams = await response.json();
Python
import os
import requests
response = requests.get(
'https://api.maton.ai/clickfunnels/api/v2/teams',
headers={
'Authorization': f'Bearer {os.environ["MATON_API_KEY"]}',
'User-Agent': 'Maton/1.0'
}
)
teams = response.json()
Create Contact Example
import os
import requests
response = requests.post(
'https://api.maton.ai/clickfunnels/api/v2/workspaces/435231/contacts',
headers={
'Authorization': f'Bearer {os.environ["MATON_API_KEY"]}',
'Content-Type': 'application/json',
'User-Agent': 'Maton/1.0'
},
json={
'contact': {
'email_address': 'newuser@example.com',
'first_name': 'Jane',
'last_name': 'Smith'
}
}
)
contact = response.json()
Notes
- Team IDs, workspace IDs, and resource IDs are integers
- Each resource also has a
public_id (string) for public-facing URLs
- List endpoints return max 20 items per page by default
- Use
after parameter for pagination
- Delete operations return HTTP 204 with empty response
- Request bodies use nested resource keys (e.g.,
{"contact": {...}})
- Images max size: 10MB, max dimensions: 10,000 x 10,000 pixels
- Supported image formats: JPEG, PNG, WebP, GIF, SVG
- IMPORTANT: When using curl commands, use
curl -g when URLs contain brackets to disable glob parsing
- IMPORTANT: When piping curl output to
jq or other commands, environment variables like $MATON_API_KEY may not expand correctly in some shell environments
Error Handling
Status
Meaning
400
Missing ClickFunnels connection
401
Invalid or missing Maton API key
404
Resource not found
422
Validation error (check response body)
429
Rate limited
4xx/5xx
Passthrough error from ClickFunnels API
Troubleshooting: API Key Issues
- Check that the
MATON_API_KEY environment variable is set:
echo $MATON_API_KEY
- Verify the API key is valid by listing connections:
python <<'EOF'
import urllib.request, os, json
req = urllib.request.Request('https://api.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
Troubleshooting: Invalid App Name
- Ensure your URL path starts with
clickfunnels. For example:
- Correct:
https://api.maton.ai/clickfunnels/api/v2/teams
- Incorrect:
https://api.maton.ai/api/v2/teams
Resources
import os
import requests
response = requests.get(
'https://api.maton.ai/clickfunnels/api/v2/teams',
headers={
'Authorization': f'Bearer {os.environ["MATON_API_KEY"]}',
'User-Agent': 'Maton/1.0'
}
)
teams = response.json()
import os
import requests
response = requests.post(
'https://api.maton.ai/clickfunnels/api/v2/workspaces/435231/contacts',
headers={
'Authorization': f'Bearer {os.environ["MATON_API_KEY"]}',
'Content-Type': 'application/json',
'User-Agent': 'Maton/1.0'
},
json={
'contact': {
'email_address': 'newuser@example.com',
'first_name': 'Jane',
'last_name': 'Smith'
}
}
)
contact = response.json()
Notes
- Team IDs, workspace IDs, and resource IDs are integers
- Each resource also has a
public_id (string) for public-facing URLs
- List endpoints return max 20 items per page by default
- Use
after parameter for pagination
- Delete operations return HTTP 204 with empty response
- Request bodies use nested resource keys (e.g.,
{"contact": {...}})
- Images max size: 10MB, max dimensions: 10,000 x 10,000 pixels
- Supported image formats: JPEG, PNG, WebP, GIF, SVG
- IMPORTANT: When using curl commands, use
curl -g when URLs contain brackets to disable glob parsing
- IMPORTANT: When piping curl output to
jq or other commands, environment variables like $MATON_API_KEY may not expand correctly in some shell environments
Error Handling
Status
Meaning
400
Missing ClickFunnels connection
401
Invalid or missing Maton API key
404
Resource not found
422
Validation error (check response body)
429
Rate limited
4xx/5xx
Passthrough error from ClickFunnels API
Troubleshooting: API Key Issues
- Check that the
MATON_API_KEY environment variable is set:
echo $MATON_API_KEY
- Verify the API key is valid by listing connections:
python <<'EOF'
import urllib.request, os, json
req = urllib.request.Request('https://api.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
Troubleshooting: Invalid App Name
public_id (string) for public-facing URLsafter parameter for pagination{"contact": {...}})curl -g when URLs contain brackets to disable glob parsingjq or other commands, environment variables like $MATON_API_KEY may not expand correctly in some shell environments| Status | Meaning |
|---|---|
| 400 | Missing ClickFunnels connection |
| 401 | Invalid or missing Maton API key |
| 404 | Resource not found |
| 422 | Validation error (check response body) |
| 429 | Rate limited |
| 4xx/5xx | Passthrough error from ClickFunnels API |
Troubleshooting: API Key Issues
MATON_API_KEY environment variable is set:echo $MATON_API_KEY
python <<'EOF'
import urllib.request, os, json
req = urllib.request.Request('https://api.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
- Ensure your URL path starts with
clickfunnels. For example:
- Correct:
https://api.maton.ai/clickfunnels/api/v2/teams - Incorrect:
https://api.maton.ai/api/v2/teams
Resources
正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。