WhatsApp Business API
  1. Registration
WhatsApp Business API
  • 默认分类
    • Delete-Profile-Photo
      DELETE
  • Registration
    • Request-Code
      POST
    • Register-Account
      POST
  • Application
    • Set-Shards
      POST
    • Reset-Application-Settings
      DELETE
    • Get-Application-Settings
      GET
    • Update-Application-Settings
      PATCH
    • Get-Media-Providers
      GET
    • Update-Media-Providers
      POST
    • Delete-Media-Providers
      DELETE
  • Certificates
    • Upload-Certificate
      POST
    • Download-CA-Certificate
      GET
    • Delete Webhook CA Certificate
      DELETE
    • Download Webhook CA Certificate
      GET
    • Upload Webhook CA Certificate
      POST
  • Contacts
    • Check-Contact
      POST
  • Groups
    • Get-All-Groups
      GET
    • Create-Group
      POST
    • Get-Group-Info
      GET
    • Update-Group-Info
      PUT
    • Demote-Group-Admin
      DELETE
    • Promote-To-Group-Admin
      PATCH
    • Delete-Group-Icon
      DELETE
    • Get-Group-Icon-Binary
      GET
    • Set-Group-Icon
      POST
    • Delete-Group-Invite
      DELETE
    • Get-Group-Invite
      GET
    • Leave-Group
      POST
    • Remove-Group-Participant
      DELETE
  • Health
    • Check-Health
    • Get-Metrics (since v2.21.3)
    • Get-App-Stats
    • Get-DB-Stats
    • Get-Support-Info
  • Media
    • Upload-Media
    • Delete-Media
    • Download-Media
  • Messages
    • Send-Message
    • Mark-Message-As-Read
  • Two-Step Verification
    • Disable-Two-Step
    • Enable-Two-Step
  • Backup/Restore
    • Backup-Settings
    • Restore-Settings
  • Business Profile
    • Get-Business-Profile
    • Update-Business-Profile
  • Backup
    • Restore
  • Profile
    • Get-Profile-About
    • Update-Profile-About
    • Get-Profile-Photo
    • Update-Profile-Photo
  • Users
    • Create-User
    • Login-User
    • Logout-User
    • Delete-User
    • Get-User
    • Update-User
  1. Registration

Request-Code

POST
/account
Registration
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location -g --request POST 'http:///account' \
--header 'Content-Type: application/json' \
--data-raw '{
    "cc": "<Country Code>",
    "cert": "<Valid Cert from Business Manager>",
    "method": "sms",
    "phone_number": "<Phone Number>",
    "pin": "<Two-Step Verification PIN"
}'
响应示例响应示例
201 - 示例 1
{}

请求参数

Body 参数application/json
cc
string 
必需
Numerical country code for the phone number you are registering
cert
string 
必需
Base64-encoded Verified Name certificate
method
enum<string> 
必需
Method of receiving your registration code
枚举值:
smsvoice
phone_number
string 
必需
Phone number you are registering, without the country code or plus symbol (+)
pin
string 
可选
Existing 6-digit PIN — This is only required when two-factor verification is enabled on this account.
示例

返回响应

🟢201成功
application/json
Created: the account already exists. You are already registered, so you do not need to do anything else.
Body
object {0}
🟢202成功
上一页
Delete-Profile-Photo
下一页
Register-Account
Built with