--- title: "MdlAddDevice (Service) [v1]" slug: "dpgw-ig-mdladddevice-service-v1-5-11" updated: 2025-07-04T10:05:55Z published: 2025-07-07T16:28:37Z canonical: "docs.onespan.com/dpgw-ig-mdladddevice-service-v1-5-11" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.onespan.com/llms.txt > Use this file to discover all available pages before exploring further. # MdlAddDevice (Service) [v1] > This command is deprecated! Use [MdlAddDevice (service) [v2]](/sec/docs/dpgw-ig-mdladddevice-service-v2-5-11) instead! > API version: 1 > > Availability: DIGIPASS Gateway 4.1 and later > > Authentication: Basic HTTP authentication using the front-end API key. The MdlAddDevice registers a new device that supports Secure Channel activation. It retrieves Activation Message 2 (instance). ## URL https://dpgateway_host:dpgateway_port/rest/activation/MdlAddDevice ## Request | MdlAddDevice parameters | | --- | | Parameter name | Data type | Description | | registrationID | String | Required. The unique identifier of a user for a given activation process. | | deviceCode | String | Required. The device code generated by the mobile application using the Digipass SDK. This is needed for validation and derivation purposes. | ### Example ```json {  "registrationID": "myRegistrationID",  "deviceCode": "12345678901234567890123456" } ``` ## Response | MdlAddDevice return values | | --- | | Return value | Data type | Description | | errorCode | Integer | The return code provided by OneSpan Authentication Server. 0 is returned in case of success. | | errorMessage | String | The error message provided by OneSpan Authentication Server. STAT_SUCCESS is returned in case of success. | | instanceActivationMessage | String | The instance activation message (i.e. Activation Message 2). | ### Example ```json {  "errorCode": 0,  "errorMessage": "STAT_SUCCESS",  "instanceActivationMessage": "82A53BF7E525012E2488BA51E9E33655..." } ```