Thales Adaptive Connect Documentation Portal

External Server Connection Configuration Provisioning APIs

This API usage is available only for Thales Ops to manage platform configurations.

The API "/eim/v1/injection-configurations" is now deprecated since release-3.8.0. Earlier This API was intended to provision Injection Servers.

The TAC server may need to connect to external servers, such as an MQTT broker or an LwM2M server, when using Injection Mode for eIM package transfer. OTA Servers are needed as a ShoulderTap server to generate and send SMS triggers when the device is not immediately available.

ShoulderTap enables TAC to trigger communication with an eUICC device through an external OTA platform when direct communication with the device is not immediately available. The configured OTA platform generates and sends SMS triggers, allowing the IPA to initiate communication and execute pending operations.

These APIs facilitate the provisioning, retrieval, and management of external server connection configurations within the TAC system.

These external servers can be either an Injection Server or a ShoulderTap Server. Injection Server can be either an MQTT broker or an LwM2M server. ShoulderTap Server can be an OTA (SMS) server.

1. Create Connection Configuration

This POST API is used to provision a new connection configuration for the current tenant.

1.1. HTTP Request

POST /eim/v1/provisioning/connections

1.1.1. Query Parameters

None

1.1.2. Header Parameters

The request header content-type must be set to JSON.

Parameter Name Data Type Presence Description

Content-Type

String

M

Must be application/json

1.1.3. Request Body

The request body describes the connection configuration details that you want to provision.

Parameter Name Data Type Presence Description

protocol

Protocol

M

Communication protocol used for connection. Refer to SupportedProtocol

label

String

M

Unique Identifier used for the connection configuration. The value must be specified using the regex pattern ^[a-zA-Z0-9 .-]+$.

provider_name

String

C

Name of the protocol provider. It is mandatory for LWM2M server.

is_default

Boolean

O

Indicates whether this configuration is the default connection configuration for the tenant.

is_shoulder_tap

Boolean

C

Indicates whether shoulder-tap functionality is enabled for this configuration. Either is_shoulder_tap or is_injection must be true.

is_injection

Boolean

C

Indicates whether the connection configuration is used for injection mode. Either is_shoulder_tap or is_injection must be true.

additional_info

Json

0

RFU.

configuration

Json

C

Configuration Details specific to protocol. Host and Port are mandatory for MQTT. Refer to ConfigurationDetail

Examples For Create Connection Configuration request body

Example Request Body for MQTT Broker:

{
    "protocol": "MQTT",
    "label": "secure-thales-ota-conn-4",
    "is_default": false,
    "is_shoulder_tap": false,
    "is_injection": true,
    "additional_info": {
        "protocolVersion": "5.0",
        "clientId": "client-123"
    },
    "configuration": {
		"host": "mqtt.eim.thales.com",
		"port": 8883,
		"ca_cert": "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JS...",
		"client_cert": "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tQ2xpZW50...",
		"private_key": "LS0tLS1CRUdJTiBSU0EgUFJJVkFURSBLRVktLS0tLQo...",
		"pfx_file": "LS0tLS1CRUdJTiBSU0EgUFJJVkFURSBLRVktLS0tLQo...",
		"connect_timeout": 60,
		"clean_session": true,
		"keep_alive": 30,
		"user_name": "abc",
		"password": "changeit",
		"qos": 2,
		"topics": {
			"esipa": {
				"incoming_topic": "ipa-to-eim",
				"outgoing_topic": "eim-to-ipa"
			},
			"shoulder_tap": {
				"incoming_topic": "ipa-to-eim-trig",
				"outgoing_topic": "eim-to-ipa-trig"
			}
		}
	}
}

Example Request Body for OTA(SMS) Server:

{
    "protocol": "SMS",
    "label": "thales-ota",
    "is_default": false,
    "is_shoulder_tap": true,
    "is_injection": false
}

Example Request Body for LWM2M Server:

{
    "protocol": "LWM2M",
    "label": "test1.lwm2m.abc.io",
    "is_default": false,
    "is_shoulder_tap": false,
    "is_injection": true,
    "provider_name": "test1.lwm2m.abc.io"
}

1.2. HTTP Response

1.2.1. Success Response

Code Description

201

