{"openapi":"3.1.0","info":{"title":"HubSpot Marketing Forms (BYOK) API","version":"0.1.0","description":"HubSpot Marketing Forms (BYOK) lets an AI assistant read your own HubSpot Marketing Forms data through the HubSpot Marketing Forms API with a key you supply (HubSpot private app access token (scopes: forms, crm.objects.marketing_events.read)). Read-only: 5 tools (list_forms, get_form, list_marketing_events, get_marketing_event, get_marketing_event_participation). The BYOK key travels with each...\n\nEvery operation is read-only or compute-only. The same tools are available over MCP (streamable HTTP) at https://byok-hubspot-marketing-forms.connectorbay.com/mcp.","contact":{"name":"Unify Dynamics LLC","email":"agent@connectorbay.com","url":"https://connectorbay.com/byok-hubspot-marketing-forms/docs"},"termsOfService":"https://connectorbay.com/byok-hubspot-marketing-forms/terms"},"servers":[{"url":"https://byok-hubspot-marketing-forms.connectorbay.com"}],"externalDocs":{"url":"https://connectorbay.com/byok-hubspot-marketing-forms/docs"},"security":[{"upstreamKey":[]}],"components":{"securitySchemes":{"bearer":{"type":"http","scheme":"bearer","description":"Optional. A Pro API key raises rate limits; no credentials are required."},"upstreamKey":{"type":"apiKey","in":"header","name":"X-Upstream-Key","description":"Your own key for the service this connector wraps (bring your own key). Used for that one call only; never stored, logged or cached."}},"schemas":{"Error":{"type":"object","properties":{"ok":{"const":false},"error":{"type":"object"}}}}},"paths":{"/v1/tools/list_forms":{"post":{"operationId":"list_forms","summary":"List HubSpot forms with name, type, creation and update dates and archived flag. Form submissions are not part of this t","description":"List HubSpot forms with name, type, creation and update dates and archived flag. Form submissions are not part of this tool. Use for \"What forms do we have in HubSpot\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"limit":{"anyOf":[{"maximum":100,"minimum":1,"type":"integer"},{"type":"null"}],"default":20,"description":"How many items to return (1 to 100).","title":"Limit"},"after":{"anyOf":[{"maxLength":300,"type":"string"},{"type":"null"}],"default":null,"description":"Paging cursor: paging.next.after from the previous answer. Leave out for the first page.","title":"After"},"archived":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":false,"description":"True to list archived forms instead of active ones.","title":"Archived"},"form_types":{"anyOf":[{"enum":["hubspot","captured","flow","blog_comment","all"],"type":"string"},{"type":"null"}],"default":null,"description":"Only this form type: hubspot, captured, flow, blog_comment or all.","title":"Form Types"}},"title":"list_formsArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/get_form":{"post":{"operationId":"get_form","summary":"Get one form definition: name, type, dates and its field groups (field names, labels, types). No submitted data. Use for","description":"Get one form definition: name, type, dates and its field groups (field names, labels, types). No submitted data. Use for \"Which fields does the Newsletter signup form ask for\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"form_id":{"description":"Id of the form (a UUID such as 'a1b2c3d4-0000-0000-0000-000000000001').","maxLength":200,"title":"Form Id","type":"string"},"archived":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":false,"description":"True to read an archived form.","title":"Archived"}},"required":["form_id"],"title":"get_formArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/list_marketing_events":{"post":{"operationId":"list_marketing_events","summary":"List marketing events (webinars, conferences and similar) with name, type, status, dates, organizer and registration tot","description":"List marketing events (webinars, conferences and similar) with name, type, status, dates, organizer and registration totals. Use for \"Which marketing events are coming up in HubSpot\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"limit":{"anyOf":[{"maximum":100,"minimum":1,"type":"integer"},{"type":"null"}],"default":20,"description":"How many items to return (1 to 100).","title":"Limit"},"after":{"anyOf":[{"maxLength":300,"type":"string"},{"type":"null"}],"default":null,"description":"Paging cursor: paging.next.after from the previous answer. Leave out for the first page.","title":"After"}},"title":"list_marketing_eventsArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/get_marketing_event":{"post":{"operationId":"get_marketing_event","summary":"Get one marketing event by HubSpot object id: name, type, status, dates, organizer and registration, attendance, cancell","description":"Get one marketing event by HubSpot object id: name, type, status, dates, organizer and registration, attendance, cancellation and no-show totals. Use for \"How many people registered for marketing event 3001\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"event_id":{"description":"HubSpot object id of the marketing event (a numeric string such as '3001').","maxLength":200,"title":"Event Id","type":"string"}},"required":["event_id"],"title":"get_marketing_eventArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/get_marketing_event_participation":{"post":{"operationId":"get_marketing_event_participation","summary":"Get attendance counters of a marketing event: registered, attended, cancelled and no-shows. Use for \"What was the attend","description":"Get attendance counters of a marketing event: registered, attended, cancelled and no-shows. Use for \"What was the attendance of marketing event 3001\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"event_id":{"description":"HubSpot object id of the marketing event (a numeric string such as '3001').","maxLength":200,"title":"Event Id","type":"string"}},"required":["event_id"],"title":"get_marketing_event_participationArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}}}}