---
title: "Route an inbound SMS to a SIM"
method: POST
path: "/sms/incoming/"
tags: ["SIMs (Devices)"]
---

# Route an inbound SMS to a SIM

`POST /sms/incoming/`

## Request

- Base URL: `https://dashboard.hologram.io/api/1`
- URL: `https://dashboard.hologram.io/api/1/sms/incoming/`
- Auth: HTTP basic
- TypeScript: <https://skmtc.dev/hologram/apis/hologram-rest-api-v1/docs/sms/incoming/post.ts> (a function with typed inputs; its response is checked against the schema)

Authenticated endpoint for delivering inbound SMS to a SIM.

## Request body

- object
  - `fromnumber` string: Source phone number
  - `body` string: SMS message body (plain text)
  - `base64body` string: Base64-encoded message body; takes precedence over body if provided
  - `deviceid` integer: Target device ID
  - `deviceids` integer[]: Target device IDs
  - `phonenumber` string: Target SIM phone number; used to look up SIM when deviceid/deviceids are absent

## Response `200`

OK

- SMSInboundResponse
  - `success` boolean: Indicates whether the request was successful.
  - `data` object
    - `msgcount` integer: Number of device-terminated SMS messages sent

## Other responses

- `400`: Bad request
- `401`: Unauthorized

---

[API](https://skmtc.dev/hologram/apis/hologram-rest-api-v1.md) - [All operations](https://skmtc.dev/hologram/apis/hologram-rest-api-v1/llms.txt) - [OpenAPI document](https://skmtc.dev/hologram/apis/hologram-rest-api-v1/revisions/1bc07dcd1631?raw)
