Extension Config


The JSON object below defines the configuration for this service plugin extension. How you supply values depends on the framework you’re using:

  • Self-hosted apps: After adding a service plugin extension to your app in the app dashboard, provide configuration details in your extension's page. Learn more about how to add and configure a self-hosted service plugin extension with REST or the SDK.
  • CLI apps: When you add a service plugin extension to your app with the Wix CLI, the required configuration details are populated automatically. You can then customize them in your extension's plugin.json file.
Note

If you created your service plugin extension with the CLI, required fields are automatically populated for you.

Configuration Params
triggerConfigstruct

The trigger configuration

example of a trigger:

{ appId: "56cc7843-fdfc-417f-a660-d4af9a2eafe3", triggerKey: "form_submit", displayName: "Visitor submits a form", payloadDataSchema: { "$schema": "http://json-schema.org/draft-07/schema", "type": "object", "title": "Visitor submits a form Payload Schema", "description": "The schema of the payload that is part of the triggered event", "default": {}, "examples": [ { "formId": "60d2cd50-1047-4164-884d-8c24fbda84bb", "formName": "My Cool Form } ], "properties": { "formId": { "$id": "#/properties/formId", "type": "string", "format": "uuid", "title": "Form ID", "description": "The form identifier", "default": "", "examples": [ "60d2cd50-1047-4164-884d-8c24fbda84bb" ] }, "formName": { "$id": "#/properties/formName", "type": "string", "title": "Form Name", "description": "The form display name", "default": "", "examples": [ "My Form" ] }, "contactId": { "$id": "#/properties/contactId", "type": "string", "format": "uuid", "title": "Contact Id", "description": "The Id of the contact which submitted the form", "default": "", "identityType": "contact", // can be contact, visitor, user limited to 1 type per identity, "namespace": "contact" // friendly name to be used later on, in order to user that person's data "contact.firstName" } }, "required": [ "formId", "formName", "contactId" ], "additionalProperties": false } }


baseUristring

URL to the trigger provider service

Did this help?