Mega icon

Mega

Work with Mega API

Integration → Create

AI-generated

Summary

Create an integration hook by providing the integration app ID, optional inbox ID, status, and settings configuration.

Inputs

  • App ID (required) — The unique numeric ID of the integration app to associate with the integration hook.
  • Inbox ID — Optional numeric ID of the inbox if the integration hook is specific to an inbox.
  • Status — The status of the integration hook, choosing 'Active' (1) or 'Inactive' (0). Defaults to 'Active'.
  • Settings (required) — A JSON object containing the configuration settings for the integration hook.

Output shape

a single record representing the created integration hook's details

The output includes the properties of the newly created integration hook. All input parameters marked as required must be provided. The Settings must be a valid JSON object.

Links

Discussion