{ "schema": 1, "id": "hubspot", "name": "HubSpot", "category": "crm", "auth": { "kind": "both", "base": "https://api.hubapi.com", "authorization": "Bearer", "pat_help": "https://developers.hubspot.com/docs/api/private-apps — create a private app with only the CRM scopes you want reachable", "oauth": { "authorize_url": "https://app.hubspot.com/oauth/authorize", "token_url": "https://api.hubapi.com/oauth/v1/token", "scopes": ["oauth", "crm.objects.contacts.read", "crm.objects.deals.read"], "scopes_write": ["oauth", "crm.objects.contacts.read", "crm.objects.deals.read", "crm.objects.contacts.write"] } }, "ops": [ { "id": "viewer", "label": "Which account am I connected to", "access": "read", "method": "GET", "path": "/account-info/v3/details", "pick": { "fields": [ "portalId", "accountType", "timeZone", "companyCurrency", "uiDomain" ] } }, { "id": "contacts.list", "label": "List recent contacts", "access": "read", "method": "GET", "path": "/crm/v3/objects/contacts?limit=10", "pick": { "root": "results", "fields": [ "id", "properties.email", "properties.firstname", "properties.lastname", "createdAt" ] } }, { "id": "deals.list", "label": "List recent deals", "access": "read", "method": "GET", "path": "/crm/v3/objects/deals?limit=10&properties=dealname,amount,dealstage,closedate", "pick": { "root": "results", "fields": [ "id", "properties.dealname", "properties.amount", "properties.dealstage", "properties.closedate", "createdAt" ] } }, { "id": "contact.create", "label": "Create a contact", "access": "write", "method": "POST", "path": "/crm/v3/objects/contacts", "args": { "email": { "required": true }, "firstname": {}, "lastname": {} }, "body_json": { "properties": { "email": "{email}", "firstname": "{firstname}", "lastname": "{lastname}" } }, "confirm": "Create the HubSpot contact {email}?" } ] }