SupersimV1IpCommand

Send an IP Command to a Super SIM.

Changed on

Send an IP Command to a Super SIM.

post/v1/IpCommands

Request

  • Base URL
    https://supersim.twilio.com
  • URL
    https://supersim.twilio.com/v1/IpCommands
  • Auth
    HTTP basic

Request body application/x-www-form-urlencoded

Simstring required

The sid or unique_name of the Super SIM to send the IP Command to.

Payloadstring required

The data that will be sent to the device. The payload cannot exceed 1300 bytes. If the PayloadType is set to text, the payload is encoded in UTF-8. If PayloadType is set to binary, the payload is encoded in Base64.

DevicePortinteger required

The device port to which the IP Command will be sent.

PayloadType'text' | 'binary'

Either “text” or “binary”. For an IP Command sent to a Super SIM, payload_type is configurable. For an IP Command sent from a Super SIM, payload_type is always “binary”.

CallbackUrlstring uri

The URL we should call using the callback_method after we have sent the IP Command.

CallbackMethod'GET' | 'POST' http-method

The HTTP method we should use to call callback_url. Can be GET or POST, and the default is POST.

Response

Created

sidstring nullable

The unique string that we created to identify the IP Command resource.

account_sidstring nullable

The SID of the Account that created the IP Command resource.

sim_sidstring nullable

The SID of the Super SIM that this IP Command was sent to or from.

sim_iccidstring nullable

The ICCID of the Super SIM that this IP Command was sent to or from.

status'queued' | 'sent' | 'received' | 'failed'

The delivery status of the IP Command. This is one of the following: “queued”, “sent”, “failed” or “received”.

direction'to_sim' | 'from_sim'

Either to_sim or from_sim. Indicates whether the IP Command resource was sent from or to the Super SIM.

device_ipstring nullable

The IP address of the device that the IP Command was sent to or received from. For an IP Command sent to a Super SIM, device_ip starts out as null, and once the IP Command is “sent”, the device_ip will be filled out. An IP Command sent from a Super SIM have its device_ip always set.

device_portinteger

For an IP Command sent to a Super SIM, it would be the destination port of the IP message. For an IP Command sent from a Super SIM, it would be the source port of the IP message.

payload_type'text' | 'binary'

Either “text” or “binary”. For an IP Command sent to a Super SIM, payload_type is configurable. For an IP Command sent from a Super SIM, payload_type is always “binary”.

payloadstring nullable

The payload that is carried in the IP/UDP message. The payload can be encoded in either text or binary format. For text payload, UTF-8 encoding must be used.

For an IP Command sent to a Super SIM, the payload is appended to the IP/UDP message “as is”. The payload should not exceed 1300 bytes.

For an IP Command sent from a Super SIM, the payload from the received IP/UDP message is extracted and sent in binary encoding. For an IP Command sent from a Super SIM, the payload should not exceed 1300 bytes. If it is larger than 1300 bytes, there might be fragmentation on the upstream and the message may appear truncated.

date_createdstring date-time nullable

The date and time in GMT when the resource was created specified in ISO 8601 format.

date_updatedstring date-time nullable

The date and time in GMT when the resource was last updated specified in ISO 8601 format.

urlstring uri nullable

The absolute URL of the IP Command resource.

Changes

    • info

      the response's property default value 0 was added for the status

    • breaking

      removed the enum value DELETE of the request property

    • breaking

      removed the enum value HEAD of the request property

    • breaking

      removed the enum value PATCH of the request property

    • breaking

      removed the enum value PUT of the request property