{
  "info": {
    "name": "WhatsApp Messaging Direct Cloud API — by Retention Stack",
    "description": "Generated from registered API routes for Direct Cloud API. Set sessionToken (Authorization: Bearer ch_live_...) or apiKey (ak_live_...) before calling protected endpoints. Requests consume quota and send real WhatsApp messages.",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  },
  "auth": {
    "type": "bearer",
    "bearer": [
      {
        "key": "token",
        "value": "{{sessionToken}}",
        "type": "string"
      }
    ]
  },
  "variable": [
    {
      "key": "baseUrl",
      "value": "https://wp-rapidapi.retentionstack.agency"
    },
    {
      "key": "sessionToken",
      "value": "ch_live_YOUR_SESSION_TOKEN"
    },
    {
      "key": "session",
      "value": "default"
    },
    {
      "key": "groupId",
      "value": "REPLACE_WITH_GROUP_ID"
    },
    {
      "key": "channelId",
      "value": "REPLACE_WITH_CHANNEL_ID"
    },
    {
      "key": "chatId",
      "value": "15551234567"
    }
  ],
  "item": [
    {
      "name": "system",
      "item": [
        {
          "name": "Check API health",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/health",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "health"
              ],
              "query": []
            },
            "description": "Check that the API process is running. No API key is required on the direct service. This does not check WhatsApp connectivity; check a session with getSession.",
            "auth": {
              "type": "noauth"
            }
          }
        }
      ]
    },
    {
      "name": "Sessions",
      "item": [
        {
          "name": "Create session",
          "request": {
            "method": "POST",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/sessions",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "sessions"
              ],
              "query": []
            },
            "description": "Create and start one WhatsApp session. The server generates its name; save data.name and use it for later calls. A supplied name is ignored. A 403 can mean your plan already has its maximum number of sessions; reuse a session from error.details.availableSessions. A rare generated-name collision returns 409; retry creation in that case."
          }
        },
        {
          "name": "List sessions",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/sessions",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "sessions"
              ],
              "query": []
            },
            "description": "List only the sessions owned by your account. An empty data array means you have no sessions yet. Use each returned name in session parameters; status can be refreshed from the messaging service when available."
          }
        },
        {
          "name": "Delete session",
          "request": {
            "method": "DELETE",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/sessions/{{session}}",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "sessions",
                "{{session}}"
              ],
              "query": []
            },
            "description": "Delete your session from the messaging service and the local session registry. This removes the API session; create and link a new session if you need it again."
          }
        },
        {
          "name": "Get session",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/sessions/{{session}}",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "sessions",
                "{{session}}"
              ],
              "query": []
            },
            "description": "Read your session state. Use the name returned by session creation. Wait for WORKING before sending; if the session needs linking, request its QR or pairing code."
          }
        },
        {
          "name": "Get session me",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/sessions/{{session}}/me",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "sessions",
                "{{session}}",
                "me"
              ],
              "query": []
            },
            "description": "Read the WhatsApp account linked to your session. This requires ownership of the session; account details depend on the messaging engine and whether linking is complete."
          }
        },
        {
          "name": "Start session",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/sessions/start",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "sessions",
                "start"
              ],
              "query": []
            },
            "description": "Start or recover your session using its name. Already connected sessions return their current state without restarting. An empty body auto-creates a session only when you have none; otherwise supply name. Auto-creation returns 201; existing sessions return 200.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"name\": \"me\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Stop session",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/sessions/stop",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "sessions",
                "stop"
              ],
              "query": []
            },
            "description": "Stop your named session. The optional logout flag also logs it out. Sending requires a running, linked session; start it again before sending.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"name\": \"me\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Logout session",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/sessions/logout",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "sessions",
                "logout"
              ],
              "query": []
            },
            "description": "Log WhatsApp out of your named session. Link the account again with a QR or pairing code before sending more messages.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"name\": \"me\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Add session webhook",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/sessions/{{session}}/webhooks",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "sessions",
                "{{session}}",
                "webhooks"
              ],
              "query": []
            },
            "description": "Register an HTTPS callback for your session. events defaults to [\"message\"]. Optional hmacKey, retries and customHeaders configure delivery. The callback receives event, session and payload fields. The default retry policy is exponential with delaySeconds=2 and attempts=3. Handle duplicate deliveries in your receiver.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"webhookUrl\": \"https://your-server.example/webhooks/whatsapp\",\n  \"events\": [\n    \"message\",\n    \"message.ack\",\n    \"session.status\"\n  ]\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Delete session webhook",
          "request": {
            "method": "DELETE",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/sessions/{{session}}/webhooks",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "sessions",
                "{{session}}",
                "webhooks"
              ],
              "query": []
            },
            "description": "Remove a callback by sending the same webhookUrl in the JSON body. A missing registration returns 404. Other callbacks on this session remain registered.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"webhookUrl\": \"https://your-server.example/webhooks/whatsapp\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        }
      ]
    },
    {
      "name": "Auth",
      "item": [
        {
          "name": "Get QR code",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/{{session}}/auth/qr",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "{{session}}",
                "auth",
                "qr"
              ],
              "query": [
                {
                  "key": "format",
                  "value": "base64",
                  "disabled": true
                }
              ]
            },
            "description": "Get a QR code for linking your session. STOPPED and FAILED sessions are recovered automatically. The default response wraps the engine QR object (including its data field) in data; format=binary returns image/png when QR data is available. A connected session returns 409; use it without linking again."
          }
        },
        {
          "name": "Request pairing code",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/{{session}}/auth/pairing-code",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "{{session}}",
                "auth",
                "pairing-code"
              ],
              "query": []
            },
            "description": "Request a phone-number pairing code for your session. Supply 10–15 digits including the country code, without + or spaces, then enter the returned code in WhatsApp Linked Devices. STOPPED and FAILED sessions recover automatically. An already connected session returns 409.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"phoneNumber\": \"15551234567\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Get passkey challenge",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/{{session}}/auth/passkey/challenge",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "{{session}}",
                "auth",
                "passkey",
                "challenge"
              ],
              "query": []
            },
            "description": "Use when your session status is PASSKEY_REQUIRED. Returns the WebAuthn challenge (challenge, rpId, allowCredentials, userVerification, timeout). It must be signed in a browser on web.whatsapp.com, which the WhatsApp browser extension does for you. Returns 422 when no challenge is pending."
          }
        },
        {
          "name": "Submit passkey assertion",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/{{session}}/auth/passkey",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "{{session}}",
                "auth",
                "passkey"
              ],
              "query": []
            },
            "description": "Send the signed WebAuthn assertion exactly as returned by credential.toJSON(). Most sessions then move to WORKING; poll getSession to confirm. If the status becomes PASSKEY_CONFIRMATION_REQUIRED, continue with getPasskeyConfirmation.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"id\": \"AbCdEf0123456789_credential_id\",\n  \"rawId\": \"AbCdEf0123456789_credential_id\",\n  \"type\": \"public-key\",\n  \"response\": {\n    \"clientDataJSON\": \"eyJ0eXBlIjoid2ViYXV0aG4uZ2V0In0\",\n    \"authenticatorData\": \"SZYN5YgOjGh0NBcPZHZgW4_krrmihjLHmVzzuoMdl2M\",\n    \"signature\": \"MEUCIQDexampleSignature\",\n    \"userHandle\": null\n  }\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Get passkey confirmation code",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/{{session}}/auth/passkey/confirmation",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "{{session}}",
                "auth",
                "passkey",
                "confirmation"
              ],
              "query": []
            },
            "description": "Use only when your session status is PASSKEY_CONFIRMATION_REQUIRED. Returns a 4-digit code to compare with the code shown on your phone."
          }
        },
        {
          "name": "Confirm passkey code",
          "request": {
            "method": "POST",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/{{session}}/auth/passkey/confirm",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "{{session}}",
                "auth",
                "passkey",
                "confirm"
              ],
              "query": []
            },
            "description": "Call after you confirm the 4-digit code matches your phone. The session then continues linking; poll getSession until it is WORKING."
          }
        }
      ]
    },
    {
      "name": "Messages",
      "item": [
        {
          "name": "Send text message",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/sendText",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "sendText"
              ],
              "query": []
            },
            "description": "Send text to a contact, group or channel. Put session in the body, using the name returned by session creation. linkPreview and linkPreviewHighQuality are optional. A successful response confirms acceptance only; use message.ack webhooks to confirm delivery or reading. Writes have no idempotency-key support; check delivery status after an uncertain outcome before retrying. A 422 RECIPIENT_LOOKUP_FAILED requires checking the recipient, not blindly resending.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"chatId\": \"15551234567\",\n  \"text\": \"Your order is ready for collection.\",\n  \"session\": \"me\",\n  \"linkPreview\": true,\n  \"linkPreviewHighQuality\": false\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Send image",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/sendImage",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "sendImage"
              ],
              "query": []
            },
            "description": "Send an image with optional caption. Supply file.url for a downloadable image or file.data containing base64; replace example asset URLs with your own. Delivery is asynchronous; confirm with message.ack. Writes have no idempotency-key support; check delivery status after an uncertain outcome before retrying. A 422 RECIPIENT_LOOKUP_FAILED requires checking the recipient, not blindly resending.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"chatId\": \"15551234567\",\n  \"session\": \"me\",\n  \"file\": {\n    \"url\": \"https://your-server.example/assets/image.png\",\n    \"mimetype\": \"image/png\",\n    \"filename\": \"image.png\"\n  }\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Send file",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/sendFile",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "sendFile"
              ],
              "query": []
            },
            "description": "Send a document or other file. Supply a downloadable file.url or base64 file.data, and include filename and mimetype where appropriate. Delivery is asynchronous; confirm with message.ack. Writes have no idempotency-key support; check delivery status after an uncertain outcome before retrying. A 422 RECIPIENT_LOOKUP_FAILED requires checking the recipient, not blindly resending.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"chatId\": \"15551234567\",\n  \"session\": \"me\",\n  \"file\": {\n    \"url\": \"https://your-server.example/assets/receipt.pdf\",\n    \"mimetype\": \"application/pdf\",\n    \"filename\": \"receipt.pdf\"\n  }\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Send voice message",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/sendVoice",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "sendVoice"
              ],
              "query": []
            },
            "description": "Send a voice or audio file using a downloadable file.url or base64 file.data. Use a format supported by the messaging engine. Delivery is asynchronous; confirm with message.ack. Writes have no idempotency-key support; check delivery status after an uncertain outcome before retrying. A 422 RECIPIENT_LOOKUP_FAILED requires checking the recipient, not blindly resending.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"chatId\": \"15551234567\",\n  \"session\": \"me\",\n  \"file\": {\n    \"url\": \"https://your-server.example/assets/note.ogg\",\n    \"mimetype\": \"audio/ogg\"\n  }\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Send video",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/sendVideo",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "sendVideo"
              ],
              "query": []
            },
            "description": "Send a video with optional caption using a downloadable file.url or base64 file.data. Replace example asset URLs with your own. Delivery is asynchronous; confirm with message.ack. Writes have no idempotency-key support; check delivery status after an uncertain outcome before retrying. A 422 RECIPIENT_LOOKUP_FAILED requires checking the recipient, not blindly resending.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"chatId\": \"15551234567\",\n  \"session\": \"me\",\n  \"file\": {\n    \"url\": \"https://your-server.example/assets/update.mp4\",\n    \"mimetype\": \"video/mp4\"\n  }\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Send location",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/sendLocation",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "sendLocation"
              ],
              "query": []
            },
            "description": "Send latitude (−90 to 90 degrees) and longitude (−180 to 180 degrees), with an optional title. Put session and chatId in the body. Delivery is asynchronous; confirm with message.ack. Writes have no idempotency-key support; check delivery status after an uncertain outcome before retrying. A 422 RECIPIENT_LOOKUP_FAILED requires checking the recipient, not blindly resending.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"chatId\": \"15551234567\",\n  \"session\": \"me\",\n  \"latitude\": 19.076,\n  \"longitude\": 72.8777\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Send contact vCard",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/sendContactVcard",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "sendContactVcard"
              ],
              "query": []
            },
            "description": "Share contact cards using contactsId, an array of WhatsApp contact IDs. Put session and destination chatId in the body. Delivery is asynchronous; confirm with message.ack. Writes have no idempotency-key support; check delivery status after an uncertain outcome before retrying. A 422 RECIPIENT_LOOKUP_FAILED requires checking the recipient, not blindly resending.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"chatId\": \"15551234567\",\n  \"session\": \"me\",\n  \"contactsId\": [\n    \"15557654321@c.us\"\n  ]\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Send poll",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/sendPoll",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "sendPoll"
              ],
              "query": []
            },
            "description": "Send a poll with a question and 2–12 text options. Set multipleAnswers to permit more than one answer. Put session and chatId in the body. Delivery is asynchronous; confirm with message.ack. Writes have no idempotency-key support; check delivery status after an uncertain outcome before retrying. A 422 RECIPIENT_LOOKUP_FAILED requires checking the recipient, not blindly resending.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"chatId\": \"15551234567\",\n  \"session\": \"me\",\n  \"poll\": {\n    \"name\": \"Which delivery day works for you?\",\n    \"options\": [\n      \"Monday\",\n      \"Tuesday\"\n    ],\n    \"multipleAnswers\": false\n  }\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Reply to message",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/reply",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "reply"
              ],
              "query": []
            },
            "description": "Reply to a specific message using its ID in reply_to. Obtain that ID from message history or an incoming webhook. Put session and destination chatId in the body. Confirm delivery with message.ack. Writes have no idempotency-key support; check delivery status after an uncertain outcome before retrying. A 422 RECIPIENT_LOOKUP_FAILED requires checking the recipient, not blindly resending.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"chatId\": \"15551234567\",\n  \"session\": \"me\",\n  \"text\": \"Your order is ready for collection.\",\n  \"reply_to\": \"true_15551234567@c.us_ABC123\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Mark message as seen",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/sendSeen",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "sendSeen"
              ],
              "query": []
            },
            "description": "Mark messages in chatId as read for your connected session. Optionally target a messageId obtained from history or a webhook. This changes the read state visible to the sender.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"chatId\": \"15551234567\",\n  \"session\": \"me\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Start typing indicator",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/startTyping",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "startTyping"
              ],
              "query": []
            },
            "description": "Show a typing indicator in chatId for your connected session. Call stopTyping when finished; this does not send a message.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"chatId\": \"15551234567\",\n  \"session\": \"me\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Stop typing indicator",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/stopTyping",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "stopTyping"
              ],
              "query": []
            },
            "description": "Stop the typing indicator in chatId for your connected session. This does not send a message.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"chatId\": \"15551234567\",\n  \"session\": \"me\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Set message reaction",
          "request": {
            "method": "PUT",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/reaction",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "reaction"
              ],
              "query": []
            },
            "description": "React to an existing message using messageId from history or a webhook. reaction is the emoji to apply; an empty string removes the reaction.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"messageId\": \"true_15551234567@c.us_ABC123\",\n  \"session\": \"me\",\n  \"reaction\": \"👍\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Star or unstar message",
          "request": {
            "method": "PUT",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/star",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "star"
              ],
              "query": []
            },
            "description": "Set star=true to star a message or star=false to remove its star. Use messageId from history or a webhook and your connected session name.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"messageId\": \"true_15551234567@c.us_ABC123\",\n  \"session\": \"me\",\n  \"star\": true\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Get messages",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/messages?chatId=15551234567&session=me",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "messages"
              ],
              "query": [
                {
                  "key": "chatId",
                  "value": "15551234567",
                  "disabled": false
                },
                {
                  "key": "session",
                  "value": "me",
                  "disabled": false
                },
                {
                  "key": "limit",
                  "value": "20",
                  "disabled": true
                },
                {
                  "key": "downloadMedia",
                  "value": "",
                  "disabled": true
                }
              ]
            },
            "description": "Read message history for chatId and session. limit defaults to 100 and accepts 1–1000. downloadMedia is optional. This endpoint has no documented offset or cursor parameter. Engine response fields vary."
          }
        }
      ]
    },
    {
      "name": "Presence",
      "item": [
        {
          "name": "Set presence",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/sessions/{{session}}/presence",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "sessions",
                "{{session}}",
                "presence"
              ],
              "query": []
            },
            "description": "Set global online or offline presence. The body session is required in addition to the path session; use the same name in both. Although the enum also lists typing, recording and paused, those states need a chatId that this request schema does not accept. Use startTyping and stopTyping for typing indicators.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"presence\": \"online\",\n  \"session\": \"me\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Get all chats presence",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/sessions/{{session}}/presence",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "sessions",
                "{{session}}",
                "presence"
              ],
              "query": []
            },
            "description": "Read cached presence information for your session. Subscribe to a contact first when you need updates; this response depends on presence events received by the messaging engine."
          }
        },
        {
          "name": "Get chat presence",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/sessions/{{session}}/presence/{{chatId}}",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "sessions",
                "{{session}}",
                "presence",
                "{{chatId}}"
              ],
              "query": []
            },
            "description": "Read presence information for chatId within your session. Obtain chatId from a contact check, message or webhook; subscribe to presence updates when needed."
          }
        },
        {
          "name": "Subscribe to chat presence",
          "request": {
            "method": "POST",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/sessions/{{session}}/presence/{{chatId}}/subscribe",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "sessions",
                "{{session}}",
                "presence",
                "{{chatId}}",
                "subscribe"
              ],
              "query": []
            },
            "description": "Subscribe your session to presence updates for chatId. Read current presence with the presence endpoints or receive presence.update webhook events."
          }
        }
      ]
    },
    {
      "name": "Groups",
      "item": [
        {
          "name": "Create group",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/sessions/{{session}}/groups",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "sessions",
                "{{session}}",
                "groups"
              ],
              "query": []
            },
            "description": "Create a WhatsApp group with a name and at least one participant. participants must be objects with an id, such as {\"id\":\"15551234567@c.us\"}. Use the returned group identifier for later group calls. Space out membership changes.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"name\": \"Order updates\",\n  \"participants\": [\n    {\n      \"id\": \"15551234567@c.us\"\n    }\n  ]\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "List groups (paginated, excludes participants)",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/sessions/{{session}}/groups",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "sessions",
                "{{session}}",
                "groups"
              ],
              "query": [
                {
                  "key": "limit",
                  "value": "20",
                  "disabled": true
                },
                {
                  "key": "offset",
                  "value": "0",
                  "disabled": true
                },
                {
                  "key": "sortBy",
                  "value": "subject",
                  "disabled": true
                },
                {
                  "key": "sortOrder",
                  "value": "asc",
                  "disabled": true
                }
              ]
            },
            "description": "List groups visible to your connected session. Use a returned group ID, ending in @g.us, in groupId parameters. Results and fields depend on the messaging engine."
          }
        },
        {
          "name": "Get groups count",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/sessions/{{session}}/groups/count",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "sessions",
                "{{session}}",
                "groups",
                "count"
              ],
              "query": []
            },
            "description": "Count groups visible to your connected session. The response data is returned by the messaging engine."
          }
        },
        {
          "name": "Join group",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/sessions/{{session}}/groups/join",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "sessions",
                "{{session}}",
                "groups",
                "join"
              ],
              "query": []
            },
            "description": "Join a WhatsApp group using the code from its invite link. This changes group membership; avoid automatically repeating a request with an uncertain outcome.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"code\": \"AbCdEfGhIjKlMnOpQrStUv\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Refresh groups",
          "request": {
            "method": "POST",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/sessions/{{session}}/groups/refresh",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "sessions",
                "{{session}}",
                "groups",
                "refresh"
              ],
              "query": []
            },
            "description": "Refresh the messaging engine’s group information for your session. Read the group list again after the refresh."
          }
        },
        {
          "name": "Get group",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/sessions/{{session}}/groups/{{groupId}}",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "sessions",
                "{{session}}",
                "groups",
                "{{groupId}}"
              ],
              "query": []
            },
            "description": "Read a group using a groupId from listGroups or a group webhook. Your linked account must be able to access the group."
          }
        },
        {
          "name": "Delete group",
          "request": {
            "method": "DELETE",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/sessions/{{session}}/groups/{{groupId}}",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "sessions",
                "{{session}}",
                "groups",
                "{{groupId}}"
              ],
              "query": []
            },
            "description": "Request deletion of the group identified by groupId. WhatsApp permissions and engine support determine whether it succeeds. This is a destructive operation; check the resulting state before repeating it."
          }
        },
        {
          "name": "Leave group",
          "request": {
            "method": "POST",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/sessions/{{session}}/groups/{{groupId}}/leave",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "sessions",
                "{{session}}",
                "groups",
                "{{groupId}}",
                "leave"
              ],
              "query": []
            },
            "description": "Leave the group identified by groupId using your linked WhatsApp account. This changes membership; confirm state before repeating a request with an uncertain outcome."
          }
        },
        {
          "name": "Set group subject",
          "request": {
            "method": "PUT",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/sessions/{{session}}/groups/{{groupId}}/subject",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "sessions",
                "{{session}}",
                "groups",
                "{{groupId}}",
                "subject"
              ],
              "query": []
            },
            "description": "Change the group title to subject (1–100 characters). Your linked account needs the WhatsApp permissions required by the group settings.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"subject\": \"Project updates\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Set group description",
          "request": {
            "method": "PUT",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/sessions/{{session}}/groups/{{groupId}}/description",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "sessions",
                "{{session}}",
                "groups",
                "{{groupId}}",
                "description"
              ],
              "query": []
            },
            "description": "Change the group description (at most 500 characters). Your linked account needs the WhatsApp permissions required by the group settings.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"description\": \"Updates for the project team.\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Set info admin-only",
          "request": {
            "method": "PUT",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/sessions/{{session}}/groups/{{groupId}}/settings/security/info-admin-only",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "sessions",
                "{{session}}",
                "groups",
                "{{groupId}}",
                "settings",
                "security",
                "info-admin-only"
              ],
              "query": []
            },
            "description": "Set adminsOnly=true to restrict group-info edits to administrators, or false to allow participants. Your linked account must have administrator permission.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"adminsOnly\": true\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Get info admin-only setting",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/sessions/{{session}}/groups/{{groupId}}/settings/security/info-admin-only",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "sessions",
                "{{session}}",
                "groups",
                "{{groupId}}",
                "settings",
                "security",
                "info-admin-only"
              ],
              "query": []
            },
            "description": "Read whether only administrators can edit group information. Use the same groupId returned by group listing or creation."
          }
        },
        {
          "name": "Set messages admin-only",
          "request": {
            "method": "PUT",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/sessions/{{session}}/groups/{{groupId}}/settings/security/messages-admin-only",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "sessions",
                "{{session}}",
                "groups",
                "{{groupId}}",
                "settings",
                "security",
                "messages-admin-only"
              ],
              "query": []
            },
            "description": "Set adminsOnly=true to restrict posting to administrators, or false to allow participants. Your linked account must have administrator permission.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"adminsOnly\": true\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Get messages admin-only setting",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/sessions/{{session}}/groups/{{groupId}}/settings/security/messages-admin-only",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "sessions",
                "{{session}}",
                "groups",
                "{{groupId}}",
                "settings",
                "security",
                "messages-admin-only"
              ],
              "query": []
            },
            "description": "Read whether only administrators can send messages to this group. Your linked account must be able to access the group."
          }
        },
        {
          "name": "Get participants",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/sessions/{{session}}/groups/{{groupId}}/participants",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "sessions",
                "{{session}}",
                "groups",
                "{{groupId}}",
                "participants"
              ],
              "query": []
            },
            "description": "List group participants. Use returned contact IDs for membership and administrator operations; check whether a participant is already present before adding them."
          }
        },
        {
          "name": "Add participants",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/sessions/{{session}}/groups/{{groupId}}/participants/add",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "sessions",
                "{{session}}",
                "groups",
                "{{groupId}}",
                "participants",
                "add"
              ],
              "query": []
            },
            "description": "Add participants using objects with an id, not plain strings. Verify phone numbers with checkContactExists first. Space out additions and avoid re-adding current participants; WhatsApp can restrict excessive changes.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"participants\": [\n    {\n      \"id\": \"15551234567@c.us\"\n    }\n  ]\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Remove participants",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/sessions/{{session}}/groups/{{groupId}}/participants/remove",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "sessions",
                "{{session}}",
                "groups",
                "{{groupId}}",
                "participants",
                "remove"
              ],
              "query": []
            },
            "description": "Remove participants using objects with an id from the group participant list. Your linked account needs administrator permission. This changes group membership.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"participants\": [\n    {\n      \"id\": \"15551234567@c.us\"\n    }\n  ]\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Promote to admin",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/sessions/{{session}}/groups/{{groupId}}/admin/promote",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "sessions",
                "{{session}}",
                "groups",
                "{{groupId}}",
                "admin",
                "promote"
              ],
              "query": []
            },
            "description": "Promote existing group participants to administrators using their contact IDs. Your linked account must have permission to manage administrators.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"participants\": [\n    {\n      \"id\": \"15551234567@c.us\"\n    }\n  ]\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Demote from admin",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/sessions/{{session}}/groups/{{groupId}}/admin/demote",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "sessions",
                "{{session}}",
                "groups",
                "{{groupId}}",
                "admin",
                "demote"
              ],
              "query": []
            },
            "description": "Remove administrator privileges from existing participants using their contact IDs. Your linked account must have permission to manage administrators.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"participants\": [\n    {\n      \"id\": \"15551234567@c.us\"\n    }\n  ]\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Get invite code",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/sessions/{{session}}/groups/{{groupId}}/invite-code",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "sessions",
                "{{session}}",
                "groups",
                "{{groupId}}",
                "invite-code"
              ],
              "query": []
            },
            "description": "Read the group invite code. Your linked account must have permission to access it. Treat invite codes as sensitive: anyone with a valid invitation may be able to join."
          }
        },
        {
          "name": "Revoke invite code",
          "request": {
            "method": "POST",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/sessions/{{session}}/groups/{{groupId}}/invite-code/revoke",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "sessions",
                "{{session}}",
                "groups",
                "{{groupId}}",
                "invite-code",
                "revoke"
              ],
              "query": []
            },
            "description": "Revoke the current group invitation and request a replacement. Previously shared invite links can stop working. Your linked account needs administrator permission."
          }
        },
        {
          "name": "Get group picture",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/sessions/{{session}}/groups/{{groupId}}/picture",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "sessions",
                "{{session}}",
                "groups",
                "{{groupId}}",
                "picture"
              ],
              "query": []
            },
            "description": "Read the group picture information available to your linked account. The response format depends on the messaging engine."
          }
        },
        {
          "name": "Set group picture",
          "request": {
            "method": "PUT",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/sessions/{{session}}/groups/{{groupId}}/picture",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "sessions",
                "{{session}}",
                "groups",
                "{{groupId}}",
                "picture"
              ],
              "query": []
            },
            "description": "Replace the group picture using file.url or base64 file.data. Your linked account needs permission and the messaging engine must support this operation.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"file\": {\n    \"url\": \"https://your-server.example/assets/image.png\",\n    \"mimetype\": \"image/png\",\n    \"filename\": \"image.png\"\n  }\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Delete group picture",
          "request": {
            "method": "DELETE",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/sessions/{{session}}/groups/{{groupId}}/picture",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "sessions",
                "{{session}}",
                "groups",
                "{{groupId}}",
                "picture"
              ],
              "query": []
            },
            "description": "Remove the group picture. Your linked account needs permission and the messaging engine must support this operation."
          }
        }
      ]
    },
    {
      "name": "Channels",
      "item": [
        {
          "name": "List channels",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/sessions/{{session}}/channels",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "sessions",
                "{{session}}",
                "channels"
              ],
              "query": []
            },
            "description": "List channels visible to your session, optionally filtered by role. Use the returned channel ID unchanged for channel-specific calls."
          }
        },
        {
          "name": "Create channel",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/sessions/{{session}}/channels",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "sessions",
                "{{session}}",
                "channels"
              ],
              "query": []
            },
            "description": "Create a WhatsApp channel with a name and optional description or picture. This changes the linked account’s channels; use the returned channel identifier for later calls.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"name\": \"Order updates\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Get channel",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/sessions/{{session}}/channels/{{channelId}}",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "sessions",
                "{{session}}",
                "channels",
                "{{channelId}}"
              ],
              "query": []
            },
            "description": "Read channel information using a channelId returned by channel listing or creation. Access depends on the linked account and WhatsApp permissions."
          }
        },
        {
          "name": "Delete channel",
          "request": {
            "method": "DELETE",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/sessions/{{session}}/channels/{{channelId}}",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "sessions",
                "{{session}}",
                "channels",
                "{{channelId}}"
              ],
              "query": []
            },
            "description": "Delete the channel identified by channelId. Your linked account must have the required WhatsApp permissions. This is destructive; verify state before retrying an uncertain result."
          }
        },
        {
          "name": "Get channel preview messages",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/sessions/{{session}}/channels/{{channelId}}/messages/preview",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "sessions",
                "{{session}}",
                "channels",
                "{{channelId}}",
                "messages",
                "preview"
              ],
              "query": [
                {
                  "key": "downloadMedia",
                  "value": "",
                  "disabled": true
                },
                {
                  "key": "limit",
                  "value": "20",
                  "disabled": true
                }
              ]
            },
            "description": "Read preview messages for a channel. Optional limit and downloadMedia query parameters are passed to the messaging engine; their engine-specific limits are not enforced by this proxy."
          }
        }
      ]
    },
    {
      "name": "Contacts",
      "item": [
        {
          "name": "Check if phone number exists on WhatsApp",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/v1/contacts/check-exists?phone=15551234567&session=me",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "contacts",
                "check-exists"
              ],
              "query": [
                {
                  "key": "phone",
                  "value": "15551234567",
                  "disabled": false
                },
                {
                  "key": "session",
                  "value": "me",
                  "disabled": false
                }
              ]
            },
            "description": "Check a phone number of 10–15 digits, including country code and without +, using your session. Unlike most endpoints, success is the unwrapped engine object: numberExists and, when available, chatId. Use the returned chatId unchanged. A lookup error does not prove the number is unregistered."
          }
        }
      ]
    }
  ]
}
