This workflow automates Beeminder Datapoint API operations for managing goal tracking datapoints. Key nodes include Webhook Trigger (receives POST requests), Validate Input (checks operation and goalName), Route Operation (directs actions), Validate Create/Update/Delete Data (ensures required fields), Create/Get All/Update/Delete Datapoint (API interactions), Success Response, Error Response, Create/Update/Delete Data Error, and Return Response (handle outputs).\n\nSetup Requirements and Configuration: Install n8n by downloading from n8n.io for self-hosting or sign up at cloud.n8n.io for cloud setup. Follow installation prompts or create a cloud account. Obtain Beeminder API credentials from beeminder.com: log in, go to 'Settings' > 'API,' and generate an API token. In n8n, import the provided JSON to create the workflow. Configure Beeminder nodes (Create/Get All/Update/Delete Datapoint) with your API token under 'Credentials,' selecting 'Beeminder API.' Set the Webhook Trigger node’s path to 'beeminder-api,' ensure it accepts POST requests, and optionally enable header authentication with a secure key. The Validate Input node checks for valid operations (create, getAll, update, delete) and goalName.\n\nTesting and Deployment Steps: Test by sending a POST request to the Webhook URL (from the Webhook Trigger node) using Postman. Example JSON body: {'operation': 'create', 'goalName': 'exercise', 'value': '30'} or {'operation': 'getAll', 'goalName': 'reading', 'limit': 10} with the authentication header if enabled. The 'Success Response' node returns a 200 status with operation results, or 'Error Response' (400 status) for invalid inputs like missing goalName. 'Create/Update/Delete Data Error' nodes handle missing value or datapointId. Monitor logs for errors like invalid API tokens or non-existent goals, and verify credentials or input formats if issues occur. Activate the workflow in n8n’s interface for deployment. Validate outputs to ensure datapoint values, comments, or IDs are correctly returned or updated.
$6.99
Workflow steps: 16
Integrated apps: webhook, if, set