How to run a workflow to check a Lightning Address
This tutorial will take you through running a workflow to check a Lightning Address for compliance and risk issues.
You need to have an API key for this tutorial. Check how to authenticate your API calls here.
Template
Reflex provides a template for running checks against an address using OFAC comprehensively sanctioned countries list for IP checks.
Template ID: 6360c2fa-5457-45ee-95eb-726783c07b31
Custom templates are only available to enterprise users. Please reach out if you need access to custom templating features.
Running the workflow
For this workflow we are going to be running checks against the address [email protected]
, passing a webhook URL to get notified of the result of the workflow and an email address to get the workflow report if it fails.
Query
mutation Create($input: WorkflowRunInput!) {
workflows {
runs {
create(input: $input) {
workflow_run_id
}
}
}
}
Variables
{
"input": {
"template_id": "6360c2fa-5457-45ee-95eb-726783c07b31",
"webhook_url": "https://webhookendpoint.com",
"workflow_input": [
{
"name": "LN_ADDRESS",
"value": "[email protected]"
}
],
"notification_settings": {
"emails": [
{
"email": "[email protected]"
}
],
"trigger": {
"type": "STATUS",
"status": "FAILURE"
}
}
}
}
Result
Once we start the workflow we will get the workflow_run_id
. With this ID you can query the API to get additional information about the run.
{
"data": {
"workflows": {
"runs": {
"create": {
"workflow_run_id": "7bb13548-55ec-4107-ab46-6a92f32c65e1"
}
}
}
}
}
UI
You can also see the result of the workflow in our dashboard.