{
    "info": {
        "name": "Gowabox — WhatsApp API",
        "description": "Auto-generated collection. Set the collection variables base_url and api_key, then send.",
        "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
    },
    "auth": {
        "type": "bearer",
        "bearer": [
            {
                "key": "token",
                "value": "{{api_key}}",
                "type": "string"
            }
        ]
    },
    "variable": [
        {
            "key": "base_url",
            "value": "https://gowabox.com/api"
        },
        {
            "key": "api_key",
            "value": "YOUR_API_KEY"
        }
    ],
    "item": [
        {
            "name": "WABA / Numbers",
            "item": [
                {
                    "name": "List numbers",
                    "request": {
                        "method": "GET",
                        "header": [
                            {
                                "key": "Authorization",
                                "value": "Bearer {{api_key}}"
                            }
                        ],
                        "url": {
                            "raw": "{{base_url}}/v1/numbers",
                            "host": [
                                "{{base_url}}"
                            ],
                            "path": [
                                "v1",
                                "numbers"
                            ]
                        },
                        "description": "Returns the WhatsApp numbers connected to your account (phone number id, WABA id, quality rating, messaging limit)."
                    }
                }
            ]
        },
        {
            "name": "Send session message",
            "item": [
                {
                    "name": "Send text",
                    "request": {
                        "method": "POST",
                        "header": [
                            {
                                "key": "Authorization",
                                "value": "Bearer {{api_key}}"
                            },
                            {
                                "key": "Content-Type",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{base_url}}/v1/messages",
                            "host": [
                                "{{base_url}}"
                            ],
                            "path": [
                                "v1",
                                "messages"
                            ]
                        },
                        "description": "Send a plain text message. Use the Meta-compatible path /api/{version}/{phone_number_id}/messages to target a specific number, or pass account_id.",
                        "body": {
                            "mode": "raw",
                            "raw": "{\n    \"messaging_product\": \"whatsapp\",\n    \"to\": \"15551234567\",\n    \"type\": \"text\",\n    \"text\": {\n        \"body\": \"Hello from the API 👋\"\n    }\n}",
                            "options": {
                                "raw": {
                                    "language": "json"
                                }
                            }
                        }
                    }
                },
                {
                    "name": "Send media (image / video / document / audio / sticker)",
                    "request": {
                        "method": "POST",
                        "header": [
                            {
                                "key": "Authorization",
                                "value": "Bearer {{api_key}}"
                            },
                            {
                                "key": "Content-Type",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{base_url}}/v1/messages",
                            "host": [
                                "{{base_url}}"
                            ],
                            "path": [
                                "v1",
                                "messages"
                            ]
                        },
                        "description": "Send media by a library media_id, a Meta media id, or a public link.",
                        "body": {
                            "mode": "raw",
                            "raw": "{\n    \"messaging_product\": \"whatsapp\",\n    \"to\": \"15551234567\",\n    \"type\": \"image\",\n    \"image\": {\n        \"link\": \"https://example.com/pic.jpg\",\n        \"caption\": \"Our new catalogue\"\n    }\n}",
                            "options": {
                                "raw": {
                                    "language": "json"
                                }
                            }
                        }
                    }
                },
                {
                    "name": "Send location",
                    "request": {
                        "method": "POST",
                        "header": [
                            {
                                "key": "Authorization",
                                "value": "Bearer {{api_key}}"
                            },
                            {
                                "key": "Content-Type",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{base_url}}/v1/messages",
                            "host": [
                                "{{base_url}}"
                            ],
                            "path": [
                                "v1",
                                "messages"
                            ]
                        },
                        "description": "Share a map location.",
                        "body": {
                            "mode": "raw",
                            "raw": "{\n    \"messaging_product\": \"whatsapp\",\n    \"to\": \"15551234567\",\n    \"type\": \"location\",\n    \"location\": {\n        \"latitude\": 19.076,\n        \"longitude\": 72.8777,\n        \"name\": \"Our store\",\n        \"address\": \"Mumbai\"\n    }\n}",
                            "options": {
                                "raw": {
                                    "language": "json"
                                }
                            }
                        }
                    }
                },
                {
                    "name": "Send interactive (buttons / list)",
                    "request": {
                        "method": "POST",
                        "header": [
                            {
                                "key": "Authorization",
                                "value": "Bearer {{api_key}}"
                            },
                            {
                                "key": "Content-Type",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{base_url}}/v1/messages",
                            "host": [
                                "{{base_url}}"
                            ],
                            "path": [
                                "v1",
                                "messages"
                            ]
                        },
                        "description": "Reply buttons or a list message.",
                        "body": {
                            "mode": "raw",
                            "raw": "{\n    \"messaging_product\": \"whatsapp\",\n    \"to\": \"15551234567\",\n    \"type\": \"interactive\",\n    \"interactive\": {\n        \"type\": \"button\",\n        \"body\": {\n            \"text\": \"Pick an option\"\n        },\n        \"action\": {\n            \"buttons\": [\n                {\n                    \"type\": \"reply\",\n                    \"reply\": {\n                        \"id\": \"b1\",\n                        \"title\": \"Track order\"\n                    }\n                },\n                {\n                    \"type\": \"reply\",\n                    \"reply\": {\n                        \"id\": \"b2\",\n                        \"title\": \"Talk to agent\"\n                    }\n                }\n            ]\n        }\n    }\n}",
                            "options": {
                                "raw": {
                                    "language": "json"
                                }
                            }
                        }
                    }
                },
                {
                    "name": "Send reaction",
                    "request": {
                        "method": "POST",
                        "header": [
                            {
                                "key": "Authorization",
                                "value": "Bearer {{api_key}}"
                            },
                            {
                                "key": "Content-Type",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{base_url}}/v1/messages",
                            "host": [
                                "{{base_url}}"
                            ],
                            "path": [
                                "v1",
                                "messages"
                            ]
                        },
                        "description": "React to a message you received (by its wamid).",
                        "body": {
                            "mode": "raw",
                            "raw": "{\n    \"messaging_product\": \"whatsapp\",\n    \"to\": \"15551234567\",\n    \"type\": \"reaction\",\n    \"reaction\": {\n        \"message_id\": \"wamid.HBg…\",\n        \"emoji\": \"👍\"\n    }\n}",
                            "options": {
                                "raw": {
                                    "language": "json"
                                }
                            }
                        }
                    }
                }
            ]
        },
        {
            "name": "Send template message",
            "item": [
                {
                    "name": "Send template",
                    "request": {
                        "method": "POST",
                        "header": [
                            {
                                "key": "Authorization",
                                "value": "Bearer {{api_key}}"
                            },
                            {
                                "key": "Content-Type",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{base_url}}/v1/messages",
                            "host": [
                                "{{base_url}}"
                            ],
                            "path": [
                                "v1",
                                "messages"
                            ]
                        },
                        "description": "Send an approved template. Simple: template name + variables[]. Meta: template.{name,language,components}.",
                        "body": {
                            "mode": "raw",
                            "raw": "{\n    \"messaging_product\": \"whatsapp\",\n    \"to\": \"15551234567\",\n    \"type\": \"template\",\n    \"template\": {\n        \"name\": \"order_update\",\n        \"language\": {\n            \"code\": \"en_US\"\n        },\n        \"components\": [\n            {\n                \"type\": \"body\",\n                \"parameters\": [\n                    {\n                        \"type\": \"text\",\n                        \"text\": \"Rahul\"\n                    },\n                    {\n                        \"type\": \"text\",\n                        \"text\": \"#4821\"\n                    },\n                    {\n                        \"type\": \"text\",\n                        \"text\": \"shipped\"\n                    }\n                ]\n            }\n        ]\n    }\n}",
                            "options": {
                                "raw": {
                                    "language": "json"
                                }
                            }
                        }
                    }
                }
            ]
        },
        {
            "name": "Template management",
            "item": [
                {
                    "name": "List templates",
                    "request": {
                        "method": "GET",
                        "header": [
                            {
                                "key": "Authorization",
                                "value": "Bearer {{api_key}}"
                            }
                        ],
                        "url": {
                            "raw": "{{base_url}}/v1/templates",
                            "host": [
                                "{{base_url}}"
                            ],
                            "path": [
                                "v1",
                                "templates"
                            ],
                            "query": [
                                {
                                    "key": "account_id",
                                    "value": "",
                                    "description": "Target a specific number (optional)."
                                }
                            ]
                        },
                        "description": "Approved + enabled templates you can send on the selected number."
                    }
                }
            ]
        },
        {
            "name": "Media management",
            "item": [
                {
                    "name": "Upload media",
                    "request": {
                        "method": "POST",
                        "header": [
                            {
                                "key": "Authorization",
                                "value": "Bearer {{api_key}}"
                            }
                        ],
                        "url": {
                            "raw": "{{base_url}}/v1/media",
                            "host": [
                                "{{base_url}}"
                            ],
                            "path": [
                                "v1",
                                "media"
                            ]
                        },
                        "description": "multipart/form-data with a \"file\" field. Returns a library id + Meta media_id usable in sends.",
                        "body": {
                            "mode": "formdata",
                            "formdata": [
                                {
                                    "key": "file",
                                    "type": "file",
                                    "src": []
                                }
                            ]
                        }
                    }
                },
                {
                    "name": "Get media URL from media id",
                    "request": {
                        "method": "GET",
                        "header": [
                            {
                                "key": "Authorization",
                                "value": "Bearer {{api_key}}"
                            }
                        ],
                        "url": {
                            "raw": "{{base_url}}/v1/media/{id}",
                            "host": [
                                "{{base_url}}"
                            ],
                            "path": [
                                "v1",
                                "media",
                                "{id}"
                            ]
                        },
                        "description": "{id} is a library id or a Meta media id (as received in a webhook). Returns a short-lived CDN URL."
                    }
                }
            ]
        },
        {
            "name": "Contacts",
            "item": [
                {
                    "name": "List contacts",
                    "request": {
                        "method": "GET",
                        "header": [
                            {
                                "key": "Authorization",
                                "value": "Bearer {{api_key}}"
                            }
                        ],
                        "url": {
                            "raw": "{{base_url}}/v1/contacts",
                            "host": [
                                "{{base_url}}"
                            ],
                            "path": [
                                "v1",
                                "contacts"
                            ],
                            "query": [
                                {
                                    "key": "limit",
                                    "value": "",
                                    "description": "1–200, default 50."
                                },
                                {
                                    "key": "offset",
                                    "value": "",
                                    "description": "Pagination offset."
                                },
                                {
                                    "key": "account_id",
                                    "value": "",
                                    "description": "Target number (optional)."
                                }
                            ]
                        },
                        "description": "Saved contacts on the selected number."
                    }
                },
                {
                    "name": "Create contact",
                    "request": {
                        "method": "POST",
                        "header": [
                            {
                                "key": "Authorization",
                                "value": "Bearer {{api_key}}"
                            },
                            {
                                "key": "Content-Type",
                                "value": "application/json"
                            }
                        ],
                        "url": {
                            "raw": "{{base_url}}/v1/contacts",
                            "host": [
                                "{{base_url}}"
                            ],
                            "path": [
                                "v1",
                                "contacts"
                            ]
                        },
                        "description": "Create (or fetch) a contact by number.",
                        "body": {
                            "mode": "raw",
                            "raw": "{\n    \"number\": \"15551234567\",\n    \"name\": \"Rahul Sharma\"\n}",
                            "options": {
                                "raw": {
                                    "language": "json"
                                }
                            }
                        }
                    }
                }
            ]
        },
        {
            "name": "Delivery reports",
            "item": [
                {
                    "name": "Get message status",
                    "request": {
                        "method": "GET",
                        "header": [
                            {
                                "key": "Authorization",
                                "value": "Bearer {{api_key}}"
                            }
                        ],
                        "url": {
                            "raw": "{{base_url}}/v1/messages/{id}",
                            "host": [
                                "{{base_url}}"
                            ],
                            "path": [
                                "v1",
                                "messages",
                                "{id}"
                            ]
                        },
                        "description": "{id} is the numeric message id returned when you sent it."
                    }
                }
            ]
        }
    ]
}