How to connect the WhatsApp Business API in Postman
Postman is the fastest way to prove your WhatsApp Business API integration works before you write a single line of production code. In about ten minutes you can send a real template message to your own phone, inspect the exact JSON that comes back, and learn the request shape your app will later reuse. This guide walks through calling InfiQ's API: creating an API key, setting the right headers, calling the /v1/messages endpoint with the same body Meta's Cloud API accepts, and reading the response so you know it really went through.
What you'll do
Create a Postman request to InfiQ's POST https://api.infiq.in/v1/messages, add your InfiQ API key in the X-INFIQ-API-KEY header, send a pre-approved template as JSON (the same body Meta's Cloud API takes), and confirm the message ID and InfiQ_traceid in the 200 response.10:24
Step 1 — Prepare your API key in InfiQ
Before Postman can send anything, you need an InfiQ API key and a couple of test details. Your WhatsApp Business Account is already connected to InfiQ through Embedded Signup, and InfiQ holds the Meta credentials for it, so there is no Meta token, phone number ID or Graph API version to copy. Your InfiQ API key is all Postman needs to authenticate. Gather these before opening Postman so you don't have to switch back and forth mid-request.
- InfiQ API key — create one in the InfiQ dashboard. Sandbox keys start isk_test_ and live keys isk_live_; treat either like a password and never commit it to a repo.
- A test recipient — your own WhatsApp number in full international format (e.g. 919876543210, no +, no spaces), which must have opted in.
- One approved template — for a first send, use hello_world or any template already approved in your InfiQ account.
- Optional: import https://www.infiq.in/openapi.yaml into Postman to get every request and example ready-made.
Step 2 — Build the request in Postman
Create a new request in Postman and set the method to POST. The URL is https://api.infiq.in/v1/messages: one URL for every message type, with no phone number ID or version in the path. Authentication is a single header carrying your InfiQ API key. Getting the headers exactly right is where most first attempts fail, so double-check them before sending.
- Method: POST — the /v1/messages endpoint only accepts POST.
- Header X-INFIQ-API-KEY: YOUR_API_KEY — the key from Step 1, no quotes and no 'Bearer' prefix.
- Header Content-Type: application/json — without this, Postman may send form data and the body is rejected.
- Optional header Idempotency-Key: any unique value per send, so a retried request never sends the message twice.
- Tip: store the key as a Postman environment variable ({{infiq_key}}) so you never paste secrets into shared requests.
Step 3 — Send a template message as JSON
In the Body tab choose 'raw' and select JSON, then paste the message payload. InfiQ's /v1/messages accepts exactly the body Meta's Cloud API documents and forwards it to WhatsApp. WhatsApp only lets you message someone first with an approved template — free-form text is reserved for the 24-hour service window that opens after a customer messages you. So your first Postman call must be a template. The minimal payload for the hello_world template looks like the block below; swap in your recipient number and, for your own templates, the correct template name and language code.
- { "messaging_product": "whatsapp", "to": "919876543210", "type": "template", "template": { "name": "hello_world", "language": { "code": "en_US" } } }
- messaging_product must always be the literal string 'whatsapp' — omitting it is a common cause of a 400 error.
- 'to' is the recipient in international format with no plus sign.
- For your own templates, match the exact name and language code shown in InfiQ template management, and add a 'components' array if the template has variables.
Step 4 — Send, read the response, and confirm delivery
Click Send. A successful call returns HTTP 200 with Meta's response unchanged — a contacts array and a messages array — plus an InfiQ_traceid. The message ID inside (a wamid.HBg... string) is your proof that the message was accepted, and the trace ID is what InfiQ support needs to find the exact request. Acceptance is not the same as delivery: the 200 means WhatsApp queued the message, while delivered and read statuses arrive later as signed InfiQ webhooks. For a quick manual test, just watch your own phone. Note that this send is a billable event — Meta charges per delivered message by category (marketing, utility, or authentication), and InfiQ bills that on transparent ₹ pricing tied to Meta's live rate card, ex-GST.
- 200 OK with a wamid message ID = request accepted and queued.
- Keep the InfiQ_traceid: quote it to InfiQ support if anything looks wrong.
- Check the recipient phone to confirm the template actually arrives.
- Delivery and read updates arrive as message.delivered and message.read webhooks, not in the Postman response.
- A single template send counts as one billable delivered message in its category once WhatsApp delivers it.
Common errors and how to fix them
When a request fails, Postman shows a non-200 status and the body carries an error object with a code and message. Errors from WhatsApp itself come through unchanged, so they mean exactly what Meta documents, and every response carries an InfiQ_traceid. The vast majority of first-time failures come from a missing or wrong API key, a recipient who hasn't opted in, or a template that isn't approved. Work through the checklist below against the error message before you change anything else.
- 401 — the X-INFIQ-API-KEY header is missing, mistyped or the key was revoked; check the header and create a new key if needed.
- 400 with 'template name does not exist' — the name or language code doesn't match an approved template exactly (it's case-sensitive).
- 131047 / re-engagement message — you tried to send free-form text outside the 24-hour service window; use a template instead.
- A sandbox key (isk_test_) used where you expected a live send — switch to your live key.
- No error but nothing arrives — the recipient hasn't opted in, or their number format includes a + or leading zeros.
Frequently asked questions
Do I need the WhatsApp API before I can use Postman?+
Why does my first message have to be a template?+
Do I need a Graph API version or phone number ID in the URL?+
Where do I find my API key?+
Does sending a test message from Postman cost money?+
The response says 200 but the message never arrived — why?+
Do I need to be a developer to do this?+
Can I test receiving messages and webhooks in Postman too?+
Ready to move from Postman to production?
Get your WhatsApp number connected, your API key created and your templates approved with InfiQ's India-based team, so your first live message is only minutes away.