Soracom · Example Payload

Soracom Napter Create Example

IoTCellularLPWANSIMLoRaWANSigfoxMVNOConnectivityEdgeJapan

Soracom Napter Create Example is an example object payload from Soracom, with 2 top-level fields. It illustrates the shape of data this provider's APIs accept or return.

Top-level fields

requestresponse

Example Payload

Raw ↑
{
  "request": {
    "method": "POST",
    "url": "https://api.soracom.io/v1/port_mappings",
    "headers": {
      "Content-Type": "application/json",
      "X-Soracom-API-Key": "api-XXXXX",
      "X-Soracom-Token": "eyJhbGciOiJIUzI1NiJ9..."
    },
    "body": {
      "destination": {
        "imsi": "440101234567890",
        "port": 22
      },
      "source": {
        "ipRanges": ["203.0.113.10/32"]
      },
      "duration": 1800,
      "tlsRequired": false
    }
  },
  "response": {
    "status": 201,
    "headers": {
      "Content-Type": "application/json"
    },
    "body": {
      "key": "abc123def456",
      "ipAddress": "100.127.100.200",
      "port": 41023,
      "endpoint": "abc123def456.napter.soracom.io:41023",
      "destination": {
        "imsi": "440101234567890",
        "port": 22
      },
      "source": {
        "ipRanges": ["203.0.113.10/32"]
      },
      "duration": 1800,
      "expiresAt": 1748161800000,
      "tlsRequired": false
    }
  }
}