Connection Configuration Created Successfully!

1.2.2. Response Body

The response body provides the details of the provisioned connection configuration.

Parameter Name Data Type Description

protocol

Protocol

Communication protocol used for connection. Refer to SupportedProtocol

label

String

Unique Identifier used for the connection configuration. The value must be specified using the regex pattern ^[a-zA-Z0-9 .-]+$.

provider_name

String

Name of the protocol provider. It is mandatory for LWM2M server.

is_default

Boolean

Indicates whether this configuration is the default connection configuration for the tenant.

is_shoulder_tap

Boolean

Indicates whether shoulder-tap functionality is enabled for this configuration. Either is_shoulder_tap or is_injection must be true.

is_injection

Boolean

Indicates whether the connection configuration is used for injection mode. Either is_shoulder_tap or is_injection must be true.

additional_info

Json

RFU.

configuration

Json

Configuration Details specific to protocol. Host and Port are mandatory for MQTT. Refer to ConfigurationDetail

Example For Connection Configuration Creation response body
{
    "message": "Connection Configuration Created Successfully!",
    "tenant_id": "3a8aa14b-09c0-3760-bf0c-93151120b014",
    "response_object": {
        "protocol": "MQTT",
        "additional_info": {
            "protocolVersion": "5.0",
            "clientId": "client-123"
        },
        "is_default": false,
        "is_shoulder_tap": false,
        "is_injection": true,
        "configuration": {
            "host": "mqtt.eim.thales.com",
            "port": 8883,
            "ca_cert": "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JS...",
            "client_cert": "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tQ2xpZW50...",
            "private_key": "LS0tLS1CRUdJTiBSU0EgUFJJVkFURSBLRVktLS0tLQo...",
            "pfx_file": "LS0tLS1CRUdJTiBSU0EgUFJJVkFURSBLRVktLS0tLQo...",
            "connect_timeout": 60,
            "clean_session": true,
            "keep_alive": 30,
            "user_name": "abc",
            "password": "changeit",
            "qos": 2,
            "topics": {
                "esipa": {
                    "incoming_topic": "ipa-to-eim",
                    "outgoing_topic": "eim-to-ipa"
                },
                "shoulder_tap": {
                    "incoming_topic": "ipa-to-eim-trig",
                    "outgoing_topic": "eim-to-ipa-trig"
                }
            }
        },
        "label": "secure-thales-ota-conn-4"
    }
}

1.2.3. Error Response

Code Description

400

Bad Request : Invalid connection configuration parameters.

409

Conflict. Connection Configuration Already Exists.

500

Internal server error.

Example For Connection Configuration Creation Error response body
{
    "code": xxxx,
    "message": xxxx,
    "details": xxxx
}

2. Get Server Configuration

This GET API is used to retrieve the details of a specific Connection server configuration using its label.

2.1. HTTP Request

GET /eim/v1/provisioning/connections/label/{label}

2.1.1. Query Parameters

None

2.1.2. Path Parameters

The URI path must include the unique label of the connection configuration.

Parameter Name Data Type Presence Description

label

String

M

Unique label of the connection configuration.

2.1.3. Header Parameters

The request header content-type must be set to JSON.

Parameter Name Data Type Presence Description

Content-Type

String

M

Must be application/json

2.1.4. Request Body

None

2.2. HTTP Response

2.2.1. Success Response

Code Description

200

Connection Configuration Found!

2.2.2. Response Body

Parameter Name Data Type Description

protocol

Protocol

Communication protocol used for connection. Refer to SupportedProtocol

label

String

Unique Identifier used for the connection configuration. The value must be specified using the regex pattern ^[a-zA-Z0-9 .-]+$.

provider_name

String

Name of the protocol provider. It is mandatory for LWM2M server.

is_default

Boolean

Indicates whether this configuration is the default connection configuration for the tenant.

is_shoulder_tap

Boolean

Indicates whether shoulder-tap functionality is enabled for this configuration. Either is_shoulder_tap or is_injection must be true.

is_injection

Boolean

Indicates whether the connection configuration is used for injection mode. Either is_shoulder_tap or is_injection must be true.

additional_info

Json

RFU.

configuration

Json

