--- title: "DSAPPSRPGenerateEphemeralKey (Service) [v2]" slug: "dpgw-ig-dsappsrpgenerateephemeralkey-service-v2-5-12" updated: 2026-01-12T11:17:21Z published: 2026-01-14T17:21:37Z canonical: "docs.onespan.com/dpgw-ig-dsappsrpgenerateephemeralkey-service-v2-5-12" --- > ## 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. # DSAPPSRPGenerateEphemeralKey (Service) [v2] > API version: 2 > > Availability: DIGIPASS Gateway 5.0 and later > > Authentication: Basic HTTP authentication using the front-end API key. The DSAPPSRPGenerateEphemeralKey service initializes the activation process by exchanging public keys. It performs a provisioning ephemeral key generation using Digipass Software Advanced Provisioning Protocol-Secure Remote Password (DSAPP-SRP). ## URL https://dpgateway_host:dpgateway_port/rest/v2/provisioning /DSAPPSRPGenerateEphemeralKey ## Request | DSAPPSRPGenerateEphemeralKey parameters | | --- | | Parameter name | Data type | Description | | registrationIdentifier | String | Required. The unique identifier of a user for a given activation process. | | clientEphemeralPublicKey | String | Required. The client ephemeral public key generated by the mobile application with the DSAPP SDK. | ### Example ```json {  "registrationIdentifier": "myRegistrationID",  "clientEphemeralPublicKey": "0BB2EA6580A127320F3C6341CEF75367..." } ``` ## Response | DSAPPSRPGenerateEphemeralKey return values | | --- | | Return value | Description | | resultCodes | A JSON object that contains the return and status codes of the service. | | result | A JSON object that contains the ephemeral public key and the salt. | ### Example ```json {  "resultCodes":    {      "returnCodeEnum": "RET_SUCCESS",      "statusCodeEnum": "STAT_SUCCESS",      "returnCode": 0,      "statusCode": 0    },  "result":    {      "serverEphemeralPublicKey": "661CF5095BA2C5C0679B7BCEB516BADE...",      "salt": "8F1958E25B9749FDBC28362CEED92C01"    } } ```