SmsPort Docs / WhatsApp

API / Senders

Update Sender

Refresh sender metadata from Meta and update connection status in SmsPort.

All IDs, phone numbers, and names below are sample placeholders for documentation only.

Endpoint

http
POST /api/whatsapp/sync

Base URL

http
https://api.smsport.in/api

Copy cURL

bash
curl -X POST "https://api.smsport.in/api/whatsapp/sync" \
  -H "Authorization: Bearer <ACCESS_TOKEN>" \
  -H "Content-Type: application/json" \
  -d '{
    "businessAccountId": "<BUSINESS_ACCOUNT_ID>"
  }'

Request Body

json
{
  "businessAccountId": "<BUSINESS_ACCOUNT_ID>"
}

Response (200)

json
{
  "syncRun": {
    "id": "<SYNC_RUN_ID>",
    "scope": "account-sync",
    "status": "completed",
    "startedAt": "2026-05-16T08:19:20.000Z",
    "completedAt": "2026-05-16T08:19:24.000Z"
  },
  "businessAccounts": [
    {
      "id": "<BUSINESS_ACCOUNT_ID>",
      "displayName": "<BUSINESS_ACCOUNT_NAME>"
    }
  ],
  "phoneNumbers": [
    {
      "id": "<PHONE_NUMBER_ID>",
      "status": "connected",
      "qualityRating": "GREEN",
      "lastSyncedAt": "2026-05-16T08:19:24.000Z"
    }
  ]
}

After sync completes, validate withList Sendersand register pending numbers fromCreate Sender. Guided sequence:Senders Flow Guide. Full catalog:API Reference.