Tutorials

How to Send MMS with Sinch, Node.js, and Fastify: Complete Tutorial

Learn how to send MMS messages using Sinch SMS API with Node.js and Fastify. Step-by-step tutorial covering project setup, API integration, error handling, rate limiting, and A2P 10DLC compliance for production-ready multimedia messaging.

JH
Jacky Hossein
β€’ Principal Telecommunications Architect β€’ Published Nov 5, 2026 β€’ 15 min read

Developer Quick-Start: Learn how to send MMS messages using Sinch SMS API with Node.js and Fastify. Step-by-step tutorial covering project setup, API integration, error handling, rate limiting, and A2P 10DLC compliance for production-ready multimedia messaging. Want to skip 10DLC vetting queues, carrier surcharges, and multi-step SDK boilerplate? You can send the same SMS directly via SMSRoute's REST API with instant no-KYC provisioning.

Learn how to build a production-ready MMS messaging service using the Sinch SMS API, Node.js, and Fastify. This comprehensive tutorial walks you through sending multimedia messages (images, GIFs, videos) with complete code examples covering project setup, Sinch API integration, error handling, rate limiting, and A2P 10DLC compliance requirements for US messaging.

What You'll Build: MMS Messaging API with Sinch and Fastify

What We're Building:

We will create a simple but robust Fastify API endpoint that accepts requests to send an MMS message (containing an image or other media hosted at a public URL) to a specified recipient via Sinch.

Problem Solved:

This service provides a straightforward way to integrate MMS sending capabilities into larger applications, abstracting the direct interaction with the Sinch API into a dedicated microservice or API layer. This is useful for applications needing to send media-rich notifications, alerts, or marketing messages.

Technologies Used:

  • Node.js: A JavaScript runtime built on Chrome's V8 engine, ideal for building fast, scalable network applications.
  • Fastify: A high-performance, low-overhead web framework for Node.js, chosen for its speed, extensive plugin ecosystem, and developer-friendly features like built-in validation.
  • Sinch SMS API (REST): We'll use Sinch's reliable REST API to handle the actual sending of MMS messages. While Sinch offers SDKs, using the REST API directly with axios provides clarity and control for this specific task.
  • axios: A popular promise-based HTTP client for making requests to the Sinch API.
  • dotenv: To manage environment variables securely for API credentials and configuration.
  • pino-pretty: To enhance development logging readability.
  • @fastify/rate-limit: To protect the API endpoint from abuse.
  • tap: A simple, effective testing framework often used with Fastify.

System Architecture:

+-------------+        +-----------------+        +-------------+        +-----------+
|   Client    | -----> |  Fastify API    | -----> |  Sinch API  | -----> | Recipient |
| (e.g., App, |        | (/send-mms)     |        | (SMS /batches)|       | (Mobile)  |
|  Frontend)  |        +-----------------+        +-------------+        +-----------+
|             |          |    |    ^                                        ^
|             |          |    v    |                                        |
|             |          |  Node.js                                         | (MMS)
|             |          | (axios)                                          |
|             |          +-----------------+                                 |
|             |                                                              |
|             | <------------------------------------------------------------+
|             |                  (Optional: Delivery Status via Webhook -> DB -> API)
+-------------+

Final Outcome & Prerequisites:

By the end of this guide, you will have a running Fastify application with a single API endpoint (POST /send-mms) capable of sending MMS messages via Sinch.

Prerequisites:

  1. Node.js and npm: Node.js v20 or later required (v22 LTS "Jod" recommended for new projects, Active LTS until October 2025). Note: Node.js v18 reaches end-of-life April 30, 2025. Fastify v5 requires Node.js v20+.
  2. Sinch Account: A registered account at Sinch.com.
  3. Sinch Service Plan ID and API Token: Found in your Sinch Customer Dashboard under SMS -> APIs. Select your API and look for the REST configuration.
  4. Sinch Phone Number: An MMS-capable number purchased or configured within your Sinch account, associated with the Service Plan ID above. Note: Contact your Sinch account manager to enable MMS support.
  5. Basic Command Line/Terminal Familiarity.
  6. (Optional) curl or Postman: For testing the API endpoint.
  7. (Mandatory for US Traffic) A2P 10DLC Registration: Effective February 1, 2025, all businesses sending SMS/MMS messages to US numbers must register with A2P 10DLC. Unregistered messages are blocked by US carriers. Registration requires Business EIN, campaign description, opt-in documentation, and typically takes 1–3 weeks. Work with Sinch to complete registration via The Campaign Registry (TCR).

