Download OpenAPI specification:Download
Protect your organisation and users against fraudulent login attempts and potential catastrophic effects on your business. CM.com offers a unique Hybrid Two-factor, One Time Password solution that can be delivered via our high quality SMS routes, to your app via Push or via a Voice call.
How to start
Generate code
| recipient required | string Phone number in international format without +. |
| sender required | string The name or phone number of the sender. Please note that alphanumeric sender is not supported in all countries. If |
| length | integer [ 4 .. 10 ] Default: 5 The length of the code. |
| expiry | integer [ 10 .. 3600 ] Default: 60 The expiry in seconds. |
| allowVoice | boolean Send the code via a voice call. |
| voiceLanguage | string Default: "en" Enum: "de" "en" "es" "fr" "it" "nl" Change the language of the voice call. |
| allowPush | boolean Default: false Allow code to be send via push notification. When allowPush is set to |
| appKey | string <uuid> The app key GUID. |
| message | string Set a custom message. You can use the placeholder {code} which will be replaced by the actual code. e.g. Your code is: {code}." |
{- "recipient": "0031601234567",
- "sender": "My company"
}{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "createdAt": "2019-08-24T14:15:22Z",
- "expireAt": "2019-08-24T14:15:22Z"
}Verify code
| id | string <uuid> The unique identifier for the code. |
| code | string The code received via SMS/Push or Voice. |
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "code": "12345"
}{- "valid": true
}