Skip to content
Meta Business PartnerStep-by-step guide

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.

POST https://api.infiq.in/v1/messages
Endpoint
X-INFIQ-API-KEY header with your InfiQ API key
Auth
Must be an approved template
First message
200 OK with a wamid message ID
Success signal
Per delivered message by category, ₹ ex-GST
Billing
About 10 minutes
Time to first send

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.
Utility

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.

Do this in InfiQ now

Frequently asked questions

Do I need the WhatsApp API before I can use Postman?+
Yes. Postman is only a client for testing requests — the account, number and approval all live on the WhatsApp Business API. Once your WhatsApp Business Account is connected to InfiQ, you create an API key in the InfiQ dashboard and Postman is ready. There's nothing to set up on Meta's side yourself.
Why does my first message have to be a template?+
WhatsApp only allows business-initiated conversations through pre-approved templates. Free-form text messaging is reserved for the 24-hour service window that opens after a customer messages you first. So a cold outbound test from Postman must use an approved template such as hello_world — otherwise Meta returns a re-engagement error (code 131047).
Do I need a Graph API version or phone number ID in the URL?+
No. InfiQ's API has its own version in the path (/v1), and your API key identifies your account, so the URL is always https://api.infiq.in/v1/messages. Keeping up with Meta's Graph API versions is InfiQ's job, not something you change in your requests.
Where do I find my API key?+
Create it in the InfiQ dashboard. Sandbox keys (isk_test_…) are for building and testing, live keys (isk_live_…) send real messages, and you can rotate or revoke a key at any time. Store it in a Postman environment variable rather than pasting it into shared requests.
Does sending a test message from Postman cost money?+
Once a template is delivered, yes — Meta bills per delivered message by category (marketing, utility, or authentication), and InfiQ passes that through on transparent ₹ pricing, ex-GST. A single test send is a small cost, but it's a real billable message, not a free simulation.
The response says 200 but the message never arrived — why?+
A 200 means WhatsApp accepted and queued the request, not that it was delivered. Common causes of non-delivery are a recipient who hasn't opted in, a phone number formatted with a + or leading zeros, or a number not on your allowed list during unverified testing. Delivery and read status show up on your webhook, not in the Postman response.
Do I need to be a developer to do this?+
For everyday messaging inside InfiQ you don't need code at all — the platform is no-code. Postman is aimed at developers who want to test the raw API before building an integration. If you just want to send campaigns or set up automations, you can skip Postman entirely and use the InfiQ dashboard.
Can I test receiving messages and webhooks in Postman too?+
Postman is best for outbound calls you initiate, like sending messages. Inbound events — delivery receipts, read status and customer replies — are pushed by InfiQ to the webhook endpoint you register in the dashboard, signed with X-InfiQ-Signature. To check your endpoint, fire a signed test event from the dashboard or with POST /webhooks/test, and inspect what arrives.

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.