{
  "schemaVersion": "1.0",
  "item": {
    "slug": "hubspot-api",
    "name": "HubSpot",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/byungkyu/hubspot-api",
    "canonicalUrl": "https://clawhub.ai/byungkyu/hubspot-api",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/hubspot-api",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=hubspot-api",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "SKILL.md",
      "LICENSE.txt"
    ],
    "primaryDoc": "SKILL.md",
    "quickSetup": [
      "Download the package from Yavira.",
      "Extract the archive and review SKILL.md first.",
      "Import or place the package into your OpenClaw setup."
    ],
    "agentAssist": {
      "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
      "steps": [
        "Download the package from Yavira.",
        "Extract it into a folder your agent can access.",
        "Paste one of the prompts below and point your agent at the extracted folder."
      ],
      "prompts": [
        {
          "label": "New install",
          "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete."
        },
        {
          "label": "Upgrade existing",
          "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run."
        }
      ]
    },
    "sourceHealth": {
      "source": "tencent",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-04-30T16:55:25.780Z",
      "expiresAt": "2026-05-07T16:55:25.780Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=network",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=network",
        "contentDisposition": "attachment; filename=\"network-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null
      },
      "scope": "source",
      "summary": "Source download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this source.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/hubspot-api"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    },
    "downloadPageUrl": "https://openagent3.xyz/downloads/hubspot-api",
    "agentPageUrl": "https://openagent3.xyz/skills/hubspot-api/agent",
    "manifestUrl": "https://openagent3.xyz/skills/hubspot-api/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/hubspot-api/agent.md"
  },
  "agentAssist": {
    "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
    "steps": [
      "Download the package from Yavira.",
      "Extract it into a folder your agent can access.",
      "Paste one of the prompts below and point your agent at the extracted folder."
    ],
    "prompts": [
      {
        "label": "New install",
        "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete."
      },
      {
        "label": "Upgrade existing",
        "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run."
      }
    ]
  },
  "documentation": {
    "source": "clawhub",
    "primaryDoc": "SKILL.md",
    "sections": [
      {
        "title": "HubSpot",
        "body": "Access the HubSpot CRM API with managed OAuth authentication. Create and manage contacts, companies, deals, and their associations."
      },
      {
        "title": "Quick Start",
        "body": "# List contacts\npython <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://gateway.maton.ai/hubspot/crm/v3/objects/contacts?limit=10&properties=email,firstname,lastname')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF"
      },
      {
        "title": "Base URL",
        "body": "https://gateway.maton.ai/hubspot/{native-api-path}\n\nReplace {native-api-path} with the actual HubSpot API endpoint path. The gateway proxies requests to api.hubapi.com and automatically injects your OAuth token."
      },
      {
        "title": "Authentication",
        "body": "All requests require the Maton API key in the Authorization header:\n\nAuthorization: Bearer $MATON_API_KEY\n\nEnvironment Variable: Set your API key as MATON_API_KEY:\n\nexport MATON_API_KEY=\"YOUR_API_KEY\""
      },
      {
        "title": "Getting Your API Key",
        "body": "Sign in or create an account at maton.ai\nGo to maton.ai/settings\nCopy your API key"
      },
      {
        "title": "Connection Management",
        "body": "Manage your HubSpot OAuth connections at https://ctrl.maton.ai."
      },
      {
        "title": "List Connections",
        "body": "python <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://ctrl.maton.ai/connections?app=hubspot&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"
      },
      {
        "title": "Create Connection",
        "body": "python <<'EOF'\nimport urllib.request, os, json\ndata = json.dumps({'app': 'hubspot'}).encode()\nreq = urllib.request.Request('https://ctrl.maton.ai/connections', data=data, method='POST')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nreq.add_header('Content-Type', 'application/json')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF"
      },
      {
        "title": "Get Connection",
        "body": "python <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://ctrl.maton.ai/connections/{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\nResponse:\n\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://connect.maton.ai/?session_token=...\",\n    \"app\": \"hubspot\",\n    \"metadata\": {}\n  }\n}\n\nOpen the returned url in a browser to complete OAuth authorization."
      },
      {
        "title": "Delete Connection",
        "body": "python <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://ctrl.maton.ai/connections/{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"
      },
      {
        "title": "Specifying Connection",
        "body": "If you have multiple HubSpot connections, specify which one to use with the Maton-Connection header:\n\npython <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://gateway.maton.ai/hubspot/crm/v3/objects/contacts')\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\nIf omitted, the gateway uses the default (oldest) active connection."
      },
      {
        "title": "Contacts",
        "body": "List Contacts\n\nGET /hubspot/crm/v3/objects/contacts?limit=100&properties=email,firstname,lastname,phone\n\nWith pagination:\n\nGET /hubspot/crm/v3/objects/contacts?limit=100&properties=email,firstname&after={cursor}\n\nGet Contact\n\nGET /hubspot/crm/v3/objects/contacts/{contactId}?properties=email,firstname,lastname\n\nCreate Contact\n\nPOST /hubspot/crm/v3/objects/contacts\nContent-Type: application/json\n\n{\n  \"properties\": {\n    \"email\": \"john@example.com\",\n    \"firstname\": \"John\",\n    \"lastname\": \"Doe\",\n    \"phone\": \"+1234567890\"\n  }\n}\n\nUpdate Contact\n\nPATCH /hubspot/crm/v3/objects/contacts/{contactId}\nContent-Type: application/json\n\n{\n  \"properties\": {\n    \"phone\": \"+0987654321\"\n  }\n}\n\nDelete Contact\n\nDELETE /hubspot/crm/v3/objects/contacts/{contactId}\n\nSearch Contacts\n\nPOST /hubspot/crm/v3/objects/contacts/search\nContent-Type: application/json\n\n{\n  \"filterGroups\": [{\n    \"filters\": [{\n      \"propertyName\": \"email\",\n      \"operator\": \"EQ\",\n      \"value\": \"john@example.com\"\n    }]\n  }],\n  \"properties\": [\"email\", \"firstname\", \"lastname\"]\n}"
      },
      {
        "title": "Companies",
        "body": "List Companies\n\nGET /hubspot/crm/v3/objects/companies?limit=100&properties=name,domain,industry\n\nGet Company\n\nGET /hubspot/crm/v3/objects/companies/{companyId}?properties=name,domain,industry\n\nCreate Company\n\nPOST /hubspot/crm/v3/objects/companies\nContent-Type: application/json\n\n{\n  \"properties\": {\n    \"name\": \"Acme Corp\",\n    \"domain\": \"acme.com\",\n    \"industry\": \"COMPUTER_SOFTWARE\"\n  }\n}\n\nNote: The industry property requires specific enum values (e.g., COMPUTER_SOFTWARE, FINANCE, HEALTHCARE). Use the List Properties endpoint to get valid values.\n\nUpdate Company\n\nPATCH /hubspot/crm/v3/objects/companies/{companyId}\nContent-Type: application/json\n\n{\n  \"properties\": {\n    \"industry\": \"COMPUTER_SOFTWARE\",\n    \"numberofemployees\": \"50\"\n  }\n}\n\nDelete Company\n\nDELETE /hubspot/crm/v3/objects/companies/{companyId}\n\nSearch Companies\n\nPOST /hubspot/crm/v3/objects/companies/search\nContent-Type: application/json\n\n{\n  \"filterGroups\": [{\n    \"filters\": [{\n      \"propertyName\": \"domain\",\n      \"operator\": \"CONTAINS_TOKEN\",\n      \"value\": \"*\"\n    }]\n  }],\n  \"properties\": [\"name\", \"domain\"],\n  \"limit\": 10\n}"
      },
      {
        "title": "Deals",
        "body": "List Deals\n\nGET /hubspot/crm/v3/objects/deals?limit=100&properties=dealname,amount,dealstage\n\nGet Deal\n\nGET /hubspot/crm/v3/objects/deals/{dealId}?properties=dealname,amount,dealstage\n\nCreate Deal\n\nPOST /hubspot/crm/v3/objects/deals\nContent-Type: application/json\n\n{\n  \"properties\": {\n    \"dealname\": \"New Deal\",\n    \"amount\": \"10000\",\n    \"dealstage\": \"appointmentscheduled\"\n  }\n}\n\nUpdate Deal\n\nPATCH /hubspot/crm/v3/objects/deals/{dealId}\nContent-Type: application/json\n\n{\n  \"properties\": {\n    \"amount\": \"15000\",\n    \"dealstage\": \"qualifiedtobuy\"\n  }\n}\n\nDelete Deal\n\nDELETE /hubspot/crm/v3/objects/deals/{dealId}"
      },
      {
        "title": "Associations (v4 API)",
        "body": "Associate Objects\n\nPUT /hubspot/crm/v4/objects/{fromObjectType}/{fromObjectId}/associations/{toObjectType}/{toObjectId}\nContent-Type: application/json\n\n[{\"associationCategory\": \"HUBSPOT_DEFINED\", \"associationTypeId\": 279}]\n\nCommon association type IDs:\n\n279 - Contact to Company\n3 - Deal to Contact\n341 - Deal to Company\n\nList Associations\n\nGET /hubspot/crm/v4/objects/{objectType}/{objectId}/associations/{toObjectType}"
      },
      {
        "title": "Batch Operations",
        "body": "Batch Read\n\nPOST /hubspot/crm/v3/objects/{objectType}/batch/read\nContent-Type: application/json\n\n{\n  \"properties\": [\"email\", \"firstname\"],\n  \"inputs\": [{\"id\": \"123\"}, {\"id\": \"456\"}]\n}\n\nBatch Create\n\nPOST /hubspot/crm/v3/objects/{objectType}/batch/create\nContent-Type: application/json\n\n{\n  \"inputs\": [\n    {\"properties\": {\"email\": \"one@example.com\", \"firstname\": \"One\"}},\n    {\"properties\": {\"email\": \"two@example.com\", \"firstname\": \"Two\"}}\n  ]\n}\n\nBatch Update\n\nPOST /hubspot/crm/v3/objects/{objectType}/batch/update\nContent-Type: application/json\n\n{\n  \"inputs\": [\n    {\"id\": \"123\", \"properties\": {\"firstname\": \"Updated\"}},\n    {\"id\": \"456\", \"properties\": {\"firstname\": \"Also Updated\"}}\n  ]\n}\n\nBatch Archive\n\nPOST /hubspot/crm/v3/objects/{objectType}/batch/archive\nContent-Type: application/json\n\n{\n  \"inputs\": [{\"id\": \"123\"}, {\"id\": \"456\"}]\n}"
      },
      {
        "title": "Properties",
        "body": "List Properties\n\nGET /hubspot/crm/v3/properties/{objectType}"
      },
      {
        "title": "Search Operators",
        "body": "EQ - Equal to\nNEQ - Not equal to\nLT / LTE - Less than / Less than or equal\nGT / GTE - Greater than / Greater than or equal\nCONTAINS_TOKEN - Contains token\nNOT_CONTAINS_TOKEN - Does not contain token"
      },
      {
        "title": "Pagination",
        "body": "List endpoints return a paging.next.after cursor:\n\n{\n  \"results\": [...],\n  \"paging\": {\n    \"next\": {\n      \"after\": \"12345\"\n    }\n  }\n}\n\nUse the after query parameter to fetch the next page:\n\nGET /hubspot/crm/v3/objects/contacts?limit=100&after=12345"
      },
      {
        "title": "JavaScript",
        "body": "const response = await fetch('https://gateway.maton.ai/hubspot/crm/v3/objects/contacts', {\n  method: 'POST',\n  headers: {\n    'Content-Type': 'application/json',\n    'Authorization': `Bearer ${process.env.MATON_API_KEY}`\n  },\n  body: JSON.stringify({\n    properties: { email: 'john@example.com', firstname: 'John' }\n  })\n});"
      },
      {
        "title": "Python",
        "body": "import os\nimport requests\n\nresponse = requests.post(\n    'https://gateway.maton.ai/hubspot/crm/v3/objects/contacts',\n    headers={'Authorization': f'Bearer {os.environ[\"MATON_API_KEY\"]}'},\n    json={'properties': {'email': 'john@example.com', 'firstname': 'John'}}\n)"
      },
      {
        "title": "Notes",
        "body": "Batch operations support up to 100 records per request\nArchive/Delete is a soft delete - records can be restored within 90 days\nDelete endpoints return HTTP 204 (No Content) on success\nThe industry property on companies requires specific enum values\nIMPORTANT: When using curl commands, use curl -g when URLs contain brackets (fields[], sort[], records[]) to disable glob parsing\nIMPORTANT: When piping curl output to jq or other commands, environment variables like $MATON_API_KEY may not expand correctly in some shell environments. You may get \"Invalid API key\" errors when piping."
      },
      {
        "title": "Error Handling",
        "body": "StatusMeaning400Missing HubSpot connection401Invalid or missing Maton API key429Rate limited (10 req/sec per account)4xx/5xxPassthrough error from HubSpot API"
      },
      {
        "title": "Troubleshooting: API Key Issues",
        "body": "Check that the MATON_API_KEY environment variable is set:\n\necho $MATON_API_KEY\n\nVerify the API key is valid by listing connections:\n\npython <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://ctrl.maton.ai/connections')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF"
      },
      {
        "title": "Troubleshooting: Invalid App Name",
        "body": "Ensure your URL path starts with hubspot. For example:\n\nCorrect: https://gateway.maton.ai/hubspot/crm/v3/objects/contacts\nIncorrect: https://gateway.maton.ai/crm/v3/objects/contacts"
      },
      {
        "title": "Resources",
        "body": "HubSpot API Overview\nList Contacts\nCreate Contact\nSearch Contacts\nList Companies\nCreate Company\nList Deals\nCreate Deal\nAssociations API\nProperties API\nSearch Reference\nMaton Community\nMaton Support"
      }
    ],
    "body": "HubSpot\n\nAccess the HubSpot CRM API with managed OAuth authentication. Create and manage contacts, companies, deals, and their associations.\n\nQuick Start\n# List contacts\npython <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://gateway.maton.ai/hubspot/crm/v3/objects/contacts?limit=10&properties=email,firstname,lastname')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n\nBase URL\nhttps://gateway.maton.ai/hubspot/{native-api-path}\n\n\nReplace {native-api-path} with the actual HubSpot API endpoint path. The gateway proxies requests to api.hubapi.com and automatically injects your OAuth token.\n\nAuthentication\n\nAll requests require the Maton API key in the Authorization header:\n\nAuthorization: Bearer $MATON_API_KEY\n\n\nEnvironment Variable: Set your API key as MATON_API_KEY:\n\nexport MATON_API_KEY=\"YOUR_API_KEY\"\n\nGetting Your API Key\nSign in or create an account at maton.ai\nGo to maton.ai/settings\nCopy your API key\nConnection Management\n\nManage your HubSpot OAuth connections at https://ctrl.maton.ai.\n\nList Connections\npython <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://ctrl.maton.ai/connections?app=hubspot&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\nCreate Connection\npython <<'EOF'\nimport urllib.request, os, json\ndata = json.dumps({'app': 'hubspot'}).encode()\nreq = urllib.request.Request('https://ctrl.maton.ai/connections', data=data, method='POST')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nreq.add_header('Content-Type', 'application/json')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n\nGet Connection\npython <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://ctrl.maton.ai/connections/{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\nResponse:\n\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://connect.maton.ai/?session_token=...\",\n    \"app\": \"hubspot\",\n    \"metadata\": {}\n  }\n}\n\n\nOpen the returned url in a browser to complete OAuth authorization.\n\nDelete Connection\npython <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://ctrl.maton.ai/connections/{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\nSpecifying Connection\n\nIf you have multiple HubSpot connections, specify which one to use with the Maton-Connection header:\n\npython <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://gateway.maton.ai/hubspot/crm/v3/objects/contacts')\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\nAPI Reference\nContacts\nList Contacts\nGET /hubspot/crm/v3/objects/contacts?limit=100&properties=email,firstname,lastname,phone\n\n\nWith pagination:\n\nGET /hubspot/crm/v3/objects/contacts?limit=100&properties=email,firstname&after={cursor}\n\nGet Contact\nGET /hubspot/crm/v3/objects/contacts/{contactId}?properties=email,firstname,lastname\n\nCreate Contact\nPOST /hubspot/crm/v3/objects/contacts\nContent-Type: application/json\n\n{\n  \"properties\": {\n    \"email\": \"john@example.com\",\n    \"firstname\": \"John\",\n    \"lastname\": \"Doe\",\n    \"phone\": \"+1234567890\"\n  }\n}\n\nUpdate Contact\nPATCH /hubspot/crm/v3/objects/contacts/{contactId}\nContent-Type: application/json\n\n{\n  \"properties\": {\n    \"phone\": \"+0987654321\"\n  }\n}\n\nDelete Contact\nDELETE /hubspot/crm/v3/objects/contacts/{contactId}\n\nSearch Contacts\nPOST /hubspot/crm/v3/objects/contacts/search\nContent-Type: application/json\n\n{\n  \"filterGroups\": [{\n    \"filters\": [{\n      \"propertyName\": \"email\",\n      \"operator\": \"EQ\",\n      \"value\": \"john@example.com\"\n    }]\n  }],\n  \"properties\": [\"email\", \"firstname\", \"lastname\"]\n}\n\nCompanies\nList Companies\nGET /hubspot/crm/v3/objects/companies?limit=100&properties=name,domain,industry\n\nGet Company\nGET /hubspot/crm/v3/objects/companies/{companyId}?properties=name,domain,industry\n\nCreate Company\nPOST /hubspot/crm/v3/objects/companies\nContent-Type: application/json\n\n{\n  \"properties\": {\n    \"name\": \"Acme Corp\",\n    \"domain\": \"acme.com\",\n    \"industry\": \"COMPUTER_SOFTWARE\"\n  }\n}\n\n\nNote: The industry property requires specific enum values (e.g., COMPUTER_SOFTWARE, FINANCE, HEALTHCARE). Use the List Properties endpoint to get valid values.\n\nUpdate Company\nPATCH /hubspot/crm/v3/objects/companies/{companyId}\nContent-Type: application/json\n\n{\n  \"properties\": {\n    \"industry\": \"COMPUTER_SOFTWARE\",\n    \"numberofemployees\": \"50\"\n  }\n}\n\nDelete Company\nDELETE /hubspot/crm/v3/objects/companies/{companyId}\n\nSearch Companies\nPOST /hubspot/crm/v3/objects/companies/search\nContent-Type: application/json\n\n{\n  \"filterGroups\": [{\n    \"filters\": [{\n      \"propertyName\": \"domain\",\n      \"operator\": \"CONTAINS_TOKEN\",\n      \"value\": \"*\"\n    }]\n  }],\n  \"properties\": [\"name\", \"domain\"],\n  \"limit\": 10\n}\n\nDeals\nList Deals\nGET /hubspot/crm/v3/objects/deals?limit=100&properties=dealname,amount,dealstage\n\nGet Deal\nGET /hubspot/crm/v3/objects/deals/{dealId}?properties=dealname,amount,dealstage\n\nCreate Deal\nPOST /hubspot/crm/v3/objects/deals\nContent-Type: application/json\n\n{\n  \"properties\": {\n    \"dealname\": \"New Deal\",\n    \"amount\": \"10000\",\n    \"dealstage\": \"appointmentscheduled\"\n  }\n}\n\nUpdate Deal\nPATCH /hubspot/crm/v3/objects/deals/{dealId}\nContent-Type: application/json\n\n{\n  \"properties\": {\n    \"amount\": \"15000\",\n    \"dealstage\": \"qualifiedtobuy\"\n  }\n}\n\nDelete Deal\nDELETE /hubspot/crm/v3/objects/deals/{dealId}\n\nAssociations (v4 API)\nAssociate Objects\nPUT /hubspot/crm/v4/objects/{fromObjectType}/{fromObjectId}/associations/{toObjectType}/{toObjectId}\nContent-Type: application/json\n\n[{\"associationCategory\": \"HUBSPOT_DEFINED\", \"associationTypeId\": 279}]\n\n\nCommon association type IDs:\n\n279 - Contact to Company\n3 - Deal to Contact\n341 - Deal to Company\nList Associations\nGET /hubspot/crm/v4/objects/{objectType}/{objectId}/associations/{toObjectType}\n\nBatch Operations\nBatch Read\nPOST /hubspot/crm/v3/objects/{objectType}/batch/read\nContent-Type: application/json\n\n{\n  \"properties\": [\"email\", \"firstname\"],\n  \"inputs\": [{\"id\": \"123\"}, {\"id\": \"456\"}]\n}\n\nBatch Create\nPOST /hubspot/crm/v3/objects/{objectType}/batch/create\nContent-Type: application/json\n\n{\n  \"inputs\": [\n    {\"properties\": {\"email\": \"one@example.com\", \"firstname\": \"One\"}},\n    {\"properties\": {\"email\": \"two@example.com\", \"firstname\": \"Two\"}}\n  ]\n}\n\nBatch Update\nPOST /hubspot/crm/v3/objects/{objectType}/batch/update\nContent-Type: application/json\n\n{\n  \"inputs\": [\n    {\"id\": \"123\", \"properties\": {\"firstname\": \"Updated\"}},\n    {\"id\": \"456\", \"properties\": {\"firstname\": \"Also Updated\"}}\n  ]\n}\n\nBatch Archive\nPOST /hubspot/crm/v3/objects/{objectType}/batch/archive\nContent-Type: application/json\n\n{\n  \"inputs\": [{\"id\": \"123\"}, {\"id\": \"456\"}]\n}\n\nProperties\nList Properties\nGET /hubspot/crm/v3/properties/{objectType}\n\nSearch Operators\nEQ - Equal to\nNEQ - Not equal to\nLT / LTE - Less than / Less than or equal\nGT / GTE - Greater than / Greater than or equal\nCONTAINS_TOKEN - Contains token\nNOT_CONTAINS_TOKEN - Does not contain token\nPagination\n\nList endpoints return a paging.next.after cursor:\n\n{\n  \"results\": [...],\n  \"paging\": {\n    \"next\": {\n      \"after\": \"12345\"\n    }\n  }\n}\n\n\nUse the after query parameter to fetch the next page:\n\nGET /hubspot/crm/v3/objects/contacts?limit=100&after=12345\n\nCode Examples\nJavaScript\nconst response = await fetch('https://gateway.maton.ai/hubspot/crm/v3/objects/contacts', {\n  method: 'POST',\n  headers: {\n    'Content-Type': 'application/json',\n    'Authorization': `Bearer ${process.env.MATON_API_KEY}`\n  },\n  body: JSON.stringify({\n    properties: { email: 'john@example.com', firstname: 'John' }\n  })\n});\n\nPython\nimport os\nimport requests\n\nresponse = requests.post(\n    'https://gateway.maton.ai/hubspot/crm/v3/objects/contacts',\n    headers={'Authorization': f'Bearer {os.environ[\"MATON_API_KEY\"]}'},\n    json={'properties': {'email': 'john@example.com', 'firstname': 'John'}}\n)\n\nNotes\nBatch operations support up to 100 records per request\nArchive/Delete is a soft delete - records can be restored within 90 days\nDelete endpoints return HTTP 204 (No Content) on success\nThe industry property on companies requires specific enum values\nIMPORTANT: When using curl commands, use curl -g when URLs contain brackets (fields[], sort[], records[]) to disable glob parsing\nIMPORTANT: When piping curl output to jq or other commands, environment variables like $MATON_API_KEY may not expand correctly in some shell environments. You may get \"Invalid API key\" errors when piping.\nError Handling\nStatus\tMeaning\n400\tMissing HubSpot connection\n401\tInvalid or missing Maton API key\n429\tRate limited (10 req/sec per account)\n4xx/5xx\tPassthrough error from HubSpot API\nTroubleshooting: API Key Issues\nCheck that the MATON_API_KEY environment variable is set:\necho $MATON_API_KEY\n\nVerify the API key is valid by listing connections:\npython <<'EOF'\nimport urllib.request, os, json\nreq = urllib.request.Request('https://ctrl.maton.ai/connections')\nreq.add_header('Authorization', f'Bearer {os.environ[\"MATON_API_KEY\"]}')\nprint(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))\nEOF\n\nTroubleshooting: Invalid App Name\nEnsure your URL path starts with hubspot. For example:\nCorrect: https://gateway.maton.ai/hubspot/crm/v3/objects/contacts\nIncorrect: https://gateway.maton.ai/crm/v3/objects/contacts\nResources\nHubSpot API Overview\nList Contacts\nCreate Contact\nSearch Contacts\nList Companies\nCreate Company\nList Deals\nCreate Deal\nAssociations API\nProperties API\nSearch Reference\nMaton Community\nMaton Support"
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/byungkyu/hubspot-api",
    "publisherUrl": "https://clawhub.ai/byungkyu/hubspot-api",
    "owner": "byungkyu",
    "version": "1.0.4",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/hubspot-api",
    "downloadUrl": "https://openagent3.xyz/downloads/hubspot-api",
    "agentUrl": "https://openagent3.xyz/skills/hubspot-api/agent",
    "manifestUrl": "https://openagent3.xyz/skills/hubspot-api/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/hubspot-api/agent.md"
  }
}