Configuration Details specific to protocol. Host and Port are mandatory for MQTT. Refer to ConfigurationDetail

Example For Get Connection Configuration response body
{
    "message": "Connection Configuration Found!",
    "tenant_id": "3a8aa14b-09c0-3760-bf0c-93151120b014",
    "response_object": {
        "protocol": "MQTT",
        "provider_name": "secure-thales-ota",
        "additional_info": {
            "connectionType": "MQTT",
            "protocolVersion": "5.0",
            "clientId": "client-123"
        },
        "is_default": false,
        "is_shoulder_tap": true,
        "is_injection": false,
        "configuration": {
            "host": "mqtt.eim.thales.com",
            "port": 8883,
            "ca_cert": "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JS...",
            "client_cert": "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tQ2xpZW50...",
            "private_key": "LS0tLS1CRUdJTiBSU0EgUFJJVkFURSBLRVktLS0tLQo...",
            "pfx_file": "LS0tLS1CRUdJTiBSU0EgUFJJVkFURSBLRVktLS0tLQo...",
            "connect_timeout": 60,
            "clean_session": true,
            "keep_alive": 30,
            "user_name": "abc",
            "password": "changeit",
            "qos": 2,
            "topics": {
                "esipa": {
                    "incoming_topic": "ipa-to-eim",
                    "outgoing_topic": "eim-to-ipa"
                },
                "shoulder_tap": {
                    "incoming_topic": "ipa-to-eim-trig",
                    "outgoing_topic": "eim-to-ipa-trig"
                }
            }
        },
        "label": "secure-thales-ota-conn-4"
    }
}

2.2.3. Error Response

Code Description

404

Connection Configuration Not Found.

500

Internal server error.

Example Error Response
{
    "code": xxxx,
    "message": xxxx,
    "details": xxxx
}

3. Get All Server Configurations

This GET API is used to retrieve all connection configurations for the current tenant. Optionally, the response can be filtered by communication protocol.

3.1. HTTP Request

GET /eim/v1/provisioning/connections

3.1.1. Query Parameters

Parameter Name Data Type Presence Description

protocol

String

O

Filters the response by protocol.

3.1.2. Header Parameters

The request header content-type must be set to JSON.

3.1.3. Request Body

None

3.2. HTTP Response

3.2.1. Success Response

Code Description

200

Connection Configurations retrieved successfully.

3.2.2. Response Body

Returns a list of connection configurations.

Example Response
{
    "message": "Connection Configuration Found!",
    "tenant_id": "3a8aa14b-09c0-3760-bf0c-93151120b014",
    "response_object": [
        {
            "protocol": "MQTT",
            "additional_info": {
                "protocolVersion": "5.0",
                "clientId": "client-123"
            },
            "is_default": false,
            "is_shoulder_tap": false,
            "is_injection": true,
            "configuration": {
                "host": "mqtt.eim.thales.com",
                "port": 8883,
                "ca_cert": "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JS...",
                "client_cert": "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tQ2xpZW50...",
                "private_key": "LS0tLS1CRUdJTiBSU0EgUFJJVkFURSBLRVktLS0tLQo...",
                "pfx_file": "LS0tLS1CRUdJTiBSU0EgUFJJVkFURSBLRVktLS0tLQo...",
                "connect_timeout": 60,
                "clean_session": true,
                "keep_alive": 30,
                "user_name": "abc",
                "password": "changeit",
                "qos": 2,
                "topics": {
                    "esipa": {
                        "incoming_topic": "ipa-to-eim",
                        "outgoing_topic": "eim-to-ipa"
                    },
                    "shoulder_tap": {
                        "incoming_topic": "ipa-to-eim-trig",
                        "outgoing_topic": "eim-to-ipa-trig"
                    }
                }
            },
            "label": "secure-thales-ota-conn-3"
        },
        {
            "protocol": "LWM2M",
            "provider_name": "test1.lwm2m.abc.io",
            "is_default": false,
            "is_shoulder_tap": false,
            "is_injection": true,
            "label": "test1.lwm2m.abc.io"
        },
        {
            "protocol": "SMS",
            "is_default": false,
            "is_shoulder_tap": true,
            "is_injection": false,
            "label": "thales-ota"
        }
    ]
}

3.2.3. Error Response

