Email API for developers
Write Python and use any of the 350k+ PyPi packages available. Refer to the Pipedream Python docs to learn more.
The Resend API opens a direct line to powerful communication automation, letting you send, receive, and track messages across various channels like SMS and email. In Pipedream, Resend's capabilities can be harnessed within serverless workflows, allowing for dynamic interactions based on triggers from a multitude of integrated services. From confirmation messages to multi-step notification sequences, you can craft tailored communication flows that react in real-time to your application or service's needs.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
resend: {
type: "app",
app: "resend",
}
},
async run({steps, $}) {
const data = {
"from": `onboarding@resend.dev`,
"to": `user@example.com`,
"subject": `pipedream testing`,
"text": `it works!`,
}
return await axios($, {
method: "post",
url: `https://api.resend.com/email`,
headers: {
Authorization: `Bearer ${this.resend.$auth.api_key}`,
"Content-Type": `application/json`,
},
data,
})
},
})
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:
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}}