Skip to contentSkip to navigationSkip to topbar
Rate this page:
On this page

Silent Network Auth Retrieve EVURL Result API Endpoint


POST https://api-sbox.dnlsrv.com/cigateway/id/v1/phoneIdResult

API that allows a customer to obtain the result of Silent Network Auth. Note that the result of Silent Network Auth is available for one hour from the time the URL was used to start the Silent Network Auth process.

When testing this flow, you have to first execute the Create An EVURL API request. Copy the EVURL in the results and paste it into your browser's URL field and press enter. Once the EVURL is invoked, you should be able to get a successful call on Retrieve EVURL Result.

If the Silent Network Auth process on the device is not complete when calling Retrieve EVURL Result, the API results will indicate this in the error object with the code 5016. In this case, the Retrieve EVURL Result endpoint call should be retried.


Body params

body-params page anchor
Param NameTypeDescription
merchantIdstringRequired. Your merchant ID that will be provided to you during onboarding.
subMerchantIdstringOptional. Used by resellers, an ID that is assigned to the end customer.
correlationIdstringRequired. A nonce used by the customer that is unique to this transaction.
associationKeystringRequired. A unique ID used at the start of the Silent Network Auth process for this user session.
matchobjectOptional. JSON object that provides the parameters to be matched.Object must contain key value consumerMdn which is defined as the MSISDN of the user that you want to check, number must be provided in E.164 format. Example:"match": { "consumerMdn": "+14085040458" }

Header NameTypeDescription
AuthorizationstringRequired. The security key to use for Twilio APIs.NOTE: This may be different than your Twilio Account Auth Token - please confirm with your Sales Specialist.
Content-TypestringRequired. Media type sent in the request. Only application/json is supported.
AcceptstringRequired. Media type for the response. Only application/json is supported.
RequestTimedate-timeRequired. Current date time when request is sent.

Successful response and authentication

successful-response-and-authentication page anchor

A results JSON object will be returned with the following values. phoneIdResult will indicate whether the phone number matches or not.

Value NameTypeDescription
correlationIdstringA nonce used by the customer that is unique to this transaction. This value is echoed back from the request, if it was provided.
referenceIdstringTwilio's unique transaction identifier.
phoneIdResultobjectObject that encapsulates the results of the Silent Network Auth verification. Contains key values associationKey and matchScores.associationKey: String that is either the correlationId included in the EVURL payload or if using phoneIdUrl, the correlationId in the request, during the authentication process. The value from the request is echoed back.matchScores: JSON object that indicates the match result of the input match parameters to those detected by Twilio during the authentication process. Object contains key value mdnMatchScore.mdnMatchScore: String that indicates whether the customer provided MDN and Twilio detected MDN match or not. This field will be returned only if consumerMdn is provided in the request in the match object. 10 = Match, 0 = Does Not Match.

Sample response


_15
HTTP/1.1 200 OK
_15
Content-Type: application/json
_15
_15
{
_15
"results": {
_15
"correlationId": "ABC0881973286793",
_15
"referenceId": "20210203234640M163C264030",
_15
"phoneIdResult": {
_15
"associationKey": "XYZ78907qwer97873",
_15
"matchScores": {
_15
"mdnMatchScore": "10"
_15
}
_15
}
_15
}
_15
}

Successful response and failed authentication

successful-response-and-failed-authentication page anchor

A results JSON object will be returned with the following values. code and description provide more details on the failure and if the customer should fail over to another authentication method.

Value NameTypeDescription
phoneIdResultobjectObject that encapsulates the results of the Silent Network Auth verification. Contains key values code, description, and associationKey.code: Indicates the reason the authentication failed. Refer to Error Codes and Descriptions for a complete list.description: Additional information regarding the error condition. Sent only if error code is included in the response.associationKey: String that is either the correlationId included in the EVURL payload or if using phoneIdUrl, the correlationId in the request, during the authentication process. The value from the request is echoed back.
correlationIdstringA nonce used by the customer that is unique to this transaction. This value is echoed back from the request, if it was provided.
referenceIdstringTwilio's unique transaction identifier.

Sample response


_14
HTTP/1.1 200 OK
_14
Content-Type: application/json
_14
_14
{
_14
"results": {
_14
"correlationId": "ABC0881973286793",
_14
"referenceId": "20210203234640M163C264030",
_14
"phoneIdResult": {
_14
"code": "-30 ",
_14
"description": "Unsupported Carrier",
_14
"associationKey": "XYZ78907qwer97873"
_14
}
_14
}
_14
}

An error JSON object will be returned with the following values. code and description provide more details on the failure.

Value NameTypeDescription
codestringIndicates the reason the API call failed. Refer to Error Codes and Descriptions for a complete list.
descriptionstringAdditional information regarding the error condition. Sent only if error code is included in the response.
correlationIdstringA nonce used by the customer that is unique to this transaction. This value is echoed back from the request, if it was provided.
referenceIdstringTwilio's unique transaction identifier.

Sample response


_11
HTTP/1.1 400 Bad Request
_11
Content-Type: application/json
_11
_11
{
_11
"error": {
_11
"correlationId":"ABC0881973286793",
_11
"referenceId":"20210203234640M163C264030",
_11
"code":"-5003",
_11
"description":"Required parameter missing"
_11
}
_11
}

HTTP Status CodeDescription
200Successful invocation, but the response will depend on the success of the Silent Network Auth process.
400Malformed request submitted.
500Internal system error.

Retrieve EVURL Result Example

retrieve-evurl-result-example page anchor

Successful authentication and response

Node.js
Python
C#
Java
PHP
Ruby
curl

_18
// Installation
_18
// npm install api --save
_18
_18
// Request
_18
const sdk = require('api')('@boku/v4.4.1#1b5wc11kl6dx748s');
_18
_18
sdk.postV1Phoneidresult({
_18
merchantId: '02200013919FB4',
_18
subMerchantId: '00DF00000016',
_18
correlationId: '984681AFDB698C67',
_18
associationKey: '244464DFCB537E56',
_18
match: {consumerMdn: '+14085040458'}
_18
}, {
_18
authorization: 'y5jBqXWLzEF4OgK61EbJ4jbEesmxE5No',
_18
requesttime: '2022-08-01T09:33:43+00:00'
_18
})
_18
.then(({ data }) => console.log(data))
_18
.catch(err => console.error(err));

Output

_12
{
_12
"results": {
_12
"correlationId": "984681AFDB698C67",
_12
"referenceId": "6496849684CBAF87A9",
_12
"phoneIdResult": {
_12
"associationKey": "9572041AFDB69VN45",
_12
"matchScores": {
_12
"mdnMatchScore": "10"
_12
}
_12
}
_12
}
_12
}


Rate this page: