[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M76GAGQEFFRQG538CR8JN2ZP":3,"skill-same:01M76GAGQEFFRQG538CR8JN2ZP":65},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":15,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":34,"commitSha":35,"skillDirectory":36,"forksCount":13,"repositoryHtmlUrl":37,"repositoryHomepageUrl":6,"ownerHtmlUrl":38,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":39,"install":40,"resources":53},"01M76GAGQEFFRQG538CR8JN2ZP","manychat",null,"ManyChat API integration with managed authentication. Manage subscribers, tags, custom fields, and send messages through Facebook Messenger.\nUse this skill when users want to manage ManyChat subscribers, send messages, add\u002Fremove tags, or work with custom fields and bot automation.\nFor other third party apps, use the api-gateway skill (https:\u002F\u002Fclawhub.ai\u002Fbyungkyu\u002Fapi-gateway).","meghal86\u002Fstacksignal","meghal86","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F37388715?v=4","01M6CS2EW8SK89GH52R2ZEN8QQ","01M728J5CGY456EETEFG6HJBTM",0,"MIT","https:\u002F\u002Fgithub.com\u002Fmeghal86\u002Fstacksignal\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fmanychat\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fmeghal86\u002Fstacksignal\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fmanychat\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: manychat\ndescription: |\n  ManyChat API integration with managed authentication. Manage subscribers, tags, custom fields, and send messages through Facebook Messenger.\n  Use this skill when users want to manage ManyChat subscribers, send messages, add\u002Fremove tags, or work with custom fields and bot automation.\n  For other third party apps, use the api-gateway skill (https:\u002F\u002Fclawhub.ai\u002Fbyungkyu\u002Fapi-gateway).\ncompatibility: Requires network access and valid Maton API key\nmetadata:\n  author: maton\n  version: \"1.0\"\n  clawdbot:\n    emoji: 🧠\n    requires:\n      env:\n        - MATON_API_KEY\n---\n\n# ManyChat\n\nAccess the ManyChat API with managed authentication. Manage subscribers, tags, custom fields, flows, and send messages through chat automation.\n\n## Quick Start\n\n```bash\n# Get page info\npython \u003C\u003C'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https:\u002F\u002Fgateway.maton.ai\u002Fmanychat\u002Ffb\u002Fpage\u002FgetInfo')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n```\n\n## Base URL\n\n```\nhttps:\u002F\u002Fgateway.maton.ai\u002Fmanychat\u002F{native-api-path}\n```\n\nReplace `{native-api-path}` with the actual ManyChat API endpoint path. The gateway proxies requests to `api.manychat.com` and automatically injects your API token.\n\n## Authentication\n\nAll requests require the Maton API key in the Authorization header:\n\n```\nAuthorization: Bearer $MATON_API_KEY\n```\n\n**Environment Variable:** Set your API key as `MATON_API_KEY`:\n\n```bash\nexport MATON_API_KEY=\"YOUR_API_KEY\"\n```\n\n### Getting Your API Key\n\n1. Sign in or create an account at [maton.ai](https:\u002F\u002Fmaton.ai)\n2. Go to [maton.ai\u002Fsettings](https:\u002F\u002Fmaton.ai\u002Fsettings)\n3. Copy your API key\n\n## Connection Management\n\nManage your ManyChat connections at `https:\u002F\u002Fctrl.maton.ai`.\n\n### List Connections\n\n```bash\npython \u003C\u003C'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https:\u002F\u002Fctrl.maton.ai\u002Fconnections?app=manychat&status=ACTIVE')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n```\n\n### Create Connection\n\n```bash\npython \u003C\u003C'EOF'\nimport urllib.request, os, json\ndata = json.dumps({'app': 'manychat'}).encode()\nreq = urllib.request.Request('https:\u002F\u002Fctrl.maton.ai\u002Fconnections', data=data, method='POST')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nreq.add_header('Content-Type', 'application\u002Fjson')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n```\n\n### Get Connection\n\n```bash\npython \u003C\u003C'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https:\u002F\u002Fctrl.maton.ai\u002Fconnections\u002F{connection_id}')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n```\n\n**Response:**\n```json\n{\n  \"connection\": {\n    \"connection_id\": \"21fd90f9-5935-43cd-b6c8-bde9d915ca80\",\n    \"status\": \"ACTIVE\",\n    \"creation_time\": \"2025-12-08T07:20:53.488460Z\",\n    \"last_updated_time\": \"2026-01-31T20:03:32.593153Z\",\n    \"url\": \"https:\u002F\u002Fconnect.maton.ai\u002F?session_token=...\",\n    \"app\": \"manychat\",\n    \"metadata\": {}\n  }\n}\n```\n\nComplete the connection by providing your ManyChat API key through the connection URL.\n\n### Delete Connection\n\n```bash\npython \u003C\u003C'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https:\u002F\u002Fctrl.maton.ai\u002Fconnections\u002F{connection_id}', method='DELETE')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n```\n\n### Specifying Connection\n\nIf you have multiple ManyChat connections, specify which one to use with the `Maton-Connection` header:\n\n```bash\npython \u003C\u003C'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https:\u002F\u002Fgateway.maton.ai\u002Fmanychat\u002Ffb\u002Fpage\u002FgetInfo')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nreq.add_header('Maton-Connection', '21fd90f9-5935-43cd-b6c8-bde9d915ca80')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n```\n\nIf omitted, the gateway uses the default (oldest) active connection.\n\n## API Reference\n\n### Page Operations\n\n#### Get Page Info\n\n```bash\nGET \u002Fmanychat\u002Ffb\u002Fpage\u002FgetInfo\n```\n\nRate limit: 100 queries per second\n\n**Response:**\n```json\n{\n  \"status\": \"success\",\n  \"data\": {\n    \"id\": 123456789,\n    \"name\": \"Page Name\",\n    \"category\": \"Business\",\n    \"avatar_link\": \"https:\u002F\u002F...\",\n    \"username\": \"pagename\",\n    \"about\": \"About text\",\n    \"description\": \"Page description\",\n    \"is_pro\": true,\n    \"timezone\": \"America\u002FNew_York\"\n  }\n}\n```\n\n### Tag Operations\n\n#### List Tags\n\n```bash\nGET \u002Fmanychat\u002Ffb\u002Fpage\u002FgetTags\n```\n\nRate limit: 100 queries per second\n\n**Response:**\n```json\n{\n  \"status\": \"success\",\n  \"data\": [\n    {\"id\": 1, \"name\": \"VIP\"},\n    {\"id\": 2, \"name\": \"Customer\"}\n  ]\n}\n```\n\n#### Create Tag\n\n```bash\nPOST \u002Fmanychat\u002Ffb\u002Fpage\u002FcreateTag\nContent-Type: application\u002Fjson\n\n{\n  \"name\": \"New Tag\"\n}\n```\n\nRate limit: 10 queries per second\n\n#### Remove Tag from Page\n\n```bash\nPOST \u002Fmanychat\u002Ffb\u002Fpage\u002FremoveTag\nContent-Type: application\u002Fjson\n\n{\n  \"tag_id\": 123\n}\n```\n\nRate limit: 10 queries per second. Removes tag from page and all subscribers.\n\n#### Remove Tag by Name\n\n```bash\nPOST \u002Fmanychat\u002Ffb\u002Fpage\u002FremoveTagByName\nContent-Type: application\u002Fjson\n\n{\n  \"tag_name\": \"Old Tag\"\n}\n```\n\nRate limit: 10 queries per second\n\n### Custom Field Operations\n\n#### List Custom Fields\n\n```bash\nGET \u002Fmanychat\u002Ffb\u002Fpage\u002FgetCustomFields\n```\n\nRate limit: 100 queries per second\n\n**Response:**\n```json\n{\n  \"status\": \"success\",\n  \"data\": [\n    {\"id\": 1, \"name\": \"phone_number\", \"type\": \"text\"},\n    {\"id\": 2, \"name\": \"purchase_count\", \"type\": \"number\"}\n  ]\n}\n```\n\n#### Create Custom Field\n\n```bash\nPOST \u002Fmanychat\u002Ffb\u002Fpage\u002FcreateCustomField\nContent-Type: application\u002Fjson\n\n{\n  \"caption\": \"Phone Number\",\n  \"type\": \"text\",\n  \"description\": \"Customer phone number\"\n}\n```\n\nRate limit: 10 queries per second\n\n**Field Types:** `text`, `number`, `date`, `datetime`, `boolean`\n\n### Bot Field Operations\n\n#### List Bot Fields\n\n```bash\nGET \u002Fmanychat\u002Ffb\u002Fpage\u002FgetBotFields\n```\n\nRate limit: 100 queries per second\n\n#### Create Bot Field\n\n```bash\nPOST \u002Fmanychat\u002Ffb\u002Fpage\u002FcreateBotField\nContent-Type: application\u002Fjson\n\n{\n  \"name\": \"counter\",\n  \"type\": \"number\",\n  \"description\": \"Global counter\",\n  \"value\": 0\n}\n```\n\nRate limit: 10 queries per second\n\n#### Set Bot Field\n\n```bash\nPOST \u002Fmanychat\u002Ffb\u002Fpage\u002FsetBotField\nContent-Type: application\u002Fjson\n\n{\n  \"field_id\": 123,\n  \"field_value\": 42\n}\n```\n\nRate limit: 10 queries per second\n\n#### Set Bot Field by Name\n\n```bash\nPOST \u002Fmanychat\u002Ffb\u002Fpage\u002FsetBotFieldByName\nContent-Type: application\u002Fjson\n\n{\n  \"field_name\": \"counter\",\n  \"field_value\": 42\n}\n```\n\nRate limit: 10 queries per second\n\n#### Set Multiple Bot Fields\n\n```bash\nPOST \u002Fmanychat\u002Ffb\u002Fpage\u002FsetBotFields\nContent-Type: application\u002Fjson\n\n{\n  \"fields\": [\n    {\"field_id\": 123, \"field_value\": \"value1\"},\n    {\"field_name\": \"field2\", \"field_value\": \"value2\"}\n  ]\n}\n```\n\nRate limit: 10 queries per second. Maximum 20 fields per request.\n\n### Flow Operations\n\n#### List Flows\n\n```bash\nGET \u002Fmanychat\u002Ffb\u002Fpage\u002FgetFlows\n```\n\nRate limit: 10 queries per second\n\n**Response:**\n```json\n{\n  \"status\": \"success\",\n  \"data\": {\n    \"flows\": [\n      {\"ns\": \"content123456\", \"name\": \"Welcome Flow\", \"folder_id\": 1}\n    ],\n    \"folders\": [\n      {\"id\": 1, \"name\": \"Main Folder\"}\n    ]\n  }\n}\n```\n\n### Growth Tools\n\n#### List Growth Tools\n\n```bash\nGET \u002Fmanychat\u002Ffb\u002Fpage\u002FgetGrowthTools\n```\n\nRate limit: 100 queries per second\n\n### OTN Topics\n\n#### List OTN Topics\n\n```bash\nGET \u002Fmanychat\u002Ffb\u002Fpage\u002FgetOtnTopics\n```\n\nRate limit: 100 queries per second\n\n### Subscriber Operations\n\n#### Get Subscriber Info\n\n```bash\nGET \u002Fmanychat\u002Ffb\u002Fsubscriber\u002FgetInfo?subscriber_id=123456789\n```\n\nRate limit: 10 queries per second\n\n**Response:**\n```json\n{\n  \"status\": \"success\",\n  \"data\": {\n    \"id\": 123456789,\n    \"name\": \"John Doe\",\n    \"first_name\": \"John\",\n    \"last_name\": \"Doe\",\n    \"gender\": \"male\",\n    \"profile_pic\": \"https:\u002F\u002F...\",\n    \"subscribed\": \"2025-01-15T10:30:00Z\",\n    \"last_interaction\": \"2025-02-01T14:20:00Z\",\n    \"tags\": [{\"id\": 1, \"name\": \"VIP\"}],\n    \"custom_fields\": [{\"id\": 1, \"name\": \"phone\", \"value\": \"+1234567890\"}]\n  }\n}\n```\n\n#### Find Subscriber by Name\n\n```bash\nGET \u002Fmanychat\u002Ffb\u002Fsubscriber\u002FfindByName?name=John%20Doe\n```\n\nRate limit: 10 queries per second. Maximum 100 results.\n\n#### Find Subscriber by Custom Field\n\n```bash\nGET \u002Fmanychat\u002Ffb\u002Fsubscriber\u002FfindByCustomField?field_id=123&field_value=value\n```\n\nRate limit: 10 queries per second. Works with Text and Number fields. Maximum 100 results.\n\n#### Find Subscriber by System Field\n\n```bash\nGET \u002Fmanychat\u002Ffb\u002Fsubscriber\u002FfindBySystemField?email=john@example.com\n```\n\n```bash\nGET \u002Fmanychat\u002Ffb\u002Fsubscriber\u002FfindBySystemField?phone=+1234567890\n```\n\nRate limit: 50 queries per second. Set either `email` OR `phone` parameter.\n\n#### Get Subscriber by User Ref\n\n```bash\nGET \u002Fmanychat\u002Ffb\u002Fsubscriber\u002FgetInfoByUserRef?user_ref=123456\n```\n\n#### Create Subscriber\n\n```bash\nPOST \u002Fmanychat\u002Ffb\u002Fsubscriber\u002FcreateSubscriber\nContent-Type: application\u002Fjson\n\n{\n  \"first_name\": \"John\",\n  \"last_name\": \"Doe\",\n  \"phone\": \"+1234567890\",\n  \"email\": \"john@example.com\",\n  \"gender\": \"male\",\n  \"has_opt_in_sms\": true,\n  \"has_opt_in_email\": true,\n  \"consent_phrase\": \"I agree to receive messages\"\n}\n```\n\nRate limit: 10 queries per second\n\n**Note:** Importing subscribers with phone or email requires special permissions from ManyChat. Contact ManyChat support to enable this feature for your account.\n\n#### Update Subscriber\n\n```bash\nPOST \u002Fmanychat\u002Ffb\u002Fsubscriber\u002FupdateSubscriber\nContent-Type: application\u002Fjson\n\n{\n  \"subscriber_id\": 123456789,\n  \"first_name\": \"John\",\n  \"last_name\": \"Smith\",\n  \"phone\": \"+1234567890\",\n  \"email\": \"john.smith@example.com\"\n}\n```\n\nRate limit: 10 queries per second\n\n#### Add Tag to Subscriber\n\n```bash\nPOST \u002Fmanychat\u002Ffb\u002Fsubscriber\u002FaddTag\nContent-Type: application\u002Fjson\n\n{\n  \"subscriber_id\": 123456789,\n  \"tag_id\": 1\n}\n```\n\nRate limit: 10 queries per second\n\n#### Add Tag by Name\n\n```bash\nPOST \u002Fmanychat\u002Ffb\u002Fsubscriber\u002FaddTagByName\nContent-Type: application\u002Fjson\n\n{\n  \"subscriber_id\": 123456789,\n  \"tag_name\": \"VIP\"\n}\n```\n\nRate limit: 10 queries per second\n\n#### Remove Tag from Subscriber\n\n```bash\nPOST \u002Fmanychat\u002Ffb\u002Fsubscriber\u002FremoveTag\nContent-Type: application\u002Fjson\n\n{\n  \"subscriber_id\": 123456789,\n  \"tag_id\": 1\n}\n```\n\nRate limit: 10 queries per second\n\n#### Remove Tag by Name\n\n```bash\nPOST \u002Fmanychat\u002Ffb\u002Fsubscriber\u002FremoveTagByName\nContent-Type: application\u002Fjson\n\n{\n  \"subscriber_id\": 123456789,\n  \"tag_name\": \"VIP\"\n}\n```\n\nRate limit: 10 queries per second\n\n#### Set Custom Field\n\n```bash\nPOST \u002Fmanychat\u002Ffb\u002Fsubscriber\u002FsetCustomField\nContent-Type: application\u002Fjson\n\n{\n  \"subscriber_id\": 123456789,\n  \"field_id\": 1,\n  \"field_value\": \"+1234567890\"\n}\n```\n\nRate limit: 10 queries per second\n\n#### Set Custom Field by Name\n\n```bash\nPOST \u002Fmanychat\u002Ffb\u002Fsubscriber\u002FsetCustomFieldByName\nContent-Type: application\u002Fjson\n\n{\n  \"subscriber_id\": 123456789,\n  \"field_name\": \"phone_number\",\n  \"field_value\": \"+1234567890\"\n}\n```\n\nRate limit: 10 queries per second\n\n#### Set Multiple Custom Fields\n\n```bash\nPOST \u002Fmanychat\u002Ffb\u002Fsubscriber\u002FsetCustomFields\nContent-Type: application\u002Fjson\n\n{\n  \"subscriber_id\": 123456789,\n  \"fields\": [\n    {\"field_id\": 1, \"field_value\": \"value1\"},\n    {\"field_name\": \"field2\", \"field_value\": \"value2\"}\n  ]\n}\n```\n\nRate limit: 10 queries per second. Maximum 20 fields per request.\n\n#### Verify Subscriber by Signed Request\n\n```bash\nPOST \u002Fmanychat\u002Ffb\u002Fsubscriber\u002FverifyBySignedRequest\nContent-Type: application\u002Fjson\n\n{\n  \"subscriber_id\": 123456789,\n  \"signed_request\": \"signed_request_token\"\n}\n```\n\nRate limit: 10 queries per second\n\n### Sending Operations\n\n#### Send Content\n\n```bash\nPOST \u002Fmanychat\u002Ffb\u002Fsending\u002FsendContent\nContent-Type: application\u002Fjson\n\n{\n  \"subscriber_id\": 123456789,\n  \"data\": {\n    \"version\": \"v2\",\n    \"content\": {\n      \"messages\": [\n        {\n          \"type\": \"text\",\n          \"text\": \"Hello! How can I help you today?\"\n        }\n      ]\n    }\n  },\n  \"message_tag\": \"CONFIRMED_EVENT_UPDATE\"\n}\n```\n\nRate limit: 25 queries per second\n\n**Message Tags:** Required for sending outside the 24-hour messaging window\n- `CONFIRMED_EVENT_UPDATE`\n- `POST_PURCHASE_UPDATE`\n- `ACCOUNT_UPDATE`\n\n**OTN (One-Time Notification):**\n```json\n{\n  \"subscriber_id\": 123456789,\n  \"data\": {...},\n  \"otn_topic_name\": \"Price Drop Alert\"\n}\n```\n\n#### Send Content by User Ref\n\n```bash\nPOST \u002Fmanychat\u002Ffb\u002Fsending\u002FsendContentByUserRef\nContent-Type: application\u002Fjson\n\n{\n  \"user_ref\": 123456,\n  \"data\": {\n    \"version\": \"v2\",\n    \"content\": {\n      \"messages\": [\n        {\n          \"type\": \"text\",\n          \"text\": \"Welcome!\"\n        }\n      ]\n    }\n  }\n}\n```\n\nRate limit: 25 queries per second\n\n#### Send Flow\n\n```bash\nPOST \u002Fmanychat\u002Ffb\u002Fsending\u002FsendFlow\nContent-Type: application\u002Fjson\n\n{\n  \"subscriber_id\": 123456789,\n  \"flow_ns\": \"content123456\"\n}\n```\n\nRate limit: 20 queries per second, maximum 100 per subscriber per hour\n\n## Message Content Format\n\nManyChat uses a structured content format for sending messages:\n\n### Text Message\n\n```json\n{\n  \"version\": \"v2\",\n  \"content\": {\n    \"messages\": [\n      {\n        \"type\": \"text\",\n        \"text\": \"Your message here\"\n      }\n    ]\n  }\n}\n```\n\n### Image Message\n\n```json\n{\n  \"version\": \"v2\",\n  \"content\": {\n    \"messages\": [\n      {\n        \"type\": \"image\",\n        \"url\": \"https:\u002F\u002Fexample.com\u002Fimage.jpg\"\n      }\n    ]\n  }\n}\n```\n\n### Quick Replies\n\n```json\n{\n  \"version\": \"v2\",\n  \"content\": {\n    \"messages\": [\n      {\n        \"type\": \"text\",\n        \"text\": \"Choose an option:\",\n        \"quick_replies\": [\n          {\"type\": \"node\", \"caption\": \"Option 1\", \"target\": \"content123\"},\n          {\"type\": \"node\", \"caption\": \"Option 2\", \"target\": \"content456\"}\n        ]\n      }\n    ]\n  }\n}\n```\n\n### Buttons\n\n```json\n{\n  \"version\": \"v2\",\n  \"content\": {\n    \"messages\": [\n      {\n        \"type\": \"text\",\n        \"text\": \"Click a button:\",\n        \"buttons\": [\n          {\"type\": \"url\", \"caption\": \"Visit Website\", \"url\": \"https:\u002F\u002Fexample.com\"},\n          {\"type\": \"flow\", \"caption\": \"Start Flow\", \"target\": \"content123\"}\n        ]\n      }\n    ]\n  }\n}\n```\n\n## Code Examples\n\n### JavaScript\n\n```javascript\n\u002F\u002F Get page info\nconst response = await fetch(\n  'https:\u002F\u002Fgateway.maton.ai\u002Fmanychat\u002Ffb\u002Fpage\u002FgetInfo',\n  {\n    headers: {\n      'Authorization': `Bearer ${process.env.MATON_API_KEY}`\n    }\n  }\n);\nconst data = await response.json();\n\n\u002F\u002F Send a message\nconst sendResponse = await fetch(\n  'https:\u002F\u002Fgateway.maton.ai\u002Fmanychat\u002Ffb\u002Fsending\u002FsendContent',\n  {\n    method: 'POST',\n    headers: {\n      'Authorization': `Bearer ${process.env.MATON_API_KEY}`,\n      'Content-Type': 'application\u002Fjson'\n    },\n    body: JSON.stringify({\n      subscriber_id: 123456789,\n      data: {\n        version: 'v2',\n        content: {\n          messages: [{ type: 'text', text: 'Hello!' }]\n        }\n      }\n    })\n  }\n);\n```\n\n### Python\n\n```python\nimport os\nimport requests\n\n# Get page info\nresponse = requests.get(\n    'https:\u002F\u002Fgateway.maton.ai\u002Fmanychat\u002Ffb\u002Fpage\u002FgetInfo',\n    headers={'Authorization': f'Bearer {os.environ[\"MATON_API_KEY\"]}'}\n)\ndata = response.json()\n\n# Send a message\nsend_response = requests.post(\n    'https:\u002F\u002Fgateway.maton.ai\u002Fmanychat\u002Ffb\u002Fsending\u002FsendContent',\n    headers={'Authorization': f'Bearer {os.environ[\"MATON_API_KEY\"]}'},\n    json={\n        'subscriber_id': 123456789,\n        'data': {\n            'version': 'v2',\n            'content': {\n                'messages': [{'type': 'text', 'text': 'Hello!'}]\n            }\n        }\n    }\n)\n```\n\n## Notes\n\n- Subscriber IDs are unique within your ManyChat page\n- Flow namespaces (flow_ns) are used to identify specific automation flows\n- The `message_tag` parameter is required when sending messages outside the 24-hour messaging window\n- OTN (One-Time Notification) allows sending one message per topic subscription\n- Most POST endpoints return `{\"status\": \"success\"}` on success\n- IMPORTANT: When using curl commands, use `curl -g` when URLs contain brackets to disable glob parsing\n- IMPORTANT: When piping curl output to `jq` or other commands, environment variables like `$MATON_API_KEY` may not expand correctly in some shell environments\n\n## Error Handling\n\n| Status | Meaning |\n|--------|---------|\n| 400 | Missing ManyChat connection |\n| 401 | Invalid or missing Maton API key |\n| 429 | Rate limited |\n| 4xx\u002F5xx | Passthrough error from ManyChat API |\n\n### ManyChat Error Codes\n\n| Code | Meaning |\n|------|---------|\n| 2011 | Subscriber not found |\n| 2012 | User ref not found |\n| 3011 | Invalid message content |\n| 3021 | Message tag required |\n| 3031 | OTN topic not found |\n\n### Troubleshooting: API Key Issues\n\n1. Check that the `MATON_API_KEY` environment variable is set:\n\n```bash\necho $MATON_API_KEY\n```\n\n2. Verify the API key is valid by listing connections:\n\n```bash\npython \u003C\u003C'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https:\u002F\u002Fctrl.maton.ai\u002Fconnections')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n```\n\n### Troubleshooting: Invalid App Name\n\n1. Ensure your URL path starts with `manychat`. For example:\n\n- Correct: `https:\u002F\u002Fgateway.maton.ai\u002Fmanychat\u002Ffb\u002Fpage\u002FgetInfo`\n- Incorrect: `https:\u002F\u002Fgateway.maton.ai\u002Ffb\u002Fpage\u002FgetInfo`\n\n## Resources\n\n- [ManyChat API Documentation](https:\u002F\u002Fapi.manychat.com\u002Fswagger)\n- [ManyChat API Key Generation Guide](https:\u002F\u002Fhelp.manychat.com\u002Fhc\u002Fen-us\u002Farticles\u002F14959510331420)\n- [ManyChat Dev Program](https:\u002F\u002Fhelp.manychat.com\u002Fhc\u002Fen-us\u002Farticles\u002F14281269835548)\n- [Maton Community](https:\u002F\u002Fdiscord.com\u002Finvite\u002FdBfFAcefs2)\n- [Maton Support](mailto:support@maton.ai)\n","# ManyChat\n\nAccess the ManyChat API with managed authentication. Manage subscribers, tags, custom fields, flows, and send messages through chat automation.\n\n## Quick Start\n\n```bash\n# Get page info\npython \u003C\u003C'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https:\u002F\u002Fgateway.maton.ai\u002Fmanychat\u002Ffb\u002Fpage\u002FgetInfo')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n```\n\n## Base URL\n\n```\nhttps:\u002F\u002Fgateway.maton.ai\u002Fmanychat\u002F{native-api-path}\n```\n\nReplace `{native-api-path}` with the actual ManyChat API endpoint path. The gateway proxies requests to `api.manychat.com` and automatically injects your API token.\n\n## Authentication\n\nAll requests require the Maton API key in the Authorization header:\n\n```\nAuthorization: Bearer $MATON_API_KEY\n```\n\n**Environment Variable:** Set your API key as `MATON_API_KEY`:\n\n```bash\nexport MATON_API_KEY=\"YOUR_API_KEY\"\n```\n\n### Getting Your API Key\n\n1. Sign in or create an account at [maton.ai](https:\u002F\u002Fmaton.ai)\n2. Go to [maton.ai\u002Fsettings](https:\u002F\u002Fmaton.ai\u002Fsettings)\n3. Copy your API key\n\n## Connection Management\n\nManage your ManyChat connections at `https:\u002F\u002Fctrl.maton.ai`.\n\n### List Connections\n\n```bash\npython \u003C\u003C'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https:\u002F\u002Fctrl.maton.ai\u002Fconnections?app=manychat&status=ACTIVE')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n```\n\n### Create Connection\n\n```bash\npython \u003C\u003C'EOF'\nimport urllib.request, os, json\ndata = json.dumps({'app': 'manychat'}).encode()\nreq = urllib.request.Request('https:\u002F\u002Fctrl.maton.ai\u002Fconnections', data=data, method='POST')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nreq.add_header('Content-Type', 'application\u002Fjson')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n```\n\n### Get Connection\n\n```bash\npython \u003C\u003C'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https:\u002F\u002Fctrl.maton.ai\u002Fconnections\u002F{connection_id}')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n```\n\n**Response:**\n```json\n{\n  \"connection\": {\n    \"connection_id\": \"21fd90f9-5935-43cd-b6c8-bde9d915ca80\",\n    \"status\": \"ACTIVE\",\n    \"creation_time\": \"2025-12-08T07:20:53.488460Z\",\n    \"last_updated_time\": \"2026-01-31T20:03:32.593153Z\",\n    \"url\": \"https:\u002F\u002Fconnect.maton.ai\u002F?session_token=...\",\n    \"app\": \"manychat\",\n    \"metadata\": {}\n  }\n}\n```\n\nComplete the connection by providing your ManyChat API key through the connection URL.\n\n### Delete Connection\n\n```bash\npython \u003C\u003C'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https:\u002F\u002Fctrl.maton.ai\u002Fconnections\u002F{connection_id}', method='DELETE')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n```\n\n### Specifying Connection\n\nIf you have multiple ManyChat connections, specify which one to use with the `Maton-Connection` header:\n\n```bash\npython \u003C\u003C'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https:\u002F\u002Fgateway.maton.ai\u002Fmanychat\u002Ffb\u002Fpage\u002FgetInfo')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nreq.add_header('Maton-Connection', '21fd90f9-5935-43cd-b6c8-bde9d915ca80')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n```\n\nIf omitted, the gateway uses the default (oldest) active connection.\n\n## API Reference\n\n### Page Operations\n\n#### Get Page Info\n\n```bash\nGET \u002Fmanychat\u002Ffb\u002Fpage\u002FgetInfo\n```\n\nRate limit: 100 queries per second\n\n**Response:**\n```json\n{\n  \"status\": \"success\",\n  \"data\": {\n    \"id\": 123456789,\n    \"name\": \"Page Name\",\n    \"category\": \"Business\",\n    \"avatar_link\": \"https:\u002F\u002F...\",\n    \"username\": \"pagename\",\n    \"about\": \"About text\",\n    \"description\": \"Page description\",\n    \"is_pro\": true,\n    \"timezone\": \"America\u002FNew_York\"\n  }\n}\n```\n\n### Tag Operations\n\n#### List Tags\n\n```bash\nGET \u002Fmanychat\u002Ffb\u002Fpage\u002FgetTags\n```\n\nRate limit: 100 queries per second\n\n**Response:**\n```json\n{\n  \"status\": \"success\",\n  \"data\": [\n    {\"id\": 1, \"name\": \"VIP\"},\n    {\"id\": 2, \"name\": \"Customer\"}\n  ]\n}\n```\n\n#### Create Tag\n\n```bash\nPOST \u002Fmanychat\u002Ffb\u002Fpage\u002FcreateTag\nContent-Type: application\u002Fjson\n\n{\n  \"name\": \"New Tag\"\n}\n```\n\nRate limit: 10 queries per second\n\n#### Remove Tag from Page\n\n```bash\nPOST \u002Fmanychat\u002Ffb\u002Fpage\u002FremoveTag\nContent-Type: application\u002Fjson\n\n{\n  \"tag_id\": 123\n}\n```\n\nRate limit: 10 queries per second. Removes tag from page and all subscribers.\n\n#### Remove Tag by Name\n\n```bash\nPOST \u002Fmanychat\u002Ffb\u002Fpage\u002FremoveTagByName\nContent-Type: application\u002Fjson\n\n{\n  \"tag_name\": \"Old Tag\"\n}\n```\n\nRate limit: 10 queries per second\n\n### Custom Field Operations\n\n#### List Custom Fields\n\n```bash\nGET \u002Fmanychat\u002Ffb\u002Fpage\u002FgetCustomFields\n```\n\nRate limit: 100 queries per second\n\n**Response:**\n```json\n{\n  \"status\": \"success\",\n  \"data\": [\n    {\"id\": 1, \"name\": \"phone_number\", \"type\": \"text\"},\n    {\"id\": 2, \"name\": \"purchase_count\", \"type\": \"number\"}\n  ]\n}\n```\n\n#### Create Custom Field\n\n```bash\nPOST \u002Fmanychat\u002Ffb\u002Fpage\u002FcreateCustomField\nContent-Type: application\u002Fjson\n\n{\n  \"caption\": \"Phone Number\",\n  \"type\": \"text\",\n  \"description\": \"Customer phone number\"\n}\n```\n\nRate limit: 10 queries per second\n\n**Field Types:** `text`, `number`, `date`, `datetime`, `boolean`\n\n### Bot Field Operations\n\n#### List Bot Fields\n\n```bash\nGET \u002Fmanychat\u002Ffb\u002Fpage\u002FgetBotFields\n```\n\nRate limit: 100 queries per second\n\n#### Create Bot Field\n\n```bash\nPOST \u002Fmanychat\u002Ffb\u002Fpage\u002FcreateBotField\nContent-Type: application\u002Fjson\n\n{\n  \"name\": \"counter\",\n  \"type\": \"number\",\n  \"description\": \"Global counter\",\n  \"value\": 0\n}\n```\n\nRate limit: 10 queries per second\n\n#### Set Bot Field\n\n```bash\nPOST \u002Fmanychat\u002Ffb\u002Fpage\u002FsetBotField\nContent-Type: application\u002Fjson\n\n{\n  \"field_id\": 123,\n  \"field_value\": 42\n}\n```\n\nRate limit: 10 queries per second\n\n#### Set Bot Field by Name\n\n```bash\nPOST \u002Fmanychat\u002Ffb\u002Fpage\u002FsetBotFieldByName\nContent-Type: application\u002Fjson\n\n{\n  \"field_name\": \"counter\",\n  \"field_value\": 42\n}\n```\n\nRate limit: 10 queries per second\n\n#### Set Multiple Bot Fields\n\n```bash\nPOST \u002Fmanychat\u002Ffb\u002Fpage\u002FsetBotFields\nContent-Type: application\u002Fjson\n\n{\n  \"fields\": [\n    {\"field_id\": 123, \"field_value\": \"value1\"},\n    {\"field_name\": \"field2\", \"field_value\": \"value2\"}\n  ]\n}\n```\n\nRate limit: 10 queries per second. Maximum 20 fields per request.\n\n### Flow Operations\n\n#### List Flows\n\n```bash\nGET \u002Fmanychat\u002Ffb\u002Fpage\u002FgetFlows\n```\n\nRate limit: 10 queries per second\n\n**Response:**\n```json\n{\n  \"status\": \"success\",\n  \"data\": {\n    \"flows\": [\n      {\"ns\": \"content123456\", \"name\": \"Welcome Flow\", \"folder_id\": 1}\n    ],\n    \"folders\": [\n      {\"id\": 1, \"name\": \"Main Folder\"}\n    ]\n  }\n}\n```\n\n### Growth Tools\n\n#### List Growth Tools\n\n```bash\nGET \u002Fmanychat\u002Ffb\u002Fpage\u002FgetGrowthTools\n```\n\nRate limit: 100 queries per second\n\n### OTN Topics\n\n#### List OTN Topics\n\n```bash\nGET \u002Fmanychat\u002Ffb\u002Fpage\u002FgetOtnTopics\n```\n\nRate limit: 100 queries per second\n\n### Subscriber Operations\n\n#### Get Subscriber Info\n\n```bash\nGET \u002Fmanychat\u002Ffb\u002Fsubscriber\u002FgetInfo?subscriber_id=123456789\n```\n\nRate limit: 10 queries per second\n\n**Response:**\n```json\n{\n  \"status\": \"success\",\n  \"data\": {\n    \"id\": 123456789,\n    \"name\": \"John Doe\",\n    \"first_name\": \"John\",\n    \"last_name\": \"Doe\",\n    \"gender\": \"male\",\n    \"profile_pic\": \"https:\u002F\u002F...\",\n    \"subscribed\": \"2025-01-15T10:30:00Z\",\n    \"last_interaction\": \"2025-02-01T14:20:00Z\",\n    \"tags\": [{\"id\": 1, \"name\": \"VIP\"}],\n    \"custom_fields\": [{\"id\": 1, \"name\": \"phone\", \"value\": \"+1234567890\"}]\n  }\n}\n```\n\n#### Find Subscriber by Name\n\n```bash\nGET \u002Fmanychat\u002Ffb\u002Fsubscriber\u002FfindByName?name=John%20Doe\n```\n\nRate limit: 10 queries per second. Maximum 100 results.\n\n#### Find Subscriber by Custom Field\n\n```bash\nGET \u002Fmanychat\u002Ffb\u002Fsubscriber\u002FfindByCustomField?field_id=123&field_value=value\n```\n\nRate limit: 10 queries per second. Works with Text and Number fields. Maximum 100 results.\n\n#### Find Subscriber by System Field\n\n```bash\nGET \u002Fmanychat\u002Ffb\u002Fsubscriber\u002FfindBySystemField?email=john@example.com\n```\n\n```bash\nGET \u002Fmanychat\u002Ffb\u002Fsubscriber\u002FfindBySystemField?phone=+1234567890\n```\n\nRate limit: 50 queries per second. Set either `email` OR `phone` parameter.\n\n#### Get Subscriber by User Ref\n\n```bash\nGET \u002Fmanychat\u002Ffb\u002Fsubscriber\u002FgetInfoByUserRef?user_ref=123456\n```\n\n#### Create Subscriber\n\n```bash\nPOST \u002Fmanychat\u002Ffb\u002Fsubscriber\u002FcreateSubscriber\nContent-Type: application\u002Fjson\n\n{\n  \"first_name\": \"John\",\n  \"last_name\": \"Doe\",\n  \"phone\": \"+1234567890\",\n  \"email\": \"john@example.com\",\n  \"gender\": \"male\",\n  \"has_opt_in_sms\": true,\n  \"has_opt_in_email\": true,\n  \"consent_phrase\": \"I agree to receive messages\"\n}\n```\n\nRate limit: 10 queries per second\n\n**Note:** Importing subscribers with phone or email requires special permissions from ManyChat. Contact ManyChat support to enable this feature for your account.\n\n#### Update Subscriber\n\n```bash\nPOST \u002Fmanychat\u002Ffb\u002Fsubscriber\u002FupdateSubscriber\nContent-Type: application\u002Fjson\n\n{\n  \"subscriber_id\": 123456789,\n  \"first_name\": \"John\",\n  \"last_name\": \"Smith\",\n  \"phone\": \"+1234567890\",\n  \"email\": \"john.smith@example.com\"\n}\n```\n\nRate limit: 10 queries per second\n\n#### Add Tag to Subscriber\n\n```bash\nPOST \u002Fmanychat\u002Ffb\u002Fsubscriber\u002FaddTag\nContent-Type: application\u002Fjson\n\n{\n  \"subscriber_id\": 123456789,\n  \"tag_id\": 1\n}\n```\n\nRate limit: 10 queries per second\n\n#### Add Tag by Name\n\n```bash\nPOST \u002Fmanychat\u002Ffb\u002Fsubscriber\u002FaddTagByName\nContent-Type: application\u002Fjson\n\n{\n  \"subscriber_id\": 123456789,\n  \"tag_name\": \"VIP\"\n}\n```\n\nRate limit: 10 queries per second\n\n#### Remove Tag from Subscriber\n\n```bash\nPOST \u002Fmanychat\u002Ffb\u002Fsubscriber\u002FremoveTag\nContent-Type: application\u002Fjson\n\n{\n  \"subscriber_id\": 123456789,\n  \"tag_id\": 1\n}\n```\n\nRate limit: 10 queries per second\n\n#### Remove Tag by Name\n\n```bash\nPOST \u002Fmanychat\u002Ffb\u002Fsubscriber\u002FremoveTagByName\nContent-Type: application\u002Fjson\n\n{\n  \"subscriber_id\": 123456789,\n  \"tag_name\": \"VIP\"\n}\n```\n\nRate limit: 10 queries per second\n\n#### Set Custom Field\n\n```bash\nPOST \u002Fmanychat\u002Ffb\u002Fsubscriber\u002FsetCustomField\nContent-Type: application\u002Fjson\n\n{\n  \"subscriber_id\": 123456789,\n  \"field_id\": 1,\n  \"field_value\": \"+1234567890\"\n}\n```\n\nRate limit: 10 queries per second\n\n#### Set Custom Field by Name\n\n```bash\nPOST \u002Fmanychat\u002Ffb\u002Fsubscriber\u002FsetCustomFieldByName\nContent-Type: application\u002Fjson\n\n{\n  \"subscriber_id\": 123456789,\n  \"field_name\": \"phone_number\",\n  \"field_value\": \"+1234567890\"\n}\n```\n\nRate limit: 10 queries per second\n\n#### Set Multiple Custom Fields\n\n```bash\nPOST \u002Fmanychat\u002Ffb\u002Fsubscriber\u002FsetCustomFields\nContent-Type: application\u002Fjson\n\n{\n  \"subscriber_id\": 123456789,\n  \"fields\": [\n    {\"field_id\": 1, \"field_value\": \"value1\"},\n    {\"field_name\": \"field2\", \"field_value\": \"value2\"}\n  ]\n}\n```\n\nRate limit: 10 queries per second. Maximum 20 fields per request.\n\n#### Verify Subscriber by Signed Request\n\n```bash\nPOST \u002Fmanychat\u002Ffb\u002Fsubscriber\u002FverifyBySignedRequest\nContent-Type: application\u002Fjson\n\n{\n  \"subscriber_id\": 123456789,\n  \"signed_request\": \"signed_request_token\"\n}\n```\n\nRate limit: 10 queries per second\n\n### Sending Operations\n\n#### Send Content\n\n```bash\nPOST \u002Fmanychat\u002Ffb\u002Fsending\u002FsendContent\nContent-Type: application\u002Fjson\n\n{\n  \"subscriber_id\": 123456789,\n  \"data\": {\n    \"version\": \"v2\",\n    \"content\": {\n      \"messages\": [\n        {\n          \"type\": \"text\",\n          \"text\": \"Hello! How can I help you today?\"\n        }\n      ]\n    }\n  },\n  \"message_tag\": \"CONFIRMED_EVENT_UPDATE\"\n}\n```\n\nRate limit: 25 queries per second\n\n**Message Tags:** Required for sending outside the 24-hour messaging window\n- `CONFIRMED_EVENT_UPDATE`\n- `POST_PURCHASE_UPDATE`\n- `ACCOUNT_UPDATE`\n\n**OTN (One-Time Notification):**\n```json\n{\n  \"subscriber_id\": 123456789,\n  \"data\": {...},\n  \"otn_topic_name\": \"Price Drop Alert\"\n}\n```\n\n#### Send Content by User Ref\n\n```bash\nPOST \u002Fmanychat\u002Ffb\u002Fsending\u002FsendContentByUserRef\nContent-Type: application\u002Fjson\n\n{\n  \"user_ref\": 123456,\n  \"data\": {\n    \"version\": \"v2\",\n    \"content\": {\n      \"messages\": [\n        {\n          \"type\": \"text\",\n          \"text\": \"Welcome!\"\n        }\n      ]\n    }\n  }\n}\n```\n\nRate limit: 25 queries per second\n\n#### Send Flow\n\n```bash\nPOST \u002Fmanychat\u002Ffb\u002Fsending\u002FsendFlow\nContent-Type: application\u002Fjson\n\n{\n  \"subscriber_id\": 123456789,\n  \"flow_ns\": \"content123456\"\n}\n```\n\nRate limit: 20 queries per second, maximum 100 per subscriber per hour\n\n## Message Content Format\n\nManyChat uses a structured content format for sending messages:\n\n### Text Message\n\n```json\n{\n  \"version\": \"v2\",\n  \"content\": {\n    \"messages\": [\n      {\n        \"type\": \"text\",\n        \"text\": \"Your message here\"\n      }\n    ]\n  }\n}\n```\n\n### Image Message\n\n```json\n{\n  \"version\": \"v2\",\n  \"content\": {\n    \"messages\": [\n      {\n        \"type\": \"image\",\n        \"url\": \"https:\u002F\u002Fexample.com\u002Fimage.jpg\"\n      }\n    ]\n  }\n}\n```\n\n### Quick Replies\n\n```json\n{\n  \"version\": \"v2\",\n  \"content\": {\n    \"messages\": [\n      {\n        \"type\": \"text\",\n        \"text\": \"Choose an option:\",\n        \"quick_replies\": [\n          {\"type\": \"node\", \"caption\": \"Option 1\", \"target\": \"content123\"},\n          {\"type\": \"node\", \"caption\": \"Option 2\", \"target\": \"content456\"}\n        ]\n      }\n    ]\n  }\n}\n```\n\n### Buttons\n\n```json\n{\n  \"version\": \"v2\",\n  \"content\": {\n    \"messages\": [\n      {\n        \"type\": \"text\",\n        \"text\": \"Click a button:\",\n        \"buttons\": [\n          {\"type\": \"url\", \"caption\": \"Visit Website\", \"url\": \"https:\u002F\u002Fexample.com\"},\n          {\"type\": \"flow\", \"caption\": \"Start Flow\", \"target\": \"content123\"}\n        ]\n      }\n    ]\n  }\n}\n```\n\n## Code Examples\n\n### JavaScript\n\n```javascript\n\u002F\u002F Get page info\nconst response = await fetch(\n  'https:\u002F\u002Fgateway.maton.ai\u002Fmanychat\u002Ffb\u002Fpage\u002FgetInfo',\n  {\n    headers: {\n      'Authorization': `Bearer ${process.env.MATON_API_KEY}`\n    }\n  }\n);\nconst data = await response.json();\n\n\u002F\u002F Send a message\nconst sendResponse = await fetch(\n  'https:\u002F\u002Fgateway.maton.ai\u002Fmanychat\u002Ffb\u002Fsending\u002FsendContent',\n  {\n    method: 'POST',\n    headers: {\n      'Authorization': `Bearer ${process.env.MATON_API_KEY}`,\n      'Content-Type': 'application\u002Fjson'\n    },\n    body: JSON.stringify({\n      subscriber_id: 123456789,\n      data: {\n        version: 'v2',\n        content: {\n          messages: [{ type: 'text', text: 'Hello!' }]\n        }\n      }\n    })\n  }\n);\n```\n\n### Python\n\n```python\nimport os\nimport requests\n\n# Get page info\nresponse = requests.get(\n    'https:\u002F\u002Fgateway.maton.ai\u002Fmanychat\u002Ffb\u002Fpage\u002FgetInfo',\n    headers={'Authorization': f'Bearer {os.environ[\"MATON_API_KEY\"]}'}\n)\ndata = response.json()\n\n# Send a message\nsend_response = requests.post(\n    'https:\u002F\u002Fgateway.maton.ai\u002Fmanychat\u002Ffb\u002Fsending\u002FsendContent',\n    headers={'Authorization': f'Bearer {os.environ[\"MATON_API_KEY\"]}'},\n    json={\n        'subscriber_id': 123456789,\n        'data': {\n            'version': 'v2',\n            'content': {\n                'messages': [{'type': 'text', 'text': 'Hello!'}]\n            }\n        }\n    }\n)\n```\n\n## Notes\n\n- Subscriber IDs are unique within your ManyChat page\n- Flow namespaces (flow_ns) are used to identify specific automation flows\n- The `message_tag` parameter is required when sending messages outside the 24-hour messaging window\n- OTN (One-Time Notification) allows sending one message per topic subscription\n- Most POST endpoints return `{\"status\": \"success\"}` on success\n- IMPORTANT: When using curl commands, use `curl -g` when URLs contain brackets to disable glob parsing\n- IMPORTANT: When piping curl output to `jq` or other commands, environment variables like `$MATON_API_KEY` may not expand correctly in some shell environments\n\n## Error Handling\n\n| Status | Meaning |\n|--------|---------|\n| 400 | Missing ManyChat connection |\n| 401 | Invalid or missing Maton API key |\n| 429 | Rate limited |\n| 4xx\u002F5xx | Passthrough error from ManyChat API |\n\n### ManyChat Error Codes\n\n| Code | Meaning |\n|------|---------|\n| 2011 | Subscriber not found |\n| 2012 | User ref not found |\n| 3011 | Invalid message content |\n| 3021 | Message tag required |\n| 3031 | OTN topic not found |\n\n### Troubleshooting: API Key Issues\n\n1. Check that the `MATON_API_KEY` environment variable is set:\n\n```bash\necho $MATON_API_KEY\n```\n\n2. Verify the API key is valid by listing connections:\n\n```bash\npython \u003C\u003C'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https:\u002F\u002Fctrl.maton.ai\u002Fconnections')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n```\n\n### Troubleshooting: Invalid App Name\n\n1. Ensure your URL path starts with `manychat`. For example:\n\n- Correct: `https:\u002F\u002Fgateway.maton.ai\u002Fmanychat\u002Ffb\u002Fpage\u002FgetInfo`\n- Incorrect: `https:\u002F\u002Fgateway.maton.ai\u002Ffb\u002Fpage\u002FgetInfo`\n\n## Resources\n\n- [ManyChat API Documentation](https:\u002F\u002Fapi.manychat.com\u002Fswagger)\n- [ManyChat API Key Generation Guide](https:\u002F\u002Fhelp.manychat.com\u002Fhc\u002Fen-us\u002Farticles\u002F14959510331420)\n- [ManyChat Dev Program](https:\u002F\u002Fhelp.manychat.com\u002Fhc\u002Fen-us\u002Farticles\u002F14281269835548)\n- [Maton Community](https:\u002F\u002Fdiscord.com\u002Finvite\u002FdBfFAcefs2)\n- [Maton Support](mailto:support@maton.ai)\n",{"name":5,"metadata":24,"description":32,"compatibility":33},{"author":25,"version":26,"clawdbot":27},"maton","1.0",{"emoji":28,"requires":29},"🧠",{"env":30},[31],"MATON_API_KEY","ManyChat API integration with managed authentication. Manage subscribers, tags, custom fields, and send messages through Facebook Messenger.\nUse this skill when users want to manage ManyChat subscribers, send messages, add\u002Fremove tags, or work with custom fields and bot automation.\nFor other third party apps, use the api-gateway skill (https:\u002F\u002Fclawhub.ai\u002Fbyungkyu\u002Fapi-gateway).\n","Requires network access and valid Maton API key","main","54afe4b75ed2eb8f0feabb2f5b57dfa4bcbb3c44",".agents\u002Fskills\u002Fmanychat","https:\u002F\u002Fgithub.com\u002Fmeghal86\u002Fstacksignal","https:\u002F\u002Fgithub.com\u002Fmeghal86","2026-05-17 14:11:28",{"source":8,"skillName":5,"commands":41,"prompt":51,"zipAvailable":52},[42,45,48],{"tool":43,"command":44},"npx","npx skills add meghal86\u002Fstacksignal --skill manychat",{"tool":46,"command":47},"bunx","bunx skills add meghal86\u002Fstacksignal --skill manychat",{"tool":49,"command":50},"pnpm","pnpm dlx skills add meghal86\u002Fstacksignal --skill manychat","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmeghal86\u002Fstacksignal\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fmanychat\u002FSKILL.md",true,[54,60],{"path":55,"resourceType":56,"resourceTypeDesc":57,"sizeBytes":58,"sourceHtmlUrl":59},"_meta.json","REFERENCE","参考文档",448,"https:\u002F\u002Fgithub.com\u002Fmeghal86\u002Fstacksignal\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fmanychat\u002F_meta.json",{"path":61,"resourceType":62,"resourceTypeDesc":63,"sizeBytes":64,"sourceHtmlUrl":15},"LICENSE.txt","LICENSE","许可证",1072,[66,75,83,91,99,106],{"skillNo":67,"name":68,"nameZh":6,"description":69,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":70,"sourceHtmlUrl":71,"categories":72,"keywords":73,"publishedAt":74},"01M78XH0FRP65NYEDHF2BT7NB1","zvukogram","Text-to-Speech via Zvukogram API with SSML support. Use when you need to generate speech from text, create podcasts, voice notifications, or work with audio. Supports speed control, stress marks, English word transcription, and audio fragment merging.","https:\u002F\u002Fgithub.com\u002Fmeghal86\u002Fstacksignal\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fzvukogram\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fmeghal86\u002Fstacksignal\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fzvukogram\u002FSKILL.md",[],[],"2026-11-15 14:19:17",{"skillNo":76,"name":77,"nameZh":6,"description":78,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":79,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":74},"01M78XEND5ASXYB6MN8AQQGJAF","zohomail","Zoho Mail API integration with managed OAuth. Send, receive, and manage emails, folders, and labels.\nUse this skill when users want to send emails, read messages, manage folders, or work with email labels in Zoho Mail.\nFor other third party apps, use the api-gateway skill (https:\u002F\u002Fclawhub.ai\u002Fbyungkyu\u002Fapi-gateway).\nRequires network access and valid Maton API key.","https:\u002F\u002Fgithub.com\u002Fmeghal86\u002Fstacksignal\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fzohomail\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fmeghal86\u002Fstacksignal\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fzohomail\u002FSKILL.md",[],[],{"skillNo":84,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":87,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":74},"01M78XEBBV3C6DRZFAJXP6RDKS","zoho-recruit","Zoho Recruit API integration with managed OAuth. Manage candidates, job openings, interviews, and recruitment workflows.\nUse this skill when users want to read, create, update, or search recruitment data like candidates, job openings, interviews, and applications in Zoho Recruit.\nFor other third party apps, use the api-gateway skill (https:\u002F\u002Fclawhub.ai\u002Fbyungkyu\u002Fapi-gateway).\nRequires network access and valid Maton API key.","https:\u002F\u002Fgithub.com\u002Fmeghal86\u002Fstacksignal\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fzoho-recruit\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fmeghal86\u002Fstacksignal\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fzoho-recruit\u002FSKILL.md",[],[],{"skillNo":92,"name":93,"nameZh":6,"description":94,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":95,"sourceHtmlUrl":96,"categories":97,"keywords":98,"publishedAt":74},"01M78XE5CQG75DZWYSKGXFR99T","zoho-people","Zoho People API integration with managed OAuth. Manage employees, departments, designations, attendance, and leave.\nUse this skill when users want to read, create, update, or query HR data like employees, departments, designations, and forms in Zoho People.\nFor other third party apps, use the api-gateway skill (https:\u002F\u002Fclawhub.ai\u002Fbyungkyu\u002Fapi-gateway).\nRequires network access and valid Maton API key.","https:\u002F\u002Fgithub.com\u002Fmeghal86\u002Fstacksignal\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fzoho-people\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fmeghal86\u002Fstacksignal\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fzoho-people\u002FSKILL.md",[],[],{"skillNo":100,"name":101,"nameZh":6,"description":78,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":102,"sourceHtmlUrl":103,"categories":104,"keywords":105,"publishedAt":74},"01M78XDZKMZAJYFJJFT7MR5ZN2","zoho-mail","https:\u002F\u002Fgithub.com\u002Fmeghal86\u002Fstacksignal\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fzoho-mail\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fmeghal86\u002Fstacksignal\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fzoho-mail\u002FSKILL.md",[],[],{"skillNo":107,"name":108,"nameZh":6,"description":109,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":110,"sourceHtmlUrl":111,"categories":112,"keywords":113,"publishedAt":74},"01M78XDST8JK0WVDA1F3VPNWXD","zoho-inventory","Zoho Inventory API integration with managed OAuth. Manage items, sales orders, invoices, purchase orders, bills, contacts, and shipments.\nUse this skill when users want to read, create, update, or delete inventory items, sales orders, invoices, purchase orders, bills, or other inventory records in Zoho Inventory.\nFor other third party apps, use the api-gateway skill (https:\u002F\u002Fclawhub.ai\u002Fbyungkyu\u002Fapi-gateway).\nRequires network access and valid Maton API key.","https:\u002F\u002Fgithub.com\u002Fmeghal86\u002Fstacksignal\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fzoho-inventory\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fmeghal86\u002Fstacksignal\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fzoho-inventory\u002FSKILL.md",[],[]]