Step 1: Setting Up Your Node.js MMS Project

Let's initialize our Node.js project and install the necessary dependencies using npm.

Step 1: Create Project Directory

Open your terminal and create a new directory for the project, then navigate into it.

mkdir sinch-mms-fastify
cd sinch-mms-fastify

Step 2: Initialize npm Project

This creates a package.json file to manage project dependencies and scripts. The -y flag accepts default settings.

npm init -y

Step 3: Install Dependencies

We need Fastify, axios for HTTP requests, dotenv for environment variables, and @fastify/rate-limit for security.

npm install fastify axios dotenv @fastify/rate-limit

Step 4: Install Development Dependencies

We'll use pino-pretty for readable logs during development and tap for testing.

npm install --save-dev pino-pretty tap

Step 5: Create Project Structure

Set up a basic structure for clarity:

mkdir src
mkdir src/routes
mkdir src/services
touch src/app.js
touch src/server.js
touch src/routes/mms.js
touch src/services/sinchService.js
touch .env
touch .env.example
touch .gitignore

Your structure should look like this:

sinch-mms-fastify/
β”œβ”€β”€ node_modules/
β”œβ”€β”€ src/
β”‚   β”œβ”€β”€ app.js             # Fastify app configuration
β”‚   β”œβ”€β”€ server.js          # Server startup logic
β”‚   β”œβ”€β”€ routes/
β”‚   β”‚   └── mms.js         # MMS sending route handler
β”‚   └── services/
β”‚       └── sinchService.js # Logic for interacting with Sinch API
β”œβ”€β”€ .env                 # Local environment variables (DO NOT COMMIT)
β”œβ”€β”€ .env.example         # Example environment variables (Commit this)
β”œβ”€β”€ .gitignore           # Files/folders ignored by Git
β”œβ”€β”€ package.json
└── package-lock.json

Step 6: Configure .gitignore

Prevent sensitive files and unnecessary folders from being committed to version control. Add the following to .gitignore:

# Node dependencies
node_modules/

# Environment variables
.env*
!.env.example

# Logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*

# Build output
dist/
build/

# OS generated files
.DS_Store
Thumbs.db

Step 7: Configure Environment Variables

Populate .env.example with the required variable names. This serves as a template.

.env.example:

.env

# Sinch API Credentials (Find in Sinch Dashboard -> SMS -> APIs -> Your API -> REST Configuration)
SINCH_SERVICE_PLAN_ID=YOUR_SERVICE_PLAN_ID
SINCH_API_TOKEN=YOUR_API_TOKEN

# Sinch Number associated with the Service Plan ID (E.164 format, e.g., +12025550181)
SINCH_FROM_NUMBER=YOUR_SINCH_NUMBER

# Sinch API Region Base URL (e.g., us, eu, ca, au, br, jp) - determines the base URL
# Examples: https://us.sms.api.sinch.com, https://eu.sms.api.sinch.com
# Defaulting to US here. Change if needed.
SINCH_REGION=us

# Server Configuration
PORT=3000
HOST=0.0.0.0 # Listen on all available network interfaces
LOG_LEVEL=info # Pino log levels: 'fatal', 'error', 'warn', 'info', 'debug', 'trace' or 'silent'

Now, create your local .env file by copying .env.example and fill in your actual credentials obtained from the Sinch dashboard. Never commit your .env file.

.env:

.env

# --- COPY from .env.example and fill with REAL values ---
SINCH_SERVICE_PLAN_ID=your_actual_service_plan_id_here
SINCH_API_TOKEN=your_actual_api_token_here
SINCH_FROM_NUMBER=+1xxxxxxxxxx # Your actual Sinch number
SINCH_REGION=us # Or your region
PORT=3000
HOST=0.0.0.0
LOG_LEVEL=info
# --- END COPY ---

Step 8: Add Run Scripts to package.json

Add scripts for starting the server in development (with pretty logging) and production modes.

package.json:

{

  ""main"": ""src/server.js"",
  ""scripts"": {
    ""start"": ""node src/server.js"",
    ""dev"": ""node src/server.js | pino-pretty"",
    ""test"": ""tap src*.test.js""
  },

}

Why this setup?

  • Separation of Concerns: Dividing code into routes, services, app.js, and server.js makes the application easier to understand, maintain, and test.
  • Environment Variables: Using .env keeps sensitive credentials out of the codebase and allows for different configurations per environment (dev, staging, prod).
  • .gitignore: Essential for preventing accidental commits of secrets or large directories.
  • pino-pretty: Improves developer experience by making logs human-readable during development.
  • npm scripts: Standardizes common tasks like starting the server.

Step 2: Implementing the Sinch MMS Service

Now, let's write the code that interacts directly with the Sinch SMS API to send MMS messages. This service layer handles authentication, request construction, and error handling when communicating with Sinch's REST API endpoints.

File: src/services/sinchService.js

import axios from 'axios';
import dotenv from 'dotenv';

dotenv.config();

const {
  SINCH_SERVICE_PLAN_ID,
  SINCH_API_TOKEN,
  SINCH_FROM_NUMBER,
  SINCH_REGION = 'us',
} = process.env;

if (!SINCH_SERVICE_PLAN_ID || !SINCH_API_TOKEN || !SINCH_FROM_NUMBER) {

  console.error('Error: Missing required Sinch environment variables (SERVICE_PLAN_ID, API_TOKEN, FROM_NUMBER).');
  process.exit(1);
}

const SINCH_BASE_URL = `https://${SINCH_REGION}.sms.api.sinch.com/xms/v1/${SINCH_SERVICE_PLAN_ID}`;

const sinchApiClient = axios.create({
  baseURL: SINCH_BASE_URL,
  headers: {
    'Authorization': `Bearer ${SINCH_API_TOKEN}`,
    'Content-Type': 'application/json',
    'Accept': 'application/json',
  },
  timeout: 15000,
});

async function sendMms(to, mediaUrl, text = '') {
  const endpoint = '/batches';


  const payload = {
    to: [to],
    from: SINCH_FROM_NUMBER,
    body: {
      url: mediaUrl,


    },

    ...(text && { parameters: {




        text_message: { default: text }
    }}),



  };

  try {
    console.info(`[Sinch Service] Attempting to send MMS to ${to}...`);
    const response = await sinchApiClient.post(endpoint, payload);


    if (response.status === 200 || response.status === 201) {
      console.info(`[Sinch Service] Sinch API Success Response Status: ${response.status}`);
      console.info('[Sinch Service] Sinch Response Data:', response.data);

      return response.data;
    } else {

      console.error(`[Sinch Service] Sinch API returned non-success status: ${response.status}`, response.data);
      throw new Error(`Sinch API Error: Status ${response.status}`);
    }
  } catch (error) {
    console.error('[Sinch Service] Error sending MMS via Sinch:', error.message);
    if (error.response) {


      console.error('[Sinch Service] Sinch Error Response Data:', error.response.data);
      console.error('[Sinch Service] Sinch Error Response Status:', error.response.status);
      console.error('[Sinch Service] Sinch Error Response Headers:', error.response.headers);

      const sinchError = error.response.data?.request_error?.service_exception?.text
                       || error.response.data?.text
                       || `Sinch API request failed with status ${error.response.status}`;
      throw new Error(`Failed to send MMS: ${sinchError}`);
    } else if (error.request) {

      console.error('[Sinch Service] Sinch Error Request:', error.request);
      throw new Error('Failed to send MMS: No response received from Sinch API.');
    } else {

      console.error('[Sinch Service] Sinch Error Config:', error.config);
      throw new Error(`Failed to send MMS: Error setting up request - ${error.message}`);
    }
  }
}

export default { sendMms };

