Defastra

Uncover complex fraud patterns by going deeper and enrich data at scale by leveraging OSINT.

Integrate the Defastra API with the Python API

Setup the Defastra API trigger to run a workflow which integrates with the Python API. Pipedream's integration platform allows you to integrate Defastra and Python remarkably fast. Free for developers.

Deep Email Check with the Defastra API

Performs a risk analysis on a given email address and provides a risk score indicating if the email is disposable, risky, or safe. See the documentation

 
Try it
Run Python Code with the Python API

Write Python and use any of the 350k+ PyPi packages available. Refer to the Pipedream Python docs to learn more.

 
Try it
Deep Phone Check with the Defastra API

Conducts a risk assessment and digital lookup for a provided phone number. Returns a risk score indicating if the number is disposable, risky, or safe, along with carrier details, location, and potential social profiles. See the documentation

 
Try it

Overview of Defastra

The Defastra API is a tool designed for automating and integrating your cybersecurity efforts. It offers features such as vulnerability scans, monitoring of dark web activities, and risk assessments. When combined with Pipedream’s capabilities, you can create powerful, automated workflows to enhance your security posture. You can trigger events in real-time, process data, and connect to numerous other services, all of which help in proactively managing cybersecurity threats.

Connect Defastra

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import { axios } from "@pipedream/platform"
export default defineComponent({
  props: {
    defastra: {
      type: "app",
      app: "defastra",
    }
  },
  async run({steps, $}) {
    const data = {
      "email": `sergio@pipekit.pro`,
    }
    return await axios($, {
      method: "post",
      url: `https://api.defastra.com/deep_email_check`,
      headers: {
        "Content-Type": `application/x-www-form-urlencoded`,
        "X-API-KEY": `${this.defastra.$auth.api_key}`,
      },
      data,
    })
  },
})

Overview of Python

Develop, run and deploy your Python code in Pipedream workflows. Integrate seamlessly between no-code steps, with connected accounts, or integrate Data Stores and manipulate files within a workflow.

This includes installing PyPI packages, within your code without having to manage a requirements.txt file or running pip.

Below is an example of using Python to access data from the trigger of the workflow, and sharing it with subsequent workflow steps:

Connect Python

1
2
3
4
5
def handler(pd: "pipedream"):
  # Reference data from previous steps
  print(pd.steps["trigger"]["context"]["id"])
  # Return data for use in future steps
  return {"foo": {"test":True}}