Pingtochat Docs

Pingtochat Docs

Did You Know?

You can create any type of product documentation with Docy

leafleafleafDocy banner shape 01Docy banner shape 02Man illustrationFlower illustration

Zero-Tap to Auto-Fill

Estimated reading: 2 minutes 56 views

Endpoint

http://{{your_domain}}/api/v1.0/{{phone_number_id}}/{{key}}/message_templates
  • {{your_domain}}: Your domain URL where the API is hosted.
  • {{phone_number_id}}: The unique identifier of the phone number used for sending messages.
  • {{key}}: Your API key for authentication.How to create key

Request Headers

  • Authorization: Bearer token for authentication.
  • Content-Type: Should be set to application/json.

Request Body

{
  "name": "zero_tap_chat",
  "language": "en_US",
  "category": "authentication",
  "message_send_ttl_seconds": 60,
  "components": [
    {
      "type": "body",
      "add_security_recommendation": true
    },
    {
      "type": "footer",
      "code_expiration_minutes": 5
    },
    {
      "type": "buttons",
      "buttons": [
        {
          "type": "otp",
          "otp_type": "zero_tap",
          "text": "Copy Code",
          "autofill_text": "Autofill",
          "zero_tap_terms_accepted": true,
          "supported_apps": [
            { 
              "package_name": "app.pingtochat.com",
              "signature_hash": "K8a/AINcGX7"
            }
          ]
        }
      ]
    }
  ]
}

Components

Body

  • Type: BODY
  • Security Recommendation: true

Footer

  • Type: FOOTER
  • Code Expiration: 5 minutes

Buttons

  • Type: BUTTONS
  • Buttons:
    • Type: otp
    • OTP Type: zero_tap
    • Text: Copy Code
    • Autofill Text: Autofill
    • Zero Tap Terms Accepted: true
    • Supported Apps:
      • Package Name: app.pingtochat.com
      • Signature Hash: K8a/AINcGX7

Success Response

  • Status Code: 201 APPROVED
{
    "id": "xxxxxx",
    "status": "APPROVED",
    "category": "AUTHENTICATION"
}

Edit an Existing Template

Endpoint

http://{{your_domain}}/api/v1.0/{{phone_number_id}}/{{key}}/{{template_id}}/template_update

Request Body

{
    "components": [
        {
            "type": "body",
            "add_security_recommendation": true
        },
        {
            "type": "footer",
            "code_expiration_minutes": 10
        },
        {
            "type": "buttons",
            "buttons": [
                {
                    "type": "otp",
                    "otp_type": "one_tap",
                    "text": "Copy Code",
                    "autofill_text": "Autofill",
                    "package_name": "com.example.luckyshrub",
                    "signature_hash": "K8a/AINcGX7"
                }
            ]
        }
    ]
}

Components

Body

  • Type: BODY
  • Security Recommendation: true

Footer

  • Type: FOOTER
  • Code Expiration: 10 minutes

Buttons

  • Type: BUTTONS
  • Buttons:
    • Type: otp
    • OTP Type: one_tap
    • Text: Copy Code
    • Autofill Text: Autofill
    • Package Name: com.example.luckyshrub
    • Signature Hash: K8a/AINcGX7

Success Response

{
    "success": true,
    "id": "xxxxxx",
    "name": "edit_s",
    "category": "AUTHENTICATION"
}

Notes

  • The {{your_domain}} should be replaced with the actual domain.
  • The {{phone_number_id}}, {{key}}, and {{template_id}} should be replaced with actual values.
  • Ensure that the request body is formatted correctly as JSON.
  • Only authorized users with a valid key can create or update templates.
  • Categories may be restricted based on platform policies.

Leave a Comment

Share this Doc

Zero-Tap to Auto-Fill

Or copy link

CONTENTS