The httpSMS API enables you to send SMS messages programmatically. With it, you can integrate SMS capabilities into your workflows on Pipedream. This is useful for alerting users, sending verification codes, or providing updates via text message. On Pipedream, you can connect the httpSMS API to various triggers and actions, creating automated processes that handle a multitude of SMS-related tasks.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
httpsms: {
type: "app",
app: "httpsms",
}
},
async run({steps, $}) {
const data = {
"content": `Hello, world!`,
"from": `${this.httpsms.$auth.sender_phone_number}`,
"to": `${this.httpsms.$auth.sender_phone_number}`,
}
return await axios($, {
method: "post",
url: `https://api.httpsms.com/v1/messages/send`,
headers: {
"x-api-key": `${this.httpsms.$auth.api_key}`,
"Content-Type": `application/json`,
"Accept": `application/json`,
},
data,
})
},
})
Customer Order Updates via SMS: Trigger a workflow when a new order is placed on your e-commerce platform. Use the httpSMS API to send an update to the customer's phone number with order confirmation and shipping details.
SMS Alerts for System Monitoring: Set up a Pipedream workflow that monitors your website's uptime. Connect it to the httpSMS API to send an SMS alert if the site goes down, allowing for quick response to outages.
Two-factor Authentication (2FA): Enhance security by implementing 2FA. When a user attempts to log in, trigger a Pipedream workflow that uses httpSMS API to send a one-time code to the user's mobile device.
httpSMS uses API keys for authentication. When you connect your httpSMS account, Pipedream securely stores the keys so you can easily authenticate to httpSMS APIs in both code and no-code steps.
You will need the httpSMS app installed on your Android phone in order to use the httpSMS app - see the documentation here. Sign in and copy your API key directly from httpSMS Settings.