{
  "opencollection": "1.0.0",
  "info": {
    "name": "WhatsApp Cloud API",
    "version": "21.0"
  },
  "request": {
    "auth": {
      "type": "bearer",
      "token": "{{bearerToken}}"
    }
  },
  "items": [
    {
      "info": {
        "name": "Messages",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "WhatsApp Send a Message",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://graph.facebook.com/v21.0/:phone-number-id/messages",
            "params": [
              {
                "name": "phone-number-id",
                "value": "",
                "type": "path",
                "description": "Phone Number ID from the WhatsApp Business Account"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Sends a message to a WhatsApp user. The type field in the request body determines the message format. Also used to mark incoming messages as read by setting status to read."
        }
      ]
    },
    {
      "info": {
        "name": "Media",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "WhatsApp Upload Media",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://graph.facebook.com/v21.0/:phone-number-id/media",
            "params": [
              {
                "name": "phone-number-id",
                "value": "",
                "type": "path",
                "description": "Phone Number ID from the WhatsApp Business Account"
              }
            ],
            "body": {
              "type": "multipart-form",
              "data": [
                {
                  "name": "file",
                  "type": "text",
                  "value": ""
                },
                {
                  "name": "type",
                  "type": "text",
                  "value": ""
                },
                {
                  "name": "messaging_product",
                  "type": "text",
                  "value": ""
                }
              ]
            }
          },
          "docs": "Uploads media to WhatsApp servers. Returns a media ID that can be used when sending media messages. Uploaded media persists for 30 days."
        },
        {
          "info": {
            "name": "WhatsApp Get Media URL",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://graph.facebook.com/v21.0/:media-id",
            "params": [
              {
                "name": "media-id",
                "value": "",
                "type": "path",
                "description": "Media ID returned from upload or webhook"
              }
            ]
          },
          "docs": "Retrieves a temporary download URL for a media file. The URL expires after 5 minutes. To download the file, make a GET request to the returned URL with the same Bearer token."
        },
        {
          "info": {
            "name": "WhatsApp Delete Media",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://graph.facebook.com/v21.0/:media-id",
            "params": [
              {
                "name": "media-id",
                "value": "",
                "type": "path",
                "description": "Media ID returned from upload or webhook"
              }
            ]
          },
          "docs": "Deletes a media file from WhatsApp servers."
        }
      ]
    },
    {
      "info": {
        "name": "Phone Numbers",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "WhatsApp Get Phone Number Info",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://graph.facebook.com/v21.0/:phone-number-id",
            "params": [
              {
                "name": "phone-number-id",
                "value": "",
                "type": "path",
                "description": "Phone Number ID from the WhatsApp Business Account"
              },
              {
                "name": "fields",
                "value": "example_value",
                "type": "query",
                "description": "Comma-separated list of fields to return"
              }
            ]
          },
          "docs": "Retrieves information about a registered phone number."
        }
      ]
    },
    {
      "info": {
        "name": "Two-Step Verification",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "WhatsApp Set Two-step Verification PIN",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://graph.facebook.com/v21.0/:phone-number-id",
            "params": [
              {
                "name": "phone-number-id",
                "value": "",
                "type": "path",
                "description": "Phone Number ID from the WhatsApp Business Account"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Sets or updates the two-step verification PIN for a phone number."
        }
      ]
    },
    {
      "info": {
        "name": "Business Profile",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "WhatsApp Get Business Profile",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://graph.facebook.com/v21.0/:phone-number-id/whatsapp_business_profile",
            "params": [
              {
                "name": "phone-number-id",
                "value": "",
                "type": "path",
                "description": "Phone Number ID from the WhatsApp Business Account"
              },
              {
                "name": "fields",
                "value": "example_value",
                "type": "query",
                "description": "Comma-separated fields to return"
              }
            ]
          },
          "docs": "Retrieves the WhatsApp Business profile for a phone number."
        },
        {
          "info": {
            "name": "WhatsApp Update Business Profile",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://graph.facebook.com/v21.0/:phone-number-id/whatsapp_business_profile",
            "params": [
              {
                "name": "phone-number-id",
                "value": "",
                "type": "path",
                "description": "Phone Number ID from the WhatsApp Business Account"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Updates the WhatsApp Business profile for a phone number."
        }
      ]
    },
    {
      "info": {
        "name": "Registration",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "WhatsApp Request Verification Code",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://graph.facebook.com/v21.0/:phone-number-id/request_code",
            "params": [
              {
                "name": "phone-number-id",
                "value": "",
                "type": "path",
                "description": "Phone Number ID from the WhatsApp Business Account"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Requests a verification code via SMS or voice call for phone registration."
        },
        {
          "info": {
            "name": "WhatsApp Verify Phone Number",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://graph.facebook.com/v21.0/:phone-number-id/verify_code",
            "params": [
              {
                "name": "phone-number-id",
                "value": "",
                "type": "path",
                "description": "Phone Number ID from the WhatsApp Business Account"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Verifies a phone number using the code received via SMS or voice."
        },
        {
          "info": {
            "name": "WhatsApp Register Phone Number",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://graph.facebook.com/v21.0/:phone-number-id/register",
            "params": [
              {
                "name": "phone-number-id",
                "value": "",
                "type": "path",
                "description": "Phone Number ID from the WhatsApp Business Account"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Registers a phone number for use with the Cloud API."
        },
        {
          "info": {
            "name": "WhatsApp Deregister Phone Number",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://graph.facebook.com/v21.0/:phone-number-id/deregister",
            "params": [
              {
                "name": "phone-number-id",
                "value": "",
                "type": "path",
                "description": "Phone Number ID from the WhatsApp Business Account"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Deregisters a phone number from the Cloud API."
        }
      ]
    },
    {
      "info": {
        "name": "QR Codes",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "WhatsApp List QR Codes",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://graph.facebook.com/v21.0/:phone-number-id/message_qrdls",
            "params": [
              {
                "name": "phone-number-id",
                "value": "",
                "type": "path",
                "description": "Phone Number ID from the WhatsApp Business Account"
              }
            ]
          },
          "docs": "Lists all QR codes for a phone number."
        },
        {
          "info": {
            "name": "WhatsApp Create QR Code",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://graph.facebook.com/v21.0/:phone-number-id/message_qrdls",
            "params": [
              {
                "name": "phone-number-id",
                "value": "",
                "type": "path",
                "description": "Phone Number ID from the WhatsApp Business Account"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Creates a QR code that customers can scan to start a conversation."
        },
        {
          "info": {
            "name": "WhatsApp Get QR Code",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://graph.facebook.com/v21.0/:phone-number-id/message_qrdls/:qr-code-id",
            "params": [
              {
                "name": "phone-number-id",
                "value": "",
                "type": "path",
                "description": "Phone Number ID from the WhatsApp Business Account"
              },
              {
                "name": "qr-code-id",
                "value": "",
                "type": "path",
                "description": "QR code identifier"
              }
            ]
          },
          "docs": "Retrieves a specific QR code."
        },
        {
          "info": {
            "name": "WhatsApp Update QR Code",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://graph.facebook.com/v21.0/:phone-number-id/message_qrdls/:qr-code-id",
            "params": [
              {
                "name": "phone-number-id",
                "value": "",
                "type": "path",
                "description": "Phone Number ID from the WhatsApp Business Account"
              },
              {
                "name": "qr-code-id",
                "value": "",
                "type": "path",
                "description": "QR code identifier"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Updates the prefilled message for a QR code."
        },
        {
          "info": {
            "name": "WhatsApp Delete QR Code",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://graph.facebook.com/v21.0/:phone-number-id/message_qrdls/:qr-code-id",
            "params": [
              {
                "name": "phone-number-id",
                "value": "",
                "type": "path",
                "description": "Phone Number ID from the WhatsApp Business Account"
              },
              {
                "name": "qr-code-id",
                "value": "",
                "type": "path",
                "description": "QR code identifier"
              }
            ]
          },
          "docs": "Deletes a QR code."
        }
      ]
    }
  ],
  "bundled": true
}