Explanation:

  1. Environment Variables: We load credentials using dotenv and immediately check if the essential ones (SERVICE\_PLAN\_ID, API\_TOKEN, SINCH\_FROM\_NUMBER) are present. The application exits if they are missing, preventing runtime errors later.
  2. Base URL: The Sinch API base URL is constructed dynamically based on the SINCH\_REGION environment variable, defaulting to us.
  3. axios Instance: We create a dedicated axios instance (sinchApiClient) pre-configured with the baseURL, Authorization header (using the Bearer token), and standard JSON headers. Setting a timeout prevents requests from hanging indefinitely.
  4. sendMms Function:
  • Takes the recipient number (to), the mediaUrl, and optional text as arguments.
  • Defines the Sinch /batches endpoint. While sending a single message, the /batches endpoint is commonly used and supports MMS.
  • Constructs the payload according to the Sinch API specification for sending MMS via the batches endpoint:
  • to: An array containing the recipient number(s).
  • from: The Sinch number loaded from environment variables.
  • body: An object containing the url of the media.
  • parameters: If text is provided, it's added within the parameters object. This is a common way to include text alongside media in the /batches endpoint. (Note: Carrier handling of text alongside MMS can vary, consult latest Sinch docs).
  • Uses async/await to call sinchApiClient.post.
  • Includes basic console.info/console.error logging for this service module. The Fastify route handler uses the framework's structured logger (fastify.log).
  • Performs robust error handling:
  • Checks the response status code for success (200 or 201).
  • Catches various axios error types (response error, request error, setup error).
  • Logs detailed error information from the Sinch response (error.response.data) if available.
  • Throws a new, more informative error message for the calling function to handle.

Step 3: Creating the Fastify API Endpoint for MMS

Now, let's create the Fastify route handler that receives HTTP requests and uses our sinchService to send MMS messages. This endpoint includes automatic request validation, structured error handling, and comprehensive logging for production use.

File: src/routes/mms.js

import sinchService from '../services/sinchService.js';

const sendMmsBodySchema = {
  type: 'object',
  required: ['to', 'mediaUrl'],
  properties: {
    to: {
      type: 'string',
      description: 'Recipient phone number in E.164 format (e.g., +12025550181)',

      pattern: '^\\+[1-9]\\d{1,14}$'
    },
    mediaUrl: {
      type: 'string',
      description: 'Publicly accessible URL of the media file (JPEG, PNG, GIF)',
      format: 'url'
    },
    text: {
      type: 'string',
      description: 'Optional text message to accompany the media (max 1600 chars)',
      maxLength: 1600,
      nullable: true
    }
  },
  additionalProperties: false
};

const successResponseSchema = {
  type: 'object',
  properties: {
    message: { type: 'string' },
    batch_id: { type: 'string', description: 'Sinch batch ID for tracking' },

  }
};

const errorResponseSchema = {
    type: 'object',
    properties: {
        statusCode: { type: 'integer' },
        error: { type: 'string' },
        message: { type: 'string' },
    }
};

async function mmsRoutes(fastify, options) {

  fastify.post('/send-mms', {
    schema: {
      description: 'Send an MMS message via Sinch',
      tags: ['MMS'],
      summary: 'Sends an MMS message',
      body: sendMmsBodySchema,
      response: {
        200: successResponseSchema,



        400: errorResponseSchema,
        500: errorResponseSchema
      }
    }
  }, async (request, reply) => {

    const log = request.log;
    const { to, mediaUrl, text } = request.body;

    log.info(`Received request to send MMS to ${to}`);

    try {


      const sinchResponse = await sinchService.sendMms(to, mediaUrl, text);



      const replyPayload = {
          message: 'MMS sent successfully via Sinch.',

          batch_id: sinchResponse?.id || 'N/A',
      };

      reply.code(200).send(replyPayload);

    } catch (error) {
      log.error({ err: error }, `Error processing /send-mms request: ${error.message}`);



      if (error.message.includes('Failed to send MMS:') &&
          (error.message.includes('400') ||
           error.message.includes('Invalid') ||
           error.message.includes('format'))) {
         reply.code(400).send({
             statusCode: 400,
             error: 'Bad Request',

             message: error.message.replace('Failed to send MMS: ', '')
         });
      } else {

         reply.code(500).send({
             statusCode: 500,
             error: 'Internal Server Error',

             message: 'An unexpected error occurred while attempting to send the MMS.'
         });
      }
    }
  });
}

export default mmsRoutes;

