Actions2
Respond to Webhook
AI-generatedOverview
This node handles sending various types of responses to webhooks in the Masumi Paywall system, compliant with MIP-003 standards. It supports multiple response types including availability status, custom JSON responses, input schema definitions, job start responses with payment creation, and job status responses. This node is useful in workflows where you need to interact with Masumi Paywall webhooks, providing appropriate responses based on the webhook's context and the workflow's state.
Use Case Examples
- Sending an availability response to indicate the service is ready to accept jobs.
- Responding with a custom JSON payload to a webhook for flexible integration.
- Providing an input schema response to define expected input data for a job.
- Starting a job and responding with payment creation details as per MIP-003 standards.
Properties
| Name | Meaning |
|---|---|
| Response Type | Type of response to send to the webhook, such as availability, custom JSON, input schema, start job, or status response. |
| Custom Response | Custom JSON response to send when Response Type is set to Custom JSON. |
| Status | Current availability status of the service when Response Type is Availability Response. |
| Type | Agent type identifier used in the availability response. |
| Message | Status message describing the service availability in the availability response. |
| Input Schema JSON | MIP-003 compliant input schema definition used when Response Type is Input Schema Response. |
| Input Data | Input data received from the job request used when Response Type is Start Job Response. |
| Identifier From Purchaser | Identifier provided by the purchaser used when Response Type is Start Job Response. |
| Job ID | ID of the job to check status for when Response Type is Status Response. |
Output
JSON
body- The JSON response body sent to the webhook.headersContent-Type- The content type header set to application/json.
statusCode- HTTP status code of the response, typically 200.
Dependencies
- Masumi Paywall API credentials required for job-related responses.
Troubleshooting
- Ensure valid JSON is provided for custom responses and input schema responses to avoid JSON parsing errors.
- When updating job status, ensure the job ID is provided or a job has been created/accessed in the workflow to avoid missing job ID errors.
- Check API credentials and network connection if job creation or status checking fails, as these operations require communication with the Masumi Payment Service.
- If an unknown operation or response type is specified, the node will throw an error indicating the issue.
Links
- MIP-003 Input Schema Specification - Detailed information about the MIP-003 input schema response format used by this node.