# Create action set POST /v3/action-sets Create a new action set Endpoint: POST /v3/action-sets Security: API_Key ## Query parameters: - `accountId` (integer) Account ID to create action set in ## Request fields (application/json): - `name` (string, required) Name of the action set - `actions` (array, required) List of actions in the action set - `actions.sequence` (integer, required) Sequence number of the action - `actions.description` (string) Description of the action. Present for all actionTypes except: actionSet - `actions.actionType` (string, required) Type of the user action Enum: "click", "input", "maskedinput", "select", "check", "uncheck", "enteriframe", "navto", "watch", "clearcookies", "execute", "exitiframe", "privacyoptin", "privacyoptout", "actionset" - `actions.waitDuration` (integer) Duration to wait in milliseconds. Present for actionTypes: navTo, click, input, select, check, uncheck, execute, watch, maskedInput, enterIFrame, exitIFrame, clearCookies, privacyOptIn, privacyOptOut - `actions.selectors` (array) List of selectors for element-based actions. Present for actionTypes: click, input, select, check, uncheck, maskedInput, enterIFrame - `actions.selectors.selectorType` (string, required) Enum: "id", "name", "css", "xpath", "htmlattributes" - `actions.selectors.value` (any, required) Selector value - string for simple selectors (CSS, XPath, id, name) or AttributeSelectorValue object for htmlattributes selector type - `actions.preventNavigation` (boolean) Whether to prevent navigation after action execution. Present for actionTypes: click, input, select, check, uncheck, execute, watch, maskedInput - `actions.value` (string) Value field with different meanings per actionType. For input/select: input value. For navTo: URL. For privacyOptIn/privacyOptOut: URL. For execute: JavaScript code. Present for actionTypes: input, select, navTo, privacyOptIn, privacyOptOut, execute - `actions.maskedValue` (string) Masked value for secure input actions. Present for actionType: maskedInput - `actions.js` (string) JavaScript code to execute. Present for actionType: execute - `actions.url` (string) URL for navigation and privacy actions. Present for actionTypes: navTo, privacyOptIn, privacyOptOut - `actions.seconds` (integer) Number of seconds to watch/wait. Present for actionType: watch - `actions.isRequired` (boolean) Whether privacy action is required. Present for actionTypes: privacyOptIn, privacyOptOut - `actions.actionSetId` (integer) ID of the action set this action belongs to. For actionType 'actionSet', this contains the referenced action set ID - `actions.pageFilter` (string) Page filter pattern for the action ## Response 200 fields (application/json): - `id` (integer) - `name` (string, required) Name of the action set - `actions` (array, required) List of actions in the action set - `actions.sequence` (integer, required) Sequence number of the action - `actions.id` (integer) ID of the action - `actions.description` (string) Description of the action. Present for all actionTypes except: actionSet - `actions.actionType` (string, required) Type of the user action Enum: "click", "input", "maskedinput", "select", "check", "uncheck", "enteriframe", "navto", "watch", "clearcookies", "execute", "exitiframe", "privacyoptin", "privacyoptout", "actionset" - `actions.waitDuration` (integer) Duration to wait in milliseconds. Present for actionTypes: navTo, click, input, select, check, uncheck, execute, watch, maskedInput, enterIFrame, exitIFrame, clearCookies, privacyOptIn, privacyOptOut - `actions.selectors` (array) List of selectors for element-based actions. Present for actionTypes: click, input, select, check, uncheck, maskedInput, enterIFrame - `actions.selectors.selectorType` (string, required) Enum: "id", "name", "css", "xpath", "htmlattributes" - `actions.selectors.value` (any, required) Selector value - string for simple selectors (CSS, XPath, id, name) or AttributeSelectorValue object for htmlattributes selector type - `actions.preventNavigation` (boolean) Whether to prevent navigation after action execution. Present for actionTypes: click, input, select, check, uncheck, execute, watch, maskedInput - `actions.value` (string) Value field with different meanings per actionType. For input/select: input value. For navTo: URL. For privacyOptIn/privacyOptOut: URL. For execute: JavaScript code. Present for actionTypes: input, select, navTo, privacyOptIn, privacyOptOut, execute - `actions.maskedValue` (string) Masked value for secure input actions. Present for actionType: maskedInput - `actions.js` (string) JavaScript code to execute. Present for actionType: execute - `actions.url` (string) URL for navigation and privacy actions. Present for actionTypes: navTo, privacyOptIn, privacyOptOut - `actions.seconds` (integer) Number of seconds to watch/wait. Present for actionType: watch - `actions.isRequired` (boolean) Whether privacy action is required. Present for actionTypes: privacyOptIn, privacyOptOut - `actions.actionSetId` (integer) ID of the action set this action belongs to. For actionType 'actionSet', this contains the referenced action set ID - `actions.pageFilter` (string) Page filter pattern for the action - `updatedAt` (string) Timestamp when the action set was last updated - `createdAt` (string) Timestamp when the action set was created - `accountId` (integer) ID of the account the action set belongs to - `userId` (integer) ID of the user the action set belongs to ## Response 400 fields (application/json): - `timestamp` (string) - `message` (string) - `details` (string) - `validationReport` (object) ## Response 401 fields (application/json): - `timestamp` (string) - `message` (string) - `details` (string) - `validationReport` (object) ## Response 403 fields (application/json): - `timestamp` (string) - `message` (string) - `details` (string) - `validationReport` (object) ## Response 404 fields (application/json): - `timestamp` (string) - `message` (string) - `details` (string) - `validationReport` (object)