{
    "variable": [
        {
            "id": "baseUrl",
            "key": "baseUrl",
            "type": "string",
            "name": "string",
            "value": "https:\/\/stagging.digichat.digiworld-dev.com"
        }
    ],
    "info": {
        "name": "WhatsApp Business API Documentation",
        "_postman_id": "ef47c7cb-681d-4463-bfae-abff27c01a29",
        "description": "Postman collection for WhatsApp Business API",
        "schema": "https:\/\/schema.getpostman.com\/json\/collection\/v2.1.0\/collection.json"
    },
    "item": [
        {
            "name": "WhatsApp API",
            "description": "",
            "item": [
                {
                    "name": "Ping the server",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/whatsapp\/:token\/ping",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/whatsapp\/:token\/ping",
                            "variable": [
                                {
                                    "id": "token",
                                    "key": "token",
                                    "value": "architecto",
                                    "description": "Your API access token"
                                }
                            ]
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": ""
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "Server is running",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 401,
                            "body": "Invalid or expired token",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 429,
                            "body": "Too many requests",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Get session status",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/whatsapp\/:token\/status",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/whatsapp\/:token\/status",
                            "variable": [
                                {
                                    "id": "token",
                                    "key": "token",
                                    "value": "architecto",
                                    "description": "Your API access token"
                                }
                            ]
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": ""
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\n  \"success\": true,\n  \"state\": \"CONNECTED\",\n  \"message\": \"session_connected\"\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 401,
                            "body": "Invalid or expired token",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 429,
                            "body": "Too many requests",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Terminate session",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/whatsapp\/:token\/terminate",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/whatsapp\/:token\/terminate",
                            "variable": [
                                {
                                    "id": "token",
                                    "key": "token",
                                    "value": "architecto",
                                    "description": "Your API access token"
                                }
                            ]
                        },
                        "method": "POST",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": ""
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\n  \"success\": true,\n  \"message\": \"Logged out successfully\"\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 401,
                            "body": "Invalid or expired token",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 429,
                            "body": "Too many requests",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Get QR code",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/whatsapp\/:token\/qr",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/whatsapp\/:token\/qr",
                            "variable": [
                                {
                                    "id": "token",
                                    "key": "token",
                                    "value": "architecto",
                                    "description": "Your API access token"
                                }
                            ]
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": ""
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "QR code data",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 401,
                            "body": "Invalid or expired token",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 429,
                            "body": "Too many requests",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Get QR code image",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/whatsapp\/:token\/qr\/image",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/whatsapp\/:token\/qr\/image",
                            "variable": [
                                {
                                    "id": "token",
                                    "key": "token",
                                    "value": "architecto",
                                    "description": "Your API access token"
                                }
                            ]
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "image\/png"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": ""
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "image\/png",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 401,
                            "body": "Invalid or expired token",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 429,
                            "body": "Too many requests",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Send message",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/whatsapp\/:token\/sendMessage",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/whatsapp\/:token\/sendMessage",
                            "variable": [
                                {
                                    "id": "token",
                                    "key": "token",
                                    "value": "architecto",
                                    "description": "Your API access token (included in URL)."
                                }
                            ]
                        },
                        "method": "POST",
                        "header": [
                            {
                                "key": "X-API-Timestamp",
                                "value": "integer required Unix timestamp in milliseconds. Should match the client time when the request is made."
                            },
                            {
                                "key": "X-API-Signature",
                                "value": "string required HMAC-SHA256 signature of (timestamp + token + request body) using your API secret."
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            },
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"phone\":\"\\\"963912345678\\\"\",\"message\":\"\\\"Hello from our API!\\\"\"}"
                        },
                        "description": ""
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\n  \"success\": true,\n  \"message_id\": \"ABC123456\",\n  \"message\": \"Message sent successfully\"\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 400,
                            "body": "{\n  \"success\": false,\n  \"message\": \"Invalid request data\"\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 401,
                            "body": "{\n  \"success\": false,\n  \"message\": \"Invalid or expired token\"\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 429,
                            "body": "{\n  \"success\": false,\n  \"message\": \"Too many requests\"\n}",
                            "name": ""
                        }
                    ]
                }
            ]
        }
    ],
    "auth": {
        "type": "noauth"
    }
}