Code Description

404

Connection Configuration Not Found.

500

Internal server error.

4. Patch Server Configuration

This PATCH API is used to partially update an existing connection configuration. Only the fields present in the request body are updated.

4.1. HTTP Request

PATCH /eim/v1/provisioning/connections/label/{label}

4.1.1. Path Parameters

Parameter Name Data Type Presence Description

label

String

M

Unique Identifier used for the connection configuration. The value must be specified using the regex pattern ^[a-zA-Z0-9 .-]+$.

4.1.2. Request Body

The request body contains only the fields to be updated.

Example Request Body
{
    "protocol": "MQTT",
    "provider_name": "secure-thales-ota",
    "is_shoulder_tap": false,
    "is_injection": true,
    "additional_info": {
        "protocolVersion": "5.0",
        "clientId": "client-123"
    },
    "configuration": {
		"host": "mqtt.eim.thales.com",
		"port": 8883,
		"ca_cert": "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JS...",
		"client_cert": "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tQ2xpZW50...",
		"private_key": "LS0tLS1CRUdJTiBSU0EgUFJJVkFURSBLRVktLS0tLQo...",
		"pfx_file": "LS0tLS1CRUdJTiBSU0EgUFJJVkFURSBLRVktLS0tLQo...",
		"connect_timeout": 60,
		"clean_session": true,
		"keep_alive": 30,
		"user_name": "abc",
		"password": "changeit",
		"qos": 2,
		"topics": {
			"esipa": {
				"incoming_topic": "ipa-to-eim",
				"outgoing_topic": "eim-to-ipa"
			},
			"shoulder_tap": {
				"incoming_topic": "ipa-to-eim-trig",
				"outgoing_topic": "eim-to-ipa-trig"
			}
		}
	}
}

4.2. HTTP Response

4.2.1. Success Response

Code Description

200

Connection Configuration Updated Successfully!

4.2.2. Response Body

Returns the updated connection configuration.

Example Response
{
    "message": "Connection Configuration Updated Successfully!",
    "tenant_id": "3a8aa14b-09c0-3760-bf0c-93151120b014",
    "response_object": {
        "protocol": "MQTT",
        "provider_name": "secure-thales-ota",
        "additional_info": {
            "connectionType": "MQTT",
            "protocolVersion": "5.0",
            "clientId": "client-123"
        },
        "is_default": false,
        "is_shoulder_tap": false,
        "is_injection": true,
        "configuration": {
            "host": "mqtt.eim.thales.com",
            "port": 8883,
            "ca_cert": "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JS...",
            "client_cert": "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tQ2xpZW50...",
            "private_key": "LS0tLS1CRUdJTiBSU0EgUFJJVkFURSBLRVktLS0tLQo...",
            "pfx_file": "LS0tLS1CRUdJTiBSU0EgUFJJVkFURSBLRVktLS0tLQo...",
            "connect_timeout": 60,
            "clean_session": true,
            "keep_alive": 30,
            "user_name": "abc",
            "password": "changeit",
            "qos": 2,
            "topics": {
                "esipa": {
                    "incoming_topic": "ipa-to-eim",
                    "outgoing_topic": "eim-to-ipa"
                },
                "shoulder_tap": {
                    "incoming_topic": "ipa-to-eim-trig",
                    "outgoing_topic": "eim-to-ipa-trig"
                }
            }
        },
        "label": "secure-thales-ota-conn-4"
    }
}

4.2.3. Error Response

Code Description

400

Bad Request.

404

Connection Configuration Not Found.

500

Internal server error.

5. Delete Server Configuration

This DELETE API is used to remove an existing connection configuration identified by its label.

5.1. HTTP Request

DELETE /eim/v1/provisioning/connections/label/{label}

5.1.1. Path Parameters

Parameter Name Data Type Presence Description

label

String

M

Unique Identifier used for the connection configuration. The value must be specified using the regex pattern ^[a-zA-Z0-9 .-]+$.

5.1.2. Request Body

None

5.2. HTTP Response

5.2.1. Success Response

Code Description

200

Connection Configuration Deleted Successfully!

5.2.2. Response Body

