[How-To] Building a Secure Data Action with OAuth Client Credentials

Custom Data Actions are powerful but require proper authentication.

  1. Create the Integration
    Go to Admin > Integrations and add a new “Web Services Data Actions” integration.
  2. Configure Credentials
    Under Configuration > Credentials, choose “User Defined (OAuth)” and input your client_id and client_secret.
  3. Write the Action
    In the Action contract, define your inputs. Use Velocity macros to map the response.
    {
      "translationMap": {
        "status": "$.response.status"
      },
      "successTemplate": "{\"status\": \"${status}\"}"
    }