Docs
OverviewPlatformPlatform APIA2P Messaging API
AI & MCP
Open dashboard
OverviewPlatformPlatform APIA2P Messaging API
AI & MCP
  • Overview
  • Create an account
  • Choose your API
  • AI & MCP
Channels
    • Senders
    • Coverage
    • Destination countries
    • Wildcard route
    • Agents
HTTP
  • Quickstart
  • Bulk sending
  • Authentication
  • Rate limits
  • Errors
  • DLRs
  • Traffic metrics
  • Full API Reference
SMPP
  • Authentication
  • Integration
SDKs
  • Node.js
  • PHP
  • Python
  • Ruby
  • Java
Legacy API
  • Overview
  • Authentication
  • Full API Reference
DashboardSupportinstasent.com

A2P Messaging API · SDKs

Node.js SDK

Official Node.js client for the Instasent A2P Messaging API. Install via npm, instantiate the SMS client with your api_sms token, and call the high-level methods instead of wiring fetch by hand.

On this page▾
  • Installation
  • Send an SMS
  • Available methods
  • Getting help

The Node.js SDK wraps the A2P Messaging HTTP endpoints so you do not have to build requests manually. If the SDK does not cover a call you need, drop back to plain fetch — the Reference describes every endpoint.

The canonical source for this SDK is under review. Until it is confirmed, treat the method names below as indicative and double-check against the GitHub repository before wiring it into production.

Installation

npm install instasent

Send an SMS

const Instasent = require("instasent");
 
const client = new Instasent.SmsClient(process.env.INSTASENT_TOKEN);
 
const response = await client.sendSms("My company", "+34666666666", "test message");
console.log(response.response_code);
console.log(response.response_body);

Available methods

client.sendSms(sender, to, text);
client.getSms(page, perPage);
client.getSmsById(messageId);

Getting help

For help installing or using the library, contact support@instasent.com. Bugs and feature requests belong on the library's GitHub repository.

Product and pricing

  • SMS API
  • SMS and RCS pricing

Last updated September 30, 2026

PreviousIntegrationNextPHP
  • Installation
  • Send an SMS
  • Available methods
  • Getting help

© 2026 Instasent

Privacy PolicyTerms & ConditionsCookie PolicyLegal Notice
All systems operational