# Create Authentication Zero Tap Template

**POST** `/{wabaid}/message_templates`

Product: [WhatsApp](https://devdocs.pinnacle.in/docs/whatsapp.md)  
Version: [3.0](https://devdocs.pinnacle.in/docs/whatsapp/3-0.md)

This API is used to create a zero tap authentication template.

## Request

URL: `https://partnersv1.pinbot.ai/v3/{wabaid}/message_templates`

Authentication location: `header`

Authentication name: `apikey`

### Request schema


```json
{
  "type": "object",
  "properties": {
    "name": {
      "type": "string"
    },
    "category": {
      "type": "string"
    },
    "language": {
      "type": "string"
    },
    "components": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string"
          },
          "add_security_recommendation": {
            "type": "boolean"
          }
        }
      }
    },
    "message_send_ttl_seconds": {
      "type": "integer"
    }
  }
}
```

### Request example


```json
{
  "name": "zero_tap_ttt_vk_fff",
  "category": "authentication",
  "language": "en_US",
  "components": [
    {
      "type": "body",
      "add_security_recommendation": true
    },
    {
      "type": "footer",
      "code_expiration_minutes": 5
    },
    {
      "type": "buttons",
      "buttons": [
        {
          "text": "copy code",
          "type": "otp",
          "otp_type": "zero_tap",
          "autofill_text": "autofill button",
          "supported_apps": [
            {
              "package_name": "com.example.luckyshrub",
              "signature_hash": "K8a/2FAINcG"
            }
          ],
          "zero_tap_terms_accepted": true
        }
      ]
    }
  ],
  "message_send_ttl_seconds": 60
}
```

## Response schema


```json
{
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "status": {
      "type": "string"
    },
    "category": {
      "type": "string"
    }
  }
}
```

## Response examples


```json
{
  "200": {
    "id": "123412341234123",
    "status": "APPROVED",
    "category": "AUTHENTICATION"
  }
}
```

## Status codes


```json
[
  {
    "code": 200,
    "description": "The request was successful."
  },
  {
    "code": 400,
    "description": "Bad request or invalid parameters."
  },
  {
    "code": 401,
    "description": "API key is missing or invalid."
  },
  {
    "code": 403,
    "description": "The request is not authorized for this resource."
  },
  {
    "code": 404,
    "description": "The requested resource was not found."
  },
  {
    "code": 500,
    "description": "The server encountered an error."
  }
]
```