Explanation:

  1. Schema Validation: We define detailed JSON schemas (sendMmsBodySchema, successResponseSchema, errorResponseSchema) for the request body and possible responses. Fastify uses these schemas to:
  • Automatically validate incoming requests: If a request doesn't match sendMmsBodySchema, Fastify automatically sends back a 400 Bad Request error before our handler code even runs. This is efficient and secure. We validate to (E.164 pattern), mediaUrl (must be a valid URL format), and text (optional, max length). additionalProperties: false prevents unexpected fields.
  • Serialize responses: Ensures the outgoing response matches the defined success or error schema.
  • (Optional) Generate OpenAPI documentation: These schemas are essential if you later use plugins like @fastify/swagger to generate API docs.
  1. Route Definition:
  • fastify.post('/send-mms', { schema }, async (request, reply) => { ... }) defines the POST endpoint.
  • The schema option attaches our validation and response schemas to the route.
  1. Handler Logic:
  • Extracts validated data (to, mediaUrl, text) from request.body.
  • Uses request.log.info (Fastify's request-bound logger) for logging within the handler context.
  • Calls sinchService.sendMms within a try...catch block.
  • On success, sends a 200 OK response with a success message and the batch\_id received from Sinch.
  • On error, logs the error using request.log.error (including the error object for more context) and sends an appropriate error response (attempting to distinguish between 400 Bad Request for likely client/Sinch input errors and 500 Internal Server Error for other issues) with a standardized error payload.

Step 4: Configuring the Fastify Application

The core Sinch integration was handled in src/services/sinchService.js. Now let's configure our main Fastify application (app.js) to load environment variables, set up logging, register plugins (like rate limiting), and register our MMS route.

File: src/app.js

import Fastify from 'fastify';
import dotenv from 'dotenv';
import rateLimit from '@fastify/rate-limit';
import mmsRoutes from './routes/mms.js';

dotenv.config();

const {
  LOG_LEVEL = 'info',
} = process.env;

async function buildApp(opts = {}) {



  const app = Fastify({
    logger: {
      level: LOG_LEVEL,
      ...(process.env.NODE_ENV !== 'production' && {
        transport: {
          target: 'pino-pretty',
          options: {
            translateTime: 'HH:MM:ss Z',
            ignore: 'pid,hostname',
          },
        }
      }),
    },
    ...opts,
  });





  await app.register(rateLimit, {
    max: 100,
    timeWindow: '1 minute',










  });
  app.log.info('Rate limit plugin registered.');




  await app.register(mmsRoutes, { prefix: '/api/v1' });
  app.log.info('MMS routes registered under /api/v1.');












  const shutdown = async (signal) => {
      app.log.warn(`Received ${signal}. Shutting down gracefully...`);
      try {
          await app.close();
          app.log.info('Server closed successfully.');
          process.exit(0);
      } catch (err) {
          app.log.error({ err }, 'Error during server shutdown.');
          process.exit(1);
      }
  };
  process.on('SIGINT', shutdown);
  process.on('SIGTERM', shutdown);

  app.log.info('Application setup complete.');
  return app;
}

export default buildApp;

File: src/server.js

import buildApp from './app.js';

const {
  PORT = 3000,
  HOST = '0.0.0.0'
} = process.env;

async function startServer() {
  let app;
  try {
    app = await buildApp();


    await app.listen({ port: PORT, host: HOST });



    const address = app.server.address();
    const addressString = typeof address === 'string' ? address : `${address?.address}:${address?.port}`;
    app.log.info(`Server listening on ${addressString}`);

  } catch (err) {

    console.error('Error starting server:', err);

    if (app && app.log) {
        app.log.error({ err }, 'Server startup failed.');
    }
    process.exit(1);
  }
}

startServer();

Explanation:

  1. src/app.js (Configuration):
  • Imports: Brings in Fastify, dotenv, the rateLimit plugin, and our mmsRoutes.
  • buildApp Function: Encapsulates app creation and configuration. This pattern is useful for testing, allowing tests to import and build the app without automatically starting the server.
  • Fastify Instance: Creates the app instance.
  • Logger: Configured with LOG\_LEVEL from environment variables. It smartly enables pino-pretty only when NODE\_ENV is not production, ensuring structured JSON logs in production (better for log aggregation tools) and readable logs in development/testing.
  • Plugin Registration:
  • @fastify/rate-limit: Registered using app.register. We set a basic limit (e.g., 100 requests per minute). Comments indicate how to use Redis for distributed limiting or customize the error response.
  • Route Registration:
  • app.register(mmsRoutes, { prefix: '/api/v1' }): Registers all routes defined in mms.js under the /api/v1 path prefix. This versions the API.
  • Graceful Shutdown: Implements handlers for SIGINT and SIGTERM signals. This ensures that when the server is asked to stop (e.g., by Ctrl+C, Docker, or Kubernetes), it attempts to finish processing existing requests and close connections cleanly using app.close() before exiting.
  1. src/server.js (Startup):
  • Imports: Imports the buildApp function.
  • startServer Function:
  • Calls buildApp() to get the configured Fastify instance.
  • Calls app.listen() to start the HTTP server, listening on the PORT and HOST defined in environment variables (or defaults).
  • Logs the listening address using app.log.info after the server has successfully started listening. It correctly handles getting the address information.
  • Includes robust error handling for startup failures, attempting to use app.log if available, otherwise falling back to console.error.

Step 5: Adding Error Handling, Logging, and Retry Logic

  • Error Handling: We've already implemented significant error handling:
  • Fastify's automatic request validation via schemas (mms.js).
  • try...catch blocks in the route handler (mms.js) and the service layer (sinchService.js).
  • Detailed error logging (using request.log in the route, console.error in the service), including Sinch API responses when available in the service layer logs.
  • Returning appropriate HTTP status codes (400, 500) with consistent JSON error payloads from the API route.
  • Logging:
  • Fastify's built-in Pino logger is configured in app.js.
  • Uses pino-pretty for readable development logs.
  • Produces structured JSON logs in production (controlled by NODE\_ENV).
  • Logs are written at different levels (info, error, warn) providing context. Request-bound logging (request.log) in the route handler automatically includes request IDs.
  • Troubleshooting: Analyze logs (e.g., using grep or log management tools like Datadog, Splunk in production) to diagnose issues. Look for error messages, stack traces, and context like request IDs.
  • Retry Mechanisms:
  • Sending SMS/MMS can sometimes experience transient network issues or brief downstream service unavailability (e.g., Sinch returning 5xx errors). Implementing retries can improve reliability for such cases.
  • Strategy: Use a library like axios-retry integrated with the sinchApiClient in sinchService.js.
  • Install: npm install axios-retry
  • Example Integration (in src/services/sinchService.js):
      import axios from 'axios';
      import dotenv from 'dotenv';
      import axiosRetry from 'axios-retry';

      const sinchApiClient = axios.create({  });

      axiosRetry(sinchApiClient, {
        retries: 3,
        retryDelay: (retryCount, error) => {
          console.warn(`[Sinch Service] Retry attempt ${retryCount} for ${error.config.url}: ${error.message}`);
          return axiosRetry.exponentialDelay(retryCount, error, 1000);
        },
        retryCondition: (error) => {

          return axiosRetry.isNetworkOrIdempotentRequestError(error) ||
                 (error.response && error.response.status >= 500 && error.response.status <= 599);
        },
        shouldResetTimeout: true,
      });
  • Considerations: Retries are generally safe for the Sinch /batches endpoint, especially if using a unique client\_reference (not shown here) for idempotency. Avoid retrying on non-recoverable errors like 4xx client errors (e.g., invalid number format).

MMS Technical Specifications and Sinch API Limits

MMS Media Requirements

Supported Formats:

  • JPEG/JPG
  • PNG
  • GIF (static and animated)

File Size Limits:

  • Recommended: 200–500 KB for optimal speed and deliverability
  • Maximum: 2 MB (varies by carrier)
  • Note: Larger files may experience delivery delays or failures on certain carrier networks

Image Dimensions:

  • Default preview: 640Γ—1138 pixels (9:16 aspect ratio)
  • Square: 600Γ—600 pixels (recommended for profile images)
  • Landscape: 1280Γ—720 pixels (recommended for wide content)

Sinch API Specifications

API Type: mt_media (required for MMS messages via batches endpoint)

Endpoint Structure:

https://{region}.sms.api.sinch.com/xms/v1/{service_plan_id}/batches

Regional Endpoints:

  • us - United States
  • eu - Europe
  • ca - Canada
  • au - Australia
  • br - Brazil
  • jp - Japan

Rate Limits: Contact Sinch support for account-specific rate limits and throughput requirements.

A2P 10DLC Compliance (US Only)

Mandatory Since: February 1, 2025

Registration Requirements:

  • Business EIN (Employer Identification Number)
  • Professional email address (non-free domains)
  • Campaign description and use case
  • Opt-in method documentation
  • Privacy policy and terms of service URLs

Timeline: 1–3 weeks for standard campaigns (3–7 business days for campaign approval after brand registration)

Restricted Industries: Cannabis/hemp, firearms, payday loans, third-party collections are not eligible for 10DLC registration.

Consequence of Non-Registration: Messages blocked by US carriers, higher filtering rates, potential account suspension.

Looking to expand your messaging capabilities? Check out these related guides:

  • E.164 Phone Number Format Guide - Essential formatting for international phone numbers
  • A2P 10DLC Registration Process - Complete guide to US messaging compliance
  • SMS vs MMS: When to Use Each
  • Compare messaging types and use cases

Source Citations

Node.js Version Information:

  • Node.js Release Schedule: https://nodejs.org/en/about/previous-releases
  • Node.js v22 LTS Announcement: https://nodesource.com/blog/Node.js-v22-Long-Term-Support-LTS
  • Node.js End-of-Life Dates: https://endoflife.date/nodejs

Fastify Framework:

  • Fastify npm Package: https://www.npmjs.com/package/fastify
  • Fastify V5 Migration Guide: https://fastify.dev/docs/v5.0.x/Guides/Migration-Guide-V5/
  • Fastify LTS Documentation: https://fastify.dev/docs/v5.4.x/Reference/LTS/

Sinch MMS API:

  • Sinch SMS API Reference: https://developers.sinch.com/docs/sms/api-reference/
  • Sinch MMS Support Documentation: https://developers.sinch.com/docs/sms/api-reference/mms-support/
  • Sinch Batches Endpoint: https://developers.sinch.com/docs/sms/api-reference/sms/tag/Batches/
  • Sinch SMS API Overview: https://developers.sinch.com/docs/sms/api-reference/sms/overview/

MMS Technical Standards:

  • AWS MMS File Types and Size Limits: https://docs.aws.amazon.com/sms-voice/latest/userguide/mms-limitations-character.html
  • Twilio MMS Supported File Types: https://support.twilio.com/hc/en-us/articles/360018832773
  • MMS Image Size Guide: https://sakari.io/blog/mms-image-size-guide

A2P 10DLC Compliance:

  • Twilio A2P 10DLC Documentation: https://www.twilio.com/docs/messaging/compliance/a2p-10dlc
  • 10DLC 2025 Registration Guide: https://callhub.io/blog/compliance/10dlc-2025-registration-callhub/
  • Infobip A2P 10DLC Guide: https://www.infobip.com/blog/10dlc-registration
  • Nextiva A2P 10DLC Complete Guide: https://www.nextiva.com/blog/what-is-a2p-10dlc.html

Simpler Alternative: Send the Same SMS With SMSRoute (No-KYC, Direct Routes)

If you want to replace legacy aggregator SDK boilerplate, multi-week compliance queues, and opaque carrier surcharges with a single HTTP request, SMSRoute delivers global SMS over direct Tier-1 carrier interconnects with instant API access and transparent per-country pricing.

curl -X POST https://api.sendsmsnokyc.com/messages \
  -H "x-api-key: $SMSROUTE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "to": ["+14155551234"],
    "channel": ["sms"],
    "body": "Your verification code is 482910"
  }'
  • Instant onboarding: No KYC paperwork or sales queues β€” grab an API key and fund with crypto (BTC/USDT) or card.
  • Direct Tier-1 routes: Verify real handset delivery, DLR latency, and Sender ID preservation before launch via SMSRoute Live Carrier Testing.
  • Transparent global pricing: Compare exact per-country termination rates on our live pricing page.

Ship Global SMS in One API Call

Skip legacy SDK sprawl and carrier bottlenecks. Send OTPs, alerts, and bulk campaigns across 190+ countries with SMSRoute.

Explore SMSRoute Developers β†’