HubSpot · Schema

ActionDefinitionInput

Input for creating a new action definition

AnalyticsCommerceContentCRMCustomer ServiceEmail MarketingMarketingMarketing AutomationSales

Properties

Name Type Description
actionUrl string The URL that HubSpot will call when the action executes
labels object Human-readable labels for the action
inputFields array Input fields for the action
outputFields array Output fields for the action
objectTypes array CRM object types this action can operate on
objectRequestOptions object Options for requesting CRM object data
published boolean Whether to publish the action immediately
View JSON Schema on GitHub

JSON Schema

custom-workflow-actions-api-action-definition-input-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/hubspot/refs/heads/main/json-schema/custom-workflow-actions-api-action-definition-input-schema.json",
  "title": "ActionDefinitionInput",
  "description": "Input for creating a new action definition",
  "type": "object",
  "properties": {
    "actionUrl": {
      "type": "string",
      "format": "uri",
      "description": "The URL that HubSpot will call when the action executes",
      "example": "https://app.hubspot.com/contacts/12345"
    },
    "labels": {
      "type": "object",
      "description": "Human-readable labels for the action",
      "required": [
        "actionName"
      ],
      "properties": {
        "actionName": {
          "type": "string",
          "description": "The display name of the action",
          "example": "Example Record"
        },
        "actionDescription": {
          "type": "string",
          "description": "A description of what the action does",
          "example": "This is an example description."
        },
        "appDisplayName": {
          "type": "string",
          "description": "The name of the app providing this action",
          "example": "Example Record"
        },
        "actionCardContent": {
          "type": "string",
          "description": "Content to display on the action card in the workflow editor",
          "example": "example-value"
        }
      }
    },
    "inputFields": {
      "type": "array",
      "description": "Input fields for the action",
      "items": {
        "type": "object",
        "description": "An input field for the action",
        "required": [
          "typeDefinition",
          "supportedValueTypes"
        ],
        "properties": {
          "typeDefinition": {
            "$ref": "#/components/schemas/FieldTypeDefinition"
          },
          "supportedValueTypes": {
            "type": "array",
            "description": "The types of values that can be provided for this field",
            "items": {
              "type": "string",
              "enum": [
                "STATIC_VALUE",
                "OBJECT_PROPERTY",
                "OUTPUT_FROM_PREVIOUS_ACTION"
              ]
            },
            "example": [
              "STATIC_VALUE"
            ]
          },
          "isRequired": {
            "type": "boolean",
            "description": "Whether this field is required",
            "example": true
          }
        }
      },
      "example": [
        {
          "typeDefinition": {},
          "supportedValueTypes": [
            {}
          ],
          "isRequired": true
        }
      ]
    },
    "outputFields": {
      "type": "array",
      "description": "Output fields for the action",
      "items": {
        "type": "object",
        "description": "An output field returned by the action",
        "required": [
          "typeDefinition"
        ],
        "properties": {
          "typeDefinition": {
            "$ref": "#/components/schemas/FieldTypeDefinition"
          }
        }
      },
      "example": [
        {
          "typeDefinition": {}
        }
      ]
    },
    "objectTypes": {
      "type": "array",
      "description": "CRM object types this action can operate on",
      "items": {
        "type": "string",
        "enum": [
          "CONTACT",
          "COMPANY",
          "DEAL",
          "TICKET",
          "QUOTE"
        ]
      },
      "example": [
        "CONTACT"
      ]
    },
    "objectRequestOptions": {
      "type": "object",
      "description": "Options for requesting CRM object data",
      "properties": {
        "properties": {
          "type": "array",
          "description": "CRM properties to include in the action execution request",
          "items": {
            "type": "string"
          },
          "example": [
            "example-value"
          ]
        }
      }
    },
    "published": {
      "type": "boolean",
      "description": "Whether to publish the action immediately",
      "example": true
    }
  },
  "required": [
    "actionUrl",
    "labels",
    "objectTypes"
  ]
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/custom-workflow-actions-api-action-definition-input"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no email required.

A second provider on the same verified email joins the account you already have.