FruxonDocs
IntegrationsConfigs

Re-reads from the provider whether this configuration's messaging channel can send.

For a WhatsApp (Meta Cloud API) configuration, asks Meta for the number's health (whether it can send, its display name's review, quality rating, messaging limit, and Meta's own reasons when it is limited or blocked), stores it and returns it: the same object as `channelHealth` on the configuration. A configuration is read from the provider at most once a minute; a second call inside the minute returns the stored result. When the provider does not answer, the result's `state` is `UNKNOWN` and the earlier values are kept. Answers with no content for an integration that has no channel health, and for a configuration with no credential connected yet.

POST
/v1/tenants/{tenant}/integrations/{integration}/configs/{config}:refreshChannelHealth
AuthorizationBearer <token>

JWT Authorization header using the Bearer scheme. Enter 'Bearer' [space] and then your token.

In: header

Path Parameters

config*string

The configuration ID.

Formatuuid
tenant*string

The tenant identifier

integration*string

The integration identifier

Response Body

curl -X POST "https://api.fruxon.com/v1/tenants/string/integrations/string/configs/497f6eca-6276-4993-bfeb-53cbbbba6f08:refreshChannelHealth"
{
  "canSend": false,
  "reason": "string",
  "state": "string",
  "displayPhoneNumber": "string",
  "verifiedName": "string",
  "nameStatus": "string",
  "requestedName": "string",
  "requestedNameStatus": "string",
  "quality": "string",
  "messagingLimit": "string",
  "numberStatus": "string",
  "issues": [
    {
      "entity": "string",
      "code": 0,
      "description": "string",
      "solution": "string"
    }
  ],
  "sendBlock": {
    "code": 0,
    "at": 0
  },
  "partial": false,
  "checkedAt": 0
}
Empty
Empty
Empty
{
  "type": "string",
  "title": "string",
  "status": 0,
  "detail": "string",
  "instance": "string",
  "property1": null,
  "property2": null
}