Create a verification service
post/verify/services
Create a verification service. Defaults are safe: text, call and email, six digits, ten minutes, five tries, rate limits per destination and network address, premium-rate numbers refused.
Before you call
- Credential
Authorization: Bearer $KEY- Scope
voice:write- Graphql
Mutation.voiceVerifyServiceCreate- Sdk
verify.services.create- Cli
verify service-create
Request bodyapplication/json, required
- namestringrequiredShown to the person in the message: Your verification code At most 30 characters.
- enabledboolean
- codeLengthintegerAt least 4. At most 10.
- channelslist of string
- channelOrderlist of stringThe order channel auto tries, and a fallback follows
- autoFallbackbooleanWhen a send fails or is not delivered, try the next channel by itself
- codeTtlSecondsintegerAt least 60. At most 600.
- maxSendsintegerAt least 1. At most 5.
- maxChecksintegerAt least 1. At most 5.
- resendCooldownSecondsintegerAt least 0. At most 600.
- defaultCountrystring or null
- defaultLocalestringAt most 10 characters.
- customCodeEnabledboolean
- psd2Enabledboolean
- dtmfInputRequiredboolean
- ttsNamestring or null
- doNotShareWarningboolean
- lookupFirstbooleanLook the number up before sending: landlines get a call instead of a text and blocked line types are refused
- skipSmsToLandlinesboolean
- rateLimitslist of object
- keystringrequiredWhat the limit counts by: the destination, the caller's network address, a user id, a device id, or the whole service One of: to, ip, user, device, service.
- maxintegerrequiredAt least 1. At most 10000.
- intervalSecondsintegerrequiredAt least 10. At most 86400.
- keystringrequired
- fraudobject
- allowCountrieslist of stringOnly these countries may receive a code; empty allows all
- denyCountrieslist of string
- blockPremiumboolean
- blockLineTypeslist of stringLine types from a lookup to refuse, for example voip or nonFixedVoip
- distinctPerIpobject or null
- sequentialGuardboolean
- conversionGuardobject or null
- allowCountrieslist of string
- emailobject
- fromstring (email) or null
- fromNamestring or null
- transportstringOne of: auto, resend, furcate-mail, own-mta.
Responses
- 201application/jsonSuccess
- 400application/jsonThe request was malformed
- errorstringrequired
- messagestring
- 401application/jsonNo valid credential
- errorstringrequired
- messagestring
- 403application/jsonThe credential lacks the scope, origin or address
- errorstringrequired
- messagestring
- 429application/jsonOver the key's rate limit; see Retry-After
- errorstringrequired
- messagestring