# Sign-up verification code WhatsApp template

> Authentication template for verifying a phone number at SaaS signup with a one-time passcode on WhatsApp. Copy-code button.

- Category: Authentication
- Industry: SaaS and software
- Use case: Verification code
- Language: en_US
- Approval rate: 76%
- Page: https://template-builder.dev/whatsapp-template/saas-signup-verification-code
- JSON: https://template-builder.dev/whatsapp-template/saas-signup-verification-code.json
- Open in the playground: https://template-builder.dev/playground#t=eyJuYW1lIjoic2Fhc19zaWdudXBfdmVyaWZpY2F0aW9uX2NvZGUiLCJsYW5ndWFnZSI6ImVuX1VTIiwiY2F0ZWdvcnkiOiJBVVRIRU5USUNBVElPTiIsImJvZHkiOnsiYWRkU2VjdXJpdHlSZWNvbW1lbmRhdGlvbiI6dHJ1ZX0sImZvb3RlciI6eyJjb2RlRXhwaXJhdGlvbk1pbnV0ZXMiOjEwfSwiYnV0dG9uIjp7InR5cGUiOiJPVFAiLCJvdHBUeXBlIjoiQ09QWV9DT0RFIn19

## How to get it approved

Rate-limit code requests to prevent abuse, and avoid sending marketing content in the same thread right after.

## Message text

One-time verification code with a copy button.

## Template JSON

```json
{
  "name": "saas_signup_verification_code",
  "language": "en_US",
  "category": "AUTHENTICATION",
  "body": {
    "addSecurityRecommendation": true
  },
  "footer": {
    "codeExpirationMinutes": 10
  },
  "button": {
    "type": "OTP",
    "otpType": "COPY_CODE"
  }
}
```

## Create it with the Meta Cloud API

```sh
curl -X POST "https://graph.facebook.com/v26.0/$WABA_ID/message_templates" \
  -H "Authorization: Bearer $META_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "name": "saas_signup_verification_code",
  "language": "en_US",
  "category": "AUTHENTICATION",
  "components": [
    {
      "type": "BODY",
      "add_security_recommendation": true
    },
    {
      "type": "FOOTER",
      "code_expiration_minutes": 10
    },
    {
      "type": "BUTTONS",
      "buttons": [
        {
          "type": "OTP",
          "otp_type": "COPY_CODE"
        }
      ]
    }
  ]
}'
```
