# Create a new Verification using a Service **POST /v2/Services/{ServiceSid}/Verifications** Create a new Verification using a Service ## Servers - https://verify.twilio.com: https://verify.twilio.com () ## Authentication methods - Account sid auth token ## Parameters ### Path parameters - **ServiceSid** (string) The SID of the verification [Service](https://www.twilio.com/docs/verify/api/service) to create the resource under. ### Body: application/x-www-form-urlencoded (object) - **To** (string) The phone number or [email](https://www.twilio.com/docs/verify/email) to verify. Phone numbers must be in [E.164 format](https://www.twilio.com/docs/glossary/what-e164). - **Channel** (string) The verification method to use. One of: [`email`](https://www.twilio.com/docs/verify/email), `sms`, `whatsapp`, `call`, `sna` or `auto`. - **CustomFriendlyName** (string) A custom user defined friendly name that overwrites the existing one in the verification message - **CustomMessage** (string) The text of a custom message to use for the verification. - **SendDigits** (string) The digits to send after a phone call is answered, for example, to dial an extension. For more information, see the Programmable Voice documentation of [sendDigits](https://www.twilio.com/docs/voice/twiml/number#attributes-sendDigits). - **Locale** (string) Locale will automatically resolve based on phone number country code for SMS, WhatsApp, and call channel verifications. It will fallback to English or the template’s default translation if the selected translation is not available. This parameter will override the automatic locale resolution. [See supported languages and more information here](https://www.twilio.com/docs/verify/supported-languages). - **CustomCode** (string) A pre-generated code to use for verification. The code can be between 4 and 10 characters, inclusive. - **Amount** (string) The amount of the associated PSD2 compliant transaction. Requires the PSD2 Service flag enabled. - **Payee** (string) The payee of the associated PSD2 compliant transaction. Requires the PSD2 Service flag enabled. - **RateLimits** () The custom key-value pairs of Programmable Rate Limits. Keys correspond to `unique_name` fields defined when [creating your Rate Limit](https://www.twilio.com/docs/verify/api/service-rate-limits). Associated value pairs represent values in the request that you are rate limiting on. You may include multiple Rate Limit values in each request. - **ChannelConfiguration** () [`email`](https://www.twilio.com/docs/verify/email) channel configuration in json format. The fields 'from' and 'from_name' are optional but if included the 'from' field must have a valid email address. - **AppHash** (string) Your [App Hash](https://developers.google.com/identity/sms-retriever/verify#computing_your_apps_hash_string) to be appended at the end of your verification SMS body. Applies only to SMS. Example SMS body: `<#> Your AppName verification code is: 1234 He42w354ol9`. - **TemplateSid** (string) The message [template](https://www.twilio.com/docs/verify/api/templates). If provided, will override the default template for the Service. SMS and Voice channels only. - **TemplateCustomSubstitutions** (string) A stringified JSON object in which the keys are the template's special variables and the values are the variables substitutions. - **DeviceIp** (string) Strongly encouraged if using the auto channel. The IP address of the client's device. If provided, it has to be a valid IPv4 or IPv6 address. - **EnableSnaClientToken** (boolean) An optional Boolean value to indicate the requirement of sna client token in the SNA URL invocation response for added security. This token must match in the Verification Check request to confirm phone number verification. - **RiskCheck** (string) - **Tags** (string) A string containing a JSON map of key value pairs of tags to be recorded as metadata for the message. The object may contain up to 10 tags. Keys and values can each be up to 128 characters in length. ## Responses ### 201 Created #### Headers - **Retry-After** (string) - **Twilio-Reached-Rate-Limit** (string) - **Access-Control-Allow-Origin** (string) Specify the origin(s) allowed to access the resource - **Access-Control-Allow-Methods** (string) Specify the HTTP methods allowed when accessing the resource - **Access-Control-Allow-Headers** (string) Specify the headers allowed when accessing the resource - **Access-Control-Allow-Credentials** (boolean) Indicates whether the browser should include credentials - **Access-Control-Expose-Headers** (string) Headers exposed to the client #### Body: application/json (object) - **sid** (string | null) The unique string that we created to identify the Verification resource. - **service_sid** (string | null) The SID of the [Service](https://www.twilio.com/docs/verify/api/service) the resource is associated with. - **account_sid** (string | null) The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Verification resource. - **to** (string | null) The phone number or [email](https://www.twilio.com/docs/verify/email) being verified. Phone numbers must be in [E.164 format](https://www.twilio.com/docs/glossary/what-e164). - **channel** (string) The verification method used. One of: [`email`](https://www.twilio.com/docs/verify/email), `sms`, `whatsapp`, `call`, `sna`, or `rcs`. - **status** (string | null) The status of the verification. Can be: `pending`, `approved`, `canceled`, `max_attempts_reached`, `deleted`, `failed` or `expired`. - **valid** (boolean | null) Use "status" instead. Legacy property indicating whether the verification was successful. - **lookup** () Information about the phone number being verified. - **amount** (string | null) The amount of the associated PSD2 compliant transaction. Requires the PSD2 Service flag enabled. - **payee** (string | null) The payee of the associated PSD2 compliant transaction. Requires the PSD2 Service flag enabled. - **send_code_attempts** (array | null) An array of verification attempt objects containing the channel attempted and the channel-specific transaction SID. - **date_created** (string(date-time) | null) The date and time in GMT when the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. - **date_updated** (string(date-time) | null) The date and time in GMT when the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. - **sna** () The set of fields used for a silent network auth (`sna`) verification. Contains a single field with the URL to be invoked to verify the phone number. - **url** (string(uri) | null) The absolute URL of the Verification resource. [Powered by Bump.sh](https://bump.sh)