WhatsApp Business API
  1. Contacts
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. Contacts

Check-Contact

POST
/contacts
Contacts
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location -g --request POST 'http:///contacts' \
--header 'Content-Type: application/json' \
--data-raw '{
    "blocking": "wait",
    "contacts": [
        "{{Recipient-WA-ID}}"
    ]
}'
响应示例响应示例
{
  "contacts": [
    {
      "input": "+1 (516) 283-7151",
      "status": "valid",
      "wa_id": "15162837151"
    },
    {
      "input": "6315551003",
      "status": "processing"
    },
    {
      "input": "+54 9 11 5612-1008",
      "status": "processing"
    },
    {
      "input": "+1 (516) 283-7151",
      "status": "valid",
      "wa_id": "15162837151"
    }
  ],
  "errors": [
    {
      "code": 1234,
      "details": "optional-detailed-error-message",
      "title": "error-code-title"
    }
  ],
  "meta": {
    "api_status": "deprecated",
    "version": "whatsapp-business-api-client-version"
  }
}

请求参数

Body 参数application/json
blocking
enum<string> 
可选
Blocking determines whether the request should wait for the processing to complete (synchronous) or not (asynchronous).
枚举值:
no_waitwait
默认值:
no_wait
contacts
array[string]
必需
Array of contact phone numbers. The numbers can be in any standard telephone number format.
示例

返回响应

🟢200成功
application/json
Body
errors
array[object (Error) {4}] 
可选
Only returned with a failed request. Contains an array of error objects that are present when there is an error.
code
integer <int32>
可选
See the https://developers.facebook.com/docs/whatsapp/api/errors for more information.
details
string 
可选
error detail
href
string 
可选
location for error detail
title
string 
可选
error title
meta
object 
Meta
可选
Contains generic information such as WhatsApp Business API Client version.
示例值:
{"api_status":"stable","version":"whatsapp-business-api-client-version"}
api_status
enum<string> 
可选
枚举值:
deprecatedexperimentalstable
version
string 
可选
contacts
array[object (Check-Contact) {3}] 
可选
input
string 
可选
The value you sent in the contacts field of the JSON request.
status
enum<string> 
可选
Status of the user.
枚举值:
processingvalidinvalid
wa_id
string 
可选
WhatsApp user identifier that can be used in other API calls. Only returned if the status is valid.
上一页
Upload Webhook CA Certificate
下一页
Get-All-Groups
Built with