Create Push Notification settings
Creates new Push Notification settings for second factor authentication.
Creates new Push Notification settings for second factor authentication.
Authorization
M2MBearerToken AuthorizationBearer <token>
M2M Token for authentication
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
curl -X POST "https://api.loginradius.com/v2/manage/2fa/push-notification-settings" \ -H "Content-Type: application/json" \ -d '{ "IsEnabled": true, "NotificationService": "AWS", "CustomAppName": "MyCustomApp", "QRCodeWidth": 200, "Message": "Please approve the login request", "AWSsettings": { "AccessKeyId": "your-access-key-id", "SecretAccessKey": "your-secret-access-key", "Region": "us-west-2" }, "AndroidSettings": { "Enabled": true, "PlatformARN": "arn:aws:sns:us-west-2:123456789012:app/GCM/MyAndroidApp", "PlaystoreUrl": "https://play.google.com/store/apps/details?id=com.example.myapp", "ServiceJson": "{\\"project_id\\":\\"my-project-id\\",\\"api_key\\":\\"my-api-key\\"}" }, "IOSsettings": { "Enabled": true, "AppstoreUrl": "https://apps.apple.com/us/app/myapp/id1234567890", "PlatformARN": "arn:aws:sns:us-west-2:123456789012:app/APNS/MyiOSApp", "BundleId": "com.example.myapp", "ApnsCertificate": "base64-encoded-cert", "Environment": "Production" } }'{
"IsEnabled": true,
"NotificationService": "AWS",
"CustomAppName": "MyCustomApp",
"QRCodeWidth": 200,
"Message": "Please approve the login request",
"AWSsettings": {
"AccessKeyId": "your-access-key-id",
"SecretAccessKey": "your-secret-access-key",
"Region": "us-west-2"
},
"AndroidSettings": {
"Enabled": true,
"PlatformARN": "arn:aws:sns:us-west-2:123456789012:app/GCM/MyAndroidApp",
"PlaystoreUrl": "https://play.google.com/store/apps/details?id=com.example.myapp",
"ServiceJson": "{\"project_id\":\"my-project-id\",\"api_key\":\"my-api-key\"}"
},
"IOSsettings": {
"Enabled": true,
"AppstoreUrl": "https://apps.apple.com/us/app/myapp/id1234567890",
"PlatformARN": "arn:aws:sns:us-west-2:123456789012:app/APNS/MyiOSApp",
"BundleId": "com.example.myapp",
"ApnsCertificate": "base64-encoded-cert",
"Environment": "Production"
}
}{
"Message": "A parameter is not formatted correctly.",
"Description": "The parameter is not formatted correctly, please check all the parameters in the API call",
"ErrorCode": 7900
}{
"Message": "Access Unauthorized",
"Description": "Access Unauthorized, please use valid authorization to access this endpoint.",
"ErrorCode": 6002
}{
"Message": "Operation failed due to an internal error.",
"Description": "An unknown internal error occurred, please try again in a few minutes or contact your system administrator.",
"ErrorCode": 7909
}