{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/whatsmcp-com/json-schema/whatsmcp-com-get-profile-output-schema.json",
  "title": "GetProfileOutput",
  "x-generated": "2026-11-28",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/whatsmcp-com-openapi.json#/components/schemas/GetProfileOutput",
  "additionalProperties": false,
  "properties": {
    "about": {
      "description": "the peer's status text, when they let this account see it",
      "type": "string"
    },
    "business": {
      "$ref": "#/$defs/BusinessView",
      "description": "present only for a business account"
    },
    "is_business": {
      "description": "true or false when known; ABSENT means the lookup could not establish it (see note) — absence is not a no",
      "type": "boolean"
    },
    "jid": {
      "type": "string"
    },
    "name": {
      "description": "the best available public name",
      "type": "string"
    },
    "name_source": {
      "description": "business or none — a verified business name is vouched for by WhatsApp; \"none\" means nothing public is published",
      "type": "string"
    },
    "note": {
      "type": "string"
    },
    "on_whatsapp": {
      "description": "false means the number is not registered on WhatsApp at all",
      "type": "boolean"
    },
    "phone": {
      "type": "string"
    },
    "picture_url": {
      "description": "a WhatsApp-hosted URL that expires; fetch it promptly",
      "type": "string"
    },
    "refusal": {
      "$ref": "#/$defs/Refusal",
      "description": "present only when the request was declined"
    }
  },
  "required": [
    "on_whatsapp"
  ],
  "type": "object",
  "$defs": {
    "AccountCandidate": {
      "additionalProperties": false,
      "properties": {
        "account_id": {
          "description": "the id to retry with as account_id",
          "type": "string"
        },
        "name": {
          "description": "the account's WhatsApp display name",
          "type": "string"
        },
        "phone": {
          "description": "the account's phone number, E.164",
          "type": "string"
        },
        "status": {
          "description": "whether the number works right now — live, connecting, or why not, as wa_list_accounts reports it",
          "type": "string"
        }
      },
      "required": [
        "account_id"
      ],
      "type": "object"
    },
    "BusinessHoursView": {
      "additionalProperties": false,
      "properties": {
        "close_time": {
          "type": "string"
        },
        "day_of_week": {
          "type": "string"
        },
        "mode": {
          "description": "open_24h, appointment_only, specific_hours, or closed",
          "type": "string"
        },
        "open_time": {
          "type": "string"
        }
      },
      "type": "object"
    },
    "BusinessView": {
      "additionalProperties": false,
      "properties": {
        "address": {
          "type": "string"
        },
        "categories": {
          "items": {
            "type": "string"
          },
          "type": [
            "array",
            "null"
          ]
        },
        "email": {
          "type": "string"
        },
        "hours": {
          "items": {
            "$ref": "#/$defs/BusinessHoursView"
          },
          "type": [
            "array",
            "null"
          ]
        },
        "hours_timezone": {
          "type": "string"
        },
        "options": {
          "additionalProperties": {
            "type": "string"
          },
          "description": "extra published fields such as website or description",
          "type": "object"
        }
      },
      "type": "object"
    },
    "Refusal": {
      "additionalProperties": false,
      "properties": {
        "account_status": {
          "description": "when the number is not working: its status — starting, not_running, whatsapp_down (telegram_down for a Telegram account), suspended, pairing, unlinked or locked",
          "type": "string"
        },
        "account_status_reason": {
          "description": "the detail of account_status, e.g. no_egress, stopped, no_plan",
          "type": "string"
        },
        "candidates": {
          "description": "on an account_ambiguous refusal: the accounts to choose from — retry with one of these as account_id",
          "items": {
            "$ref": "#/$defs/AccountCandidate"
          },
          "type": [
            "array",
            "null"
          ]
        },
        "message": {
          "description": "a human-readable explanation",
          "type": "string"
        },
        "reason": {
          "description": "why the call was declined",
          "type": "string"
        },
        "refused": {
          "description": "true when the call was declined rather than performed",
          "type": "boolean"
        },
        "retry_after_seconds": {
          "description": "seconds to wait before retrying; absent or 0 means retrying will not help",
          "format": "int64",
          "type": "integer"
        },
        "since": {
          "description": "when the number stopped working, RFC3339, when known",
          "type": "string"
        }
      },
      "required": [
        "refused",
        "reason",
        "message"
      ],
      "type": "object"
    }
  }
}