{"id":"4fc00680-7716-434b-878b-02183a13a211","shortId":"PGeHpE","kind":"skill","title":"Hubspot","tagline":"Application Skills skill by Membranedev","description":"# HubSpot\n\nHubSpot is a CRM and marketing automation platform that helps businesses manage their sales, marketing, and customer service efforts. It's used by marketing and sales teams to attract leads, nurture them into customers, and provide customer support.\n\nOfficial docs: https://developers.hubspot.com/\n\n## HubSpot Overview\n\n- **Contact**\n  - **Email** — associated with Contact\n- **Company**\n- **Deal**\n- **Ticket**\n\nUse action names and parameters as needed.\n\n## Working with HubSpot\n\nThis skill uses the Membrane CLI to interact with HubSpot. Membrane handles authentication and credentials refresh automatically — so you can focus on the integration logic rather than auth plumbing.\n\n### Install the CLI\n\nInstall the Membrane CLI so you can run `membrane` from the terminal:\n\n```bash\nnpm install -g @membranehq/cli@latest\n```\n\n### Authentication\n\n```bash\nmembrane login --tenant --clientName=<agentType>\n```\n\nThis will either open a browser for authentication or print an authorization URL to the console, depending on whether interactive mode is available.\n\n**Headless environments:** The command will print an authorization URL. Ask the user to open it in a browser. When they see a code after completing login, finish with:\n\n```bash\nmembrane login complete <code>\n```\n\nAdd `--json` to any command for machine-readable JSON output.\n\n**Agent Types** : claude, openclaw, codex, warp, windsurf, etc. Those will be used to adjust tooling to be used best with your harness\n\n### Connecting to HubSpot\n\nUse `membrane connection ensure` to find or create a connection by app URL or domain:\n\n```bash\nmembrane connection ensure \"https://www.hubspot.com/\" --json\n```\nThe user completes authentication in the browser. The output contains the new connection id.\n\nThis is the fastest way to get a connection. The URL is normalized to a domain and matched against known apps. If no app is found, one is created and a connector is built automatically.\n\nIf the returned connection has `state: \"READY\"`, skip to **Step 2**.\n\n#### 1b. Wait for the connection to be ready\n\nIf the connection is in `BUILDING` state, poll until it's ready:\n\n```bash\nnpx @membranehq/cli connection get <id> --wait --json\n```\n\nThe `--wait` flag long-polls (up to `--timeout` seconds, default 30) until the state changes. Keep polling until `state` is no longer `BUILDING`.\n\nThe resulting state tells you what to do next:\n\n- **`READY`** — connection is fully set up. Skip to **Step 2**.\n- **`CLIENT_ACTION_REQUIRED`** — the user or agent needs to do something. The `clientAction` object describes the required action:\n  - `clientAction.type` — the kind of action needed:\n    - `\"connect\"` — user needs to authenticate (OAuth, API key, etc.). This covers initial authentication and re-authentication for disconnected connections.\n    - `\"provide-input\"` — more information is needed (e.g. which app to connect to).\n  - `clientAction.description` — human-readable explanation of what's needed.\n  - `clientAction.uiUrl` (optional) — URL to a pre-built UI where the user can complete the action. Show this to the user when present.\n  - `clientAction.agentInstructions` (optional) — instructions for the AI agent on how to proceed programmatically.\n\n  After the user completes the action (e.g. authenticates in the browser), poll again with `membrane connection get <id> --json` to check if the state moved to `READY`.\n\n- **`CONFIGURATION_ERROR`** or **`SETUP_FAILED`** — something went wrong. Check the `error` field for details.\n\n### Searching for actions\n\nSearch using a natural language description of what you want to do:\n\n```bash\nmembrane action list --connectionId=CONNECTION_ID --intent \"QUERY\" --limit 10 --json\n```\n\nYou should always search for actions in the context of a specific connection.\n\nEach result includes `id`, `name`, `description`, `inputSchema` (what parameters the action accepts), and `outputSchema` (what it returns).\n\n## Popular actions\n\n| Name | Key | Description |\n|---|---|---|\n| List Contacts | list-contacts | Retrieve a list of contacts from HubSpot with optional filtering by properties and associations. |\n| List Companies | list-companies | Retrieve a list of companies from HubSpot with optional filtering by properties and associations. |\n| List Deals | list-deals | Retrieve a list of deals from HubSpot with optional filtering by properties and associations. |\n| List Tickets | list-tickets | Retrieve a list of tickets from HubSpot with optional filtering. |\n| List Tasks | list-tasks | List all tasks with optional filtering and pagination |\n| List Notes | list-notes | List all notes with optional filtering and pagination |\n| Get Contact | get-contact | Retrieve a single contact by ID or email from HubSpot. |\n| Get Company | get-company | Retrieve a single company by ID from HubSpot. |\n| Get Deal | get-deal | Retrieve a single deal by ID from HubSpot. |\n| Get Ticket | get-ticket | Retrieve a single ticket by ID from HubSpot. |\n| Get Task | get-task | Get a task by its ID |\n| Get Note | get-note | Get a note by its ID |\n| Create Contact | create-contact | Create a new contact in HubSpot with specified properties and optional associations. |\n| Create Company | create-company | Create a new company in HubSpot with specified properties and optional associations. |\n| Create Deal | create-deal | Create a new deal in HubSpot with specified properties and optional associations. |\n| Create Ticket | create-ticket | Create a new ticket in HubSpot with specified properties. |\n| Create Task | create-task | Create a new task in HubSpot |\n| Create Note | create-note | Create a new note in HubSpot |\n| Update Contact | update-contact | Update an existing contact's properties in HubSpot. |\n| Update Company | update-company | Update an existing company's properties in HubSpot. |\n\n### Running actions\n\n```bash\nmembrane action run <actionId> --connectionId=CONNECTION_ID --json\n```\n\nTo pass JSON parameters:\n\n```bash\nmembrane action run <actionId> --connectionId=CONNECTION_ID --input '{\"key\": \"value\"}' --json\n```\n\nThe result is in the `output` field of the response.\n\n\n### Proxy requests\n\nWhen the available actions don't cover your use case, you can send requests directly to the HubSpot API through Membrane's proxy. Membrane automatically appends the base URL to the path you provide and injects the correct authentication headers — including transparent credential refresh if they expire.\n\n```bash\nmembrane request CONNECTION_ID /path/to/endpoint\n```\n\nCommon options:\n\n| Flag | Description |\n|------|-------------|\n| `-X, --method` | HTTP method (GET, POST, PUT, PATCH, DELETE). Defaults to GET |\n| `-H, --header` | Add a request header (repeatable), e.g. `-H \"Accept: application/json\"` |\n| `-d, --data` | Request body (string) |\n| `--json` | Shorthand to send a JSON body and set `Content-Type: application/json` |\n| `--rawData` | Send the body as-is without any processing |\n| `--query` | Query-string parameter (repeatable), e.g. `--query \"limit=10\"` |\n| `--pathParam` | Path parameter (repeatable), e.g. `--pathParam \"id=123\"` |\n\n\n## Best practices\n\n- **Always prefer Membrane to talk with external apps** — Membrane provides pre-built actions with built-in auth, pagination, and error handling. This will burn less tokens and make communication more secure\n- **Discover before you build** — run `membrane action list --intent=QUERY` (replace QUERY with your intent) to find existing actions before writing custom API calls. Pre-built actions handle pagination, field mapping, and edge cases that raw API calls miss.\n- **Let Membrane handle credentials** — never ask the user for API keys or tokens. Create a connection instead; Membrane manages the full Auth lifecycle server-side with no local secrets.","tags":["hubspot","application","skills","membranedev"],"capabilities":["skill","source-membranedev","category-application-skills"],"categories":["application-skills"],"synonyms":[],"warnings":[],"endpointUrl":"https://skills.sh/membranedev/application-skills/hubspot","protocol":"skill","transport":"skills-sh","auth":{"type":"none","details":{"install_from":"skills.sh"}},"qualityScore":"0.300","qualityRationale":"deterministic score 0.30 from registry signals: · indexed on skills.sh · published under membranedev/application-skills","verified":false,"liveness":"unknown","lastLivenessCheck":null,"agentReviews":{"count":0,"score_avg":null,"cost_usd_avg":null,"success_rate":null,"latency_p50_ms":null,"narrative_summary":null,"summary_updated_at":null},"enrichmentModel":"deterministic:skill:v1","enrichmentVersion":1,"enrichedAt":"2026-04-29T03:40:33.266Z","embedding":null,"createdAt":"2026-04-18T20:36:37.412Z","updatedAt":"2026-04-29T03:40:33.266Z","lastSeenAt":"2026-04-29T03:40:33.266Z","tsv":"'/path/to/endpoint':946 '10':533,1011 '123':1019 '1b':297 '2':296,366 '30':335 'accept':559,972 'action':60,368,384,389,448,473,510,525,540,558,566,858,861,873,897,1035,1061,1073,1082 'add':180,965 'adjust':204 'agent':191,373,462 'ai':461 'alway':537,1022 'api':397,912,1077,1092,1104 'app':227,271,274,420,1029 'append':919 'applic':2 'application/json':973,991 'as-i':996 'ask':157,1100 'associ':53,588,607,626,760,777,794 'attract':36 'auth':96,1040,1116 'authent':81,119,132,240,395,403,407,475,932 'author':136,155 'autom':14 'automat':85,285,918 'avail':147,896 'base':921 'bash':113,120,176,231,317,523,859,871,941 'best':209,1020 'bodi':977,985,995 'browser':130,165,243,478 'build':310,347,1058 'built':284,440,1034,1038,1081 'built-in':1037 'burn':1047 'busi':18 'call':1078,1093 'case':903,1089 'category-application-skills' 'chang':339 'check':487,502 'claud':193 'cli':74,100,104 'client':367 'clientact':379 'clientaction.agentinstructions':456 'clientaction.description':424 'clientaction.type':385 'clientaction.uiurl':433 'clientnam':124 'code':170 'codex':195 'command':151,184 'common':947 'communic':1052 'compani':56,590,593,598,684,687,691,762,765,769,845,848,852 'complet':172,179,239,446,471 'configur':494 'connect':213,218,225,233,249,259,289,301,307,320,358,391,410,422,483,528,547,864,876,944,1110 'connectionid':527,863,875 'connector':282 'consol':140 'contact':51,55,571,574,579,669,672,676,745,748,752,832,835,839 'contain':246 'content':989 'content-typ':988 'context':543 'correct':931 'cover':401,900 'creat':223,279,744,747,749,761,764,766,778,781,783,795,798,800,809,812,814,820,823,825,1108 'create-compani':763 'create-contact':746 'create-d':780 'create-not':822 'create-task':811 'create-ticket':797 'credenti':83,936,1098 'crm':11 'custom':24,41,44,1076 'd':974 'data':975 'deal':57,609,612,617,697,700,704,779,782,786 'default':334,960 'delet':959 'depend':141 'describ':381 'descript':516,553,569,950 'detail':507 'developers.hubspot.com':48 'direct':908 'disconnect':409 'discov':1055 'doc':47 'domain':230,266 'e.g':418,474,970,1008,1016 'edg':1088 'effort':26 'either':127 'email':52,680 'ensur':219,234 'environ':149 'error':495,504,1043 'etc':198,399 'exist':838,851,1072 'expir':940 'explan':428 'extern':1028 'fail':498 'fastest':254 'field':505,888,1085 'filter':584,603,622,641,652,665 'find':221,1071 'finish':174 'flag':326,949 'focus':89 'found':276 'full':1115 'fulli':360 'g':116 'get':257,321,484,668,671,683,686,696,699,709,712,722,725,727,733,736,738,955,962 'get-compani':685 'get-contact':670 'get-deal':698 'get-not':735 'get-task':724 'get-ticket':711 'h':963,971 'handl':80,1044,1083,1097 'har':212 'header':933,964,968 'headless':148 'help':17 'http':953 'hubspot':1,7,8,49,68,78,215,581,600,619,638,682,695,708,721,754,771,788,805,819,830,843,856,911 'human':426 'human-read':425 'id':250,529,551,678,693,706,719,732,743,865,877,945,1018 'includ':550,934 'inform':415 'initi':402 'inject':929 'input':413,878 'inputschema':554 'instal':98,101,115 'instead':1111 'instruct':458 'integr':92 'intent':530,1063,1069 'interact':76,144 'json':181,189,236,323,485,534,866,869,881,979,984 'keep':340 'key':398,568,879,1105 'kind':387 'known':270 'languag':515 'latest':118 'lead':37 'less':1048 'let':1095 'lifecycl':1117 'limit':532,1010 'list':526,570,573,577,589,592,596,608,611,615,627,630,634,642,645,647,655,658,660,1062 'list-compani':591 'list-contact':572 'list-deal':610 'list-not':657 'list-task':644 'list-ticket':629 'local':1123 'logic':93 'login':122,173,178 'long':328 'long-pol':327 'longer':346 'machin':187 'machine-read':186 'make':1051 'manag':19,1113 'map':1086 'market':13,22,31 'match':268 'membran':73,79,103,109,121,177,217,232,482,524,860,872,914,917,942,1024,1030,1060,1096,1112 'membranedev':6 'membranehq/cli':117,319 'method':952,954 'miss':1094 'mode':145 'move':491 'name':61,552,567 'natur':514 'need':65,374,390,393,417,432 'never':1099 'new':248,751,768,785,802,816,827 'next':356 'normal':263 'note':656,659,662,734,737,740,821,824,828 'npm':114 'npx':318 'nurtur':38 'oauth':396 'object':380 'offici':46 'one':277 'open':128,161 'openclaw':194 'option':434,457,583,602,621,640,651,664,759,776,793,948 'output':190,245,887 'outputschema':561 'overview':50 'pagin':654,667,1041,1084 'paramet':63,556,870,1006,1014 'pass':868 'patch':958 'path':925,1013 'pathparam':1012,1017 'platform':15 'plumb':97 'poll':312,329,341,479 'popular':565 'post':956 'practic':1021 'pre':439,1033,1080 'pre-built':438,1032,1079 'prefer':1023 'present':455 'print':134,153 'proceed':466 'process':1001 'programmat':467 'properti':586,605,624,757,774,791,808,841,854 'provid':43,412,927,1031 'provide-input':411 'proxi':892,916 'put':957 'queri':531,1002,1004,1009,1064,1066 'query-str':1003 'rather':94 'raw':1091 'rawdata':992 're':406 're-authent':405 'readabl':188,427 'readi':292,304,316,357,493 'refresh':84,937 'repeat':969,1007,1015 'replac':1065 'request':893,907,943,967,976 'requir':369,383 'respons':891 'result':349,549,883 'retriev':575,594,613,632,673,688,701,714 'return':288,564 'run':108,857,862,874,1059 'sale':21,33 'search':508,511,538 'second':333 'secret':1124 'secur':1054 'see':168 'send':906,982,993 'server':1119 'server-sid':1118 'servic':25 'set':361,987 'setup':497 'shorthand':980 'show':449 'side':1120 'singl':675,690,703,716 'skill':3,4,70 'skip':293,363 'someth':377,499 'source-membranedev' 'specif':546 'specifi':756,773,790,807 'state':291,311,338,343,350,490 'step':295,365 'string':978,1005 'support':45 'talk':1026 'task':643,646,649,723,726,729,810,813,817 'team':34 'tell':351 'tenant':123 'termin':112 'ticket':58,628,631,636,710,713,717,796,799,803 'timeout':332 'token':1049,1107 'tool':205 'transpar':935 'type':192,990 'ui':441 'updat':831,834,836,844,847,849 'update-compani':846 'update-contact':833 'url':137,156,228,261,435,922 'use':29,59,71,202,208,216,512,902 'user':159,238,371,392,444,453,470,1102 'valu':880 'wait':298,322,325 'want':520 'warp':196 'way':255 'went':500 'whether':143 'windsurf':197 'without':999 'work':66 'write':1075 'wrong':501 'www.hubspot.com':235 'x':951","prices":[{"id":"d6b2b135-fa18-488b-9e54-ba564ff664ac","listingId":"4fc00680-7716-434b-878b-02183a13a211","amountUsd":"0","unit":"free","nativeCurrency":null,"nativeAmount":null,"chain":null,"payTo":null,"paymentMethod":"skill-free","isPrimary":true,"details":{"org":"membranedev","category":"application-skills","install_from":"skills.sh"},"createdAt":"2026-04-18T20:36:37.412Z"}],"sources":[{"listingId":"4fc00680-7716-434b-878b-02183a13a211","source":"github","sourceId":"membranedev/application-skills/hubspot","sourceUrl":"https://github.com/membranedev/application-skills/tree/main/skills/hubspot","isPrimary":false,"firstSeenAt":"2026-04-18T22:40:44.927Z","lastSeenAt":"2026-04-29T00:58:42.229Z"},{"listingId":"4fc00680-7716-434b-878b-02183a13a211","source":"skills_sh","sourceId":"membranedev/application-skills/hubspot","sourceUrl":"https://skills.sh/membranedev/application-skills/hubspot","isPrimary":true,"firstSeenAt":"2026-04-18T20:36:37.412Z","lastSeenAt":"2026-04-29T03:40:33.266Z"}],"details":{"listingId":"4fc00680-7716-434b-878b-02183a13a211","quickStartSnippet":null,"exampleRequest":null,"exampleResponse":null,"schema":null,"openapiUrl":null,"agentsTxtUrl":null,"citations":[],"useCases":[],"bestFor":[],"notFor":[],"kindDetails":{"org":"membranedev","slug":"hubspot","source":"skills_sh","category":"application-skills","skills_sh_url":"https://skills.sh/membranedev/application-skills/hubspot"},"updatedAt":"2026-04-29T03:40:33.266Z"}}