Example Response
{
    "message": "Connection Configuration Deleted Successfully!",
    "tenant_id": "3a8aa14b-09c0-3760-bf0c-93151120b014",
    "response_object": "secure-thales-ota-conn"
}

5.2.3. Error Response

Code Description

404

Connection Configuration Not Found.

500

Internal server error.

Example Error Response
{
    "code": xxxx,
    "message": xxxx,
    "details": xxxx
}

6. SupportedProtocol

Specifies the communication protocol used by the connection configuration.

Value Description

SMS

Uses an SMS-based OTA platform to perform ShoulderTap operations.

MQTT

Uses an MQTT broker to perform Injection operations.

LWM2M

Uses an LWM2M server to perform Injection operations.

7. ConfigurationDetail

The request body describes the connection configuration details that you want to provision.

Parameter Name Data Type Presence Description

host

String

C

Host of the connection server. Mandatory for MQTT protocol.

port

Integer

C

Port of the connection server. Mandatory for MQTT protocol.

ca_cert

String

O

CA Certificate to make connection with the server. RFU.

client_cert

String

O

Client Certificate to make connection with the server. RFU.

private_key

String

O

Private Key needed for TLS/SSL. RFU.

pfx_file

String

O

Certificate in pfx format to make connection with the server. RFU.

connect_timeout

Integer

0

The maximum time (in seconds) a client waits for a network connection to be established with the broker before giving up. RFU.

clean_session

Boolean

O

A connection setting that tells the broker whether to save or discard client data when the connection drops. RFU.

keep_alive

Integer

0

A time interval (in seconds) set during the connection handshake that ensures the client and broker know the network connection is still open and healthy. RFU.

user_name

String

0

Username if needed to make connection with the server. RFU.

password

String

0

Password if needed to make connection with the server. RFU.

qos

Integer

0

Quality of Service (QoS) in MQTT is an agreement between a sender and a receiver that defines the reliability guarantee for message delivery. RFU.

topics

Json

0

Incoming and Outgoing topics for MQTT protocol. RFU

Example For Configuration Object
{
    "host": "mqtt.eim.thales.com",
    "port": 8883,
    "ca_cert": "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JS...",
    "client_cert": "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tQ2xpZW50...",
    "private_key": "LS0tLS1CRUdJTiBSU0EgUFJJVkFURSBLRVktLS0tLQo...",
    "pfx_file": "LS0tLS1CRUdJTiBSU0EgUFJJVkFURSBLRVktLS0tLQo...",
    "connect_timeout": 60,
    "clean_session": true,
    "keep_alive": 30,
    "user_name": "abc",
    "password": "changeit",
    "qos": 2,
    "topics": {
        "esipa": {
            "incoming_topic": "ipa-to-eim",
            "outgoing_topic": "eim-to-ipa"
        },
        "shoulder_tap": {
            "incoming_topic": "ipa-to-eim-trig",
            "outgoing_topic": "eim-to-ipa-trig"
        }
    }
}

Tenant deployment configurations should have same label that would be provisioned through External Server Configuration Provisioning API.

For Example, following configurations have below labels with respective protocols:

LWM2M: test1.lwm2m.xyz.io, test1.lwm2m.abc.io

MQTT: test1.mqtt.io

SMS: test1.sms.io

Example Tenant Configurations:

global:
  externalDependencies:
    connectors:
      lwm2m:
        avsystem:
          # Planned for test suite
          "test1.lwm2m.xyz.io":
            name: lwm2m-server-mock
            enabled: false
            mutualAuth: false
            protocol: https
            hosts:
              - ${localhost}
            port: 8200
            domain: /change.me/
        motive:
          # Planned for test suite
          "test1.lwm2m.abc.io":
            name: lwm2m-server-mock
            enabled: false
            mutualAuth: false
            protocol: https
            hosts:
              - ${localhost}
            port: 8210
            domain: /change.me/
      mqtt:
        standard:
          "test1.mqtt.io":
            enabled: false
            name: mqtt1
            mutualAuth: false
            protocol: mqtts
            hosts:
              - ${localhost}
            port: 8250
      sms:
        cota:
          "test1.sms.io":
            name: cota-mock
            enabled: false
            mutualAuth: false
            protocol: https
            hosts:
              - ${localhost}
            port: 8220