View as Markdown
InMobile icon

InMobile ACTION

Send SMS Messages

Send one or more SMS messages using the InMobile API. See the documentation
  • Action
  • Writes data
  • Destructive
  • API key
  • SDK
  • MCP

IMPLEMENTATION

Call this tool

Connect a user's InMobile account once, then configure and run Send SMS Messages from your backend or agent.

import { PipedreamClient } from "@pipedream/sdk"

const pd = new PipedreamClient({
  projectId: process.env.PIPEDREAM_PROJECT_ID!,
  clientId: process.env.PIPEDREAM_CLIENT_ID!,
  clientSecret: process.env.PIPEDREAM_CLIENT_SECRET!,
  projectEnvironment: "production",
})

const result = await pd.actions.run({
  id: "inmobile-send-sms-messages",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    inmobile: { authProvisionId: "apn_xxxxxxx" },
    messages: ["Messages"],
  },
})

console.log(result)

SCHEMA

Inputs

Pipedream supplies the connected account. Your application provides the operation-specific values below. Dynamic inputs are resolved against that user's account.

Send SMS Messages inputs
Property Type Description
messages Messages string[]

An array of message objects (1-250 messages). Each message object supports the following properties:

Required Fields:

  • to (string): The msisdn (country code and number) to send to. Remember to include country code, e.g. 4512345678
  • text (string): The text message (1-10000 characters)
  • from (string): The sender. Can be a 3-11 character text sender or up to 14 digit sender number

Optional Fields:

  • countryHint (string): Country code for optimal phone number validation, e.g. 44 or GB
  • messageId (string): Optional message ID to identify the message (1-50 characters, must be unique)
  • respectBlacklist (boolean): Block message if target number is blacklisted. Default: true
  • validityPeriodInSeconds (integer): Validity period (60-172800 seconds). Default: 172800 (48 hours)
  • statusCallbackUrl (string): URL for delivery status callbacks
  • sendTime (string): Schedule message for future sending, e.g. 2024-12-31T14:50:23Z (UTC time)
  • msisdnCooldownInMinutes (integer): Prevent sending to same number within period (60-43200 minutes)
  • flash (boolean): Send as flash message (class0). Default: false
  • encoding (string): Message encoding - gsm7 (default, 160 chars), ucs2 (70 chars), or auto

Example:

[
  {
    "to": "4512345678",
    "text": "Hello World",
    "from": "YourSender",
    "encoding": "gsm7"
  },
  {
    "to": "4587654321",
    "text": "Another message",
    "from": "YourSender",
    "flash": true
  }
]
Required

REFERENCE

Tool details

Behavior hints are published with the component in the Pipedream registry and surface as MCP tool annotations, so an agent can reason about a tool before it calls it.

Registry key
inmobile-send-sms-messages
Version
0.0.2
App
InMobile
Authentication
API key
Read-only
No
Destructive
Yes
Open world
Yes