WhatsApp Management APIs

Management APIS for the WhatsApp business profile.


WBP Account Details:

The WBP Account Details endpoint fetches the account details for the WhatsApp business profile by entering the authorization token key.

URL: https://apis.rmlconnect.net/wba/management/v1/wbp-account-details

Authorizations

JWT
DetailValue
API keyjwt
Header parameter nameAuthorization

Responses

200 Success
DetailDescription
Response categorySuccess
Response schemaapplication/json
DescriptionReturns the WhatsApp business profile account details.

Example response

{
  "callback_url": "http://<domain_name>/v2/optin-callback-rmlbot2",
  "send_status": "True",
  "available_verticals": [
    "OTHER",
    "AUTO",
    "BEAUTY",
    "APPAREL",
    "EDU",
    "ENTERTAIN",
    "EVENT_PLAN",
    "FINANCE",
    "GROCERY",
    "GOVT",
    "HOTEL",
    "HEALTH",
    "NONPROFIT",
    "PROF_SERVICES",
    "RETAIL",
    "TRAVEL",
    "RESTAURANT"
  ],
  "account_hosting": "cloud",
  "user_details": {
    "client_msisdn": "91937274xxxx",
    "waba_id": "206162977746xxxx",
    "catalog_id": "623056228363xxxx"
  },
  "business_details": {
    "business": {
      "profile": {
        "address": "Mumbai, Bengaluru",
        "description": "Route Mobile, Route Lab",
        "email": "[email protected]",
        "websites": [
          "http://www.routemobile.com/"
        ],
        "vertical": "OTHER",
        "about": "RML TEST Bot2",
        "messaging_product": "whatsapp"
      }
    }
  },
  "about_details": {
    "profile": {
      "about": {
        "text": "RML TEST Bot2"
      }
    }
  },
  "health_check_details": {
    "health_check": {
      "username": "RMLBot2",
      "health": "CONNECTED",
      "request_url": "https://<domain_name>/v15.0/2061629777463969/phone_numbers",
      "response_body": {
        "health": {
          "gateway_status": "CONNECTED",
          "meta": {
            "api_status": "stable",
            "version": "15.0"
          }
        }
      },
      "response_status_code": 200
    }
  },
  "meta": {
    "api_status": "stable",
    "version": "15.0"
  },
  "phone_number_updates": {
    "waba_id": "206162977746xxxx",
    "number_quality": "high",
    "messaging_limit": "TIER_1K",
    "number_status": "CONNECTED",
    "rejection_reason": "string",
    "verified_name": "RouteMobile (Testing)"
  },
  "waba_updates": {
    "waba_status": "CONNECTED",
    "waba_quality": "high",
    "waba_ban_date": "string",
    "waba_ban_state": "string",
    "violation_type": "string",
    "restriction_type": "string",
    "expiration": "string",
    "waba_id": "206162977746xxxx"
  },
  "business_capabilities_updates": {
    "max_phone_numbers_per_business": "25",
    "max_daily_conversation_per_phone": "TIER_1K"
  }
}
FieldTypeDescription
callback_urlStringThe URL where callback notifications are sent.
send_statusStringA boolean value indicates whether the sending status update is enabled.
available_verticalsArray of stringsA list of available verticals or business categories.
account_hostingStringThe hosting type for the account.
user_detailsObjectDetails about the user.
business_detailsObjectDetails about the business.
about_detailsObjectAbout section details.
health_check_detailsObjectHealth check information.
metaObjectMetadata information.
phone_number_updatesObjectPhone number update details.
waba_updatesObjectWABA update details.
business_capabilities_updatesObjectBusiness capabilities update details.
401 Unauthorized
DetailDescription
Response categoryAuthentication error
Response schemaapplication/json
DescriptionThe request cannot be processed because the JWT token is expired or invalid.

Example response

{
  "message": "unable to process campaign request",
  "reason": "jwt token expired",
  "status": "failure"
}
FieldTypeDescription
messageStringThe response message.
reasonStringThe reason for not processing the request.
statusStringThe status of the request.
404 Not Found
DetailDescription
Response categoryNot found error
Response schemaapplication/json
DescriptionThe requested URL was not found on the server.

Example response

{
  "message": "The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again."
}
FieldTypeDescription
messageStringThe response message.
500 Internal Server Error
DetailDescription
Response categoryServer error
Response schemaapplication/json
DescriptionThe server encountered an internal error while processing the request.

Example response

{
  "status": "failure",
  "message": "unable to process request",
  "reason": "internal server error"
}
FieldTypeDescription
messageStringThe response message.
reasonStringThe reason for not processing the request.
statusStringThe status of the request.

Profile Photo API

The Profile Photo API endpoint uploads the profile photo for account and updates the account details for the WhatsApp business profile by entering the authorization token key.

URL: https://apis.rmlconnect.net/wba/management/v1/settings/profile/photo

Authorizations

JWT
DetailValue
API keyjwt
Header parameter nameAuthorization

Query Parameters

ParameterTypeDescription
sourceStringThe source for uploading the file for a bulk campaign. Example: source=UI.
debugAnyEnum : True, False. The parameter that enables or disables the debug mode. Set the default value of "debug=True" to enable the debug mode. The system generates additional information and logs to help resolving troubleshoot and debug issues with the bulk campaigns. Example: debug=True.

Request body schemamultipart/form-data
FieldRequiredTypeDescription
fileYesStringThis parameter contains the profile photo image file. Upload an image file in the supported formats mentioned in the Facebook documentation.

Responses

200 Success
DetailDescription
Response categorySuccess
Response schemaapplication/json
DescriptionThe profile photo file was uploaded successfully.

Example response

{
  "message": "File uploaded successfully",
  "campaign_id": "670b3fd4-d442-11ed-a821-xxxxxxxxxxxx",
  "file_type": "text/csv",
  "file_size": "19.0B",
  "total_records": 1,
  "valid_records": 1,
  "duplicate records": 0,
  "campaign_type": "generalized",
  "message_preview": {
    "phone": "91868841xxxx",
    "enable_acculync": true,
    "extra": "{'asd':'asd'}",
    "media": {
      "type": "media_template",
      "template_name": "boarding_pass_update",
      "lang_code": "en",
      "header": [
        {
          "image": {
            "link": "https://media.istockphoto.com/vectors/airplane-ticket-boarding-pass-ticket-template-vector-id878xxxxxx"
          }
        }
      ],
      "body": [
        {
          "text": "Here is your boarding pass"
        }
      ]
    }
  },
  "asynchronous": false,
  "country_code": "string"
}
FieldTypeDescription
messageStringThe outcome of the file upload process.
campaign_idStringThe unique identifier for the campaign associated with the uploaded file.
file_typeStringThe type of the uploaded file.
file_sizeStringThe size of the uploaded file.
total_recordsIntegerThe total number of records present in the uploaded file.
valid_recordsIntegerThe count of valid records within the uploaded file.
duplicate recordsIntegerThe count of duplicate records found in the uploaded file.
campaign_typeStringThe type of campaign being sent, which can be either generalized or personalized.
message_previewObjectA preview of the message or content associated with the campaign.
asynchronousBooleanThe parameter indicates whether the file upload process is synchronous or asynchronous.
country_codeStringThe country code.
401 Unauthorized
DetailDescription
Response categoryAuthentication error
Response schemaapplication/json
DescriptionThe request cannot be processed because the JWT token is expired or invalid.

Example response

{
  "message": "unable to process campaign request",
  "reason": "jwt token expired",
  "status": "failure"
}
FieldTypeDescription
messageStringThe response message.
reasonStringThe reason for not processing the product feed update request.
statusStringThe status of the product feed update.
404 Page Not Found
DetailDescription
Response categoryNot found error
Response schemaapplication/json
DescriptionThe requested URL was not found on the server.

Example response

{
  "message": "The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again."
}
FieldTypeDescription
messageStringThe message response.
422 Unprocessable Entity (WebDAV)
DetailDescription
Response categoryValidation error
Response schemaapplication/json
DescriptionOne of Unknown Campaign Type Error / File Mimetype Error. The request cannot be processed because one or more values are invalid.

Example response

{
  "message": "please check API docs for more info",
  "status": "failed",
  "reason": {
    "campaign_type": [
      "Must be one of: generalized, personalized."
    ]
  }
}
FieldTypeDescription
messageStringThe response message.
statusStringThe status of the file upload.
reasonObjectThe reason for not processing the file upload request.
500 Internal Server Error
DetailDescription
Response categoryServer error
Response schemaapplication/json
DescriptionThe server encountered an internal error while processing the request.

Example response

{
  "status": "failure",
  "message": "unable to process request"
}
FieldTypeDescription
statusStringThe status of the message delivery.
messageStringThe message response.


Did this page help you?