Mocean is a communication platform that provides an API and SDK for software developers to programmatically send and receive SMS worldwide, and perform other communication functions.
Go to siteThe Mocean API provides tools for sending SMS and making voice calls, enabling you to integrate communication features into your applications or workflows seamlessly. With MoceanAPI on Pipedream, you can automate sending notifications, create alert systems, or even implement two-factor authentication (2FA). It interacts with other apps and services to craft powerful, event-driven automation.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
mocean_api: {
type: "app",
app: "mocean_api",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://rest.moceanapi.com/rest/2/account/balance`,
params: {
"mocean-api-key": `${this.mocean_api.$auth.api_key}`,
"mocean-api-secret": `${this.mocean_api.$auth.api_secret}`,
},
})
},
})
SMS Notifications for E-Commerce: Automate order confirmation and dispatch notification via SMS to customers when their orders are processed in Shopify. Trigger a Mocean API action to send a text message directly from your Pipedream workflow whenever there's a new order or shipment in Shopify.
Voice Alert System for Monitoring Services: Set up a server monitoring workflow that makes automated calls using Mocean API when a server's health check fails. This could be tied to incoming HTTP requests or scheduled checks in Pipedream, ensuring that you immediately know about any critical service disruptions.
Two-Factor Authentication for User Security: Strengthen your app's security by adding 2FA. After a user login attempt, trigger a workflow that sends a one-time passcode via SMS through Mocean API. Integrate with Auth0 or another authentication service on Pipedream to verify the passcode and complete the authentication process.
Emit new event when the account balance has been updated. See the documentation
Retrieve your current account balance with Mocean API. See the documentation
Send an outbound SMS from your Mocean account. See the documentation
Mocean API uses API keys for authentication. When you connect your Mocean API account, Pipedream securely stores the keys so you can easily authenticate to Mocean API APIs in both code and no-code steps.
Sign in and copy your API Key and Secret from the API Account settings page.