');background-size:contain;background-position:top;background-repeat:no-repeat}.cm-footer .cm-footer_content .logo{height:40px;margin-left:310px}.cm-footer .cm-footer_content .logo svg{display:block;width:100%;height:100%}.cm-footer .cm-footer_content .links{display:flex;justify-content:center;margin:24px 12px}.cm-footer .cm-footer_content .links ul{list-style:none;display:flex;flex-wrap:wrap;margin:0;padding:0}.cm-footer .cm-footer_content .links ul li{border-left:1px solid rgba(255,255,255,.1)}.cm-footer .cm-footer_content .links ul li:first-child{border:none}.cm-footer .cm-footer_content .links a{color:#fff;padding:8px 10px;font-size:14px;line-height:1rem}.cm-footer .cm-footer_content .select{display:grid;grid-template-areas:"select";align-items:center;width:100%;min-width:15ch;max-width:30ch;border:none;border-radius:16px;padding:8px 10px 8px 13px;font-size:14px;cursor:pointer;line-height:1rem;background-color:#344055;color:#fff}.cm-footer .cm-footer_content .select select{appearance:none;background-color:transparent;color:#fff;border:none;padding:0 1em 0 0;margin:0;width:100%;font-family:inherit;font-size:inherit;cursor:inherit;line-height:inherit;outline:0;grid-area:select;z-index:1}.cm-footer .cm-footer_content .select::after{grid-area:select;justify-self:end;border-left:1px solid rgba(255,255,255,.1);padding-left:8px;content:"\e9dc";font-family:readme-icons!important;speak:never;font-style:normal;font-weight:400;font-variant:normal;text-transform:none;line-height:1;letter-spacing:0;-webkit-font-feature-settings:"liga";-ms-font-feature-settings:"liga" 1;font-feature-settings:"liga";-webkit-font-variant-ligatures:discretionary-ligatures;font-variant-ligatures:discretionary-ligatures;-webkit-font-smoothing:antialiased}.cm-footer .cm-footer_content .select select option{background-color:#344055}#enterprise #main .col-sm-5{display:none}#enterprise #main .projects{flex-basis:100%;max-width:100%}#enterprise #main .projects .col-sm-6{-ms-flex-preferred-size:100%;flex-basis:100%;max-width:100%;padding-left:1rem;padding-right:1rem;padding-bottom:2rem}@media only screen and (min-width:48em){#enterprise #main .projects .col-sm-6{-ms-flex-preferred-size:33.33333333%;flex-basis:33.33333333%;max-width:33.33333333%}}#enterprise .project{display:flex;flex-wrap:wrap;align-items:flex-start;justify-content:center;height:100%;padding:0 0 2rem;text-align:center;border-radius:12px;background-color:#fff;box-shadow:0 0 5px 0 rgba(16,30,30,.1),0 2px 7px 0 rgba(16,30,30,.15),0 4px 4px -2px rgba(16,30,30,.1)}#enterprise .project h4{color:var(--blue-120);font-size:1.5rem}#enterprise .project .image{height:auto!important}#enterprise .project .image img{height:85px}#enterprise .project .image a{display:flex;justify-content:center;padding:30px 0 14px}@media (max-width:1024px){#AppSearch{max-width:none}.cm-footer{min-height:250px}.cm-footer .cm-footer_content .logo{margin:0}.cm-footer .cm-footer_content .morse{left:-50px}.cm-footer .cm-footer_content .morse::before{z-index:-1}.cm-footer .cm-footer_content{justify-content:flex-end;padding-left:10px;padding-right:10px}.cm-footer .cm-footer_content .links{width:100%;margin:30px 0}}@media (max-width:768px){.row{margin-left:0!important;margin-right:0!important}#header-top{position:relative!important}#hub-subheader-parent{position:absolute!important}#hub-subheader .hub-subheader-breadcrumbs::before{content:''}.rm-Header::after,header#hub-header::after{max-width:90%;right:10px;bottom:-20px;z-index:-1}#hub-search .searchbox-button,.rm-SearchToggle{width:40px!important;height:40px!important;border-radius:100%!important;border:none!important;padding:0 10px!important;font-size:20px!important}.rm-SearchToggle-icon{font-size:20px!important}#hub-subheader-parent{top:20px!important;right:20px!important}}.rm-TryIt{display:none!important}.rm-ParamContainer .rm-ParamInput{display:none}.rm-ParamContainer .rm-ParamSelect{display:none}[class^=APIResponse-empty] div:first-child{display:none}.rm-ReferenceMain .Reference-section{display:none!important}
Request
The URL has changed from https://api.cm.com/v1.0/otp/generate
to https://api.cm.com/otp/v2/otp
.
recipient
has been renamed to to
and now requires a phone number in E.164 format or a valid email address when channel is set to email
.
sender
has been renamed to from
and now requires a phone number in E.164 format when channel is voice. For channel sms
and push
it also accepts also an alphanumeric string between 3 and 11 characters.
length
has been renamed to digits
.
allowPush
is no longer used and is replaced by channel push
appKey
has been renamed to pushAppKey
and is only used and required when channel is set to push
.
allowVoice
is no longer used and is replaced by channel voice
voiceLanguage
has been renamed to locale
and now requires a locale code instead of a language code.
Response
expireAt
has been renamed to expiresAt
Request
The URL has changed from https://api.cm.com/v1.0/otp/verify
to https://api.cm.com/otp/v2/otp/{id}/verify
, where {id} is the placeholder for the code identifier.
The OTP id is now provided in the URL instead of the request body.
When the OTP cannot be found a 404 error is returned.
When the OTP is expired, already verified or has too many verification attempts a 400 error is returned.
Response
valid
has been renamed to verified
.
id
, channel
, createdAt
and exiresAt
are also returned