{
    "variable": [
        {
            "id": "baseUrl",
            "key": "baseUrl",
            "type": "string",
            "name": "string",
            "value": "https:\/\/verifiedglobalsms.com"
        }
    ],
    "info": {
        "name": "VerifiedGlobalSms API Documentation",
        "_postman_id": "42ec2620-d4c4-4ad9-88eb-cd588e47da8e",
        "description": "Welcome to VerifiedGlobalSms API Documentation. This API is designed to help you get started with using VerifiedGlobalSms services.",
        "schema": "https:\/\/schema.getpostman.com\/json\/collection\/v2.1.0\/collection.json"
    },
    "item": [
        {
            "name": "User API",
            "description": "\nAPIs for managing SMS activations programmatically via Smspool.net integration.",
            "item": [
                {
                    "name": "Get Balance",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/v1\/user\/balance",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/v1\/user\/balance"
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": "Returns the current wallet balance of the user in Naira (\u20a6)."
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\n \"status\": \"success\",\n \"balance\": 5000.00,\n \"currency\": \"NGN\"\n}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "List Countries",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/v1\/activations\/countries",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/v1\/activations\/countries"
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": "Returns a list of all Smspool countries and their codes."
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\n \"status\": \"success\",\n \"countries\": [\n   {\"ID\": \"1\", \"name\": \"Afghanistan\"},\n   {\"ID\": \"2\", \"name\": \"Albania\"}\n ]\n}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "List Services",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/v1\/activations\/services",
                            "query": [
                                {
                                    "key": "country",
                                    "value": "1",
                                    "description": "The country code or ID.",
                                    "disabled": false
                                }
                            ],
                            "raw": "{{baseUrl}}\/api\/v1\/activations\/services?country=1"
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": "Returns available services for a specific country with Naira prices."
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\n \"status\": \"success\",\n \"services\": [\n   {\n     \"name\": \"WhatsApp\",\n     \"ID\": \"whatsapp\",\n     \"price\": 250.00,\n     \"currency\": \"NGN\"\n   }\n ]\n}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Get Price",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/v1\/activations\/prices",
                            "query": [
                                {
                                    "key": "country",
                                    "value": "1",
                                    "description": "The country ID.",
                                    "disabled": false
                                },
                                {
                                    "key": "service",
                                    "value": "google",
                                    "description": "The service ID.",
                                    "disabled": false
                                }
                            ],
                            "raw": "{{baseUrl}}\/api\/v1\/activations\/prices?country=1&service=google"
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": "Get price for a specific service in a country in Naira (\u20a6).",
                        "auth": {
                            "type": "noauth"
                        }
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\n \"status\": \"success\",\n \"price\": 350.00,\n \"currency\": \"NGN\"\n}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Purchase Number",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/v1\/activations\/purchase",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/v1\/activations\/purchase"
                        },
                        "method": "POST",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"service\":\"google\",\"country\":\"1\"}"
                        },
                        "description": "Requests a new phone number for a specific service and country via Smspool."
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 201,
                            "body": "{\n \"status\": \"success\",\n \"message\": \"Number purchased successfully\",\n \"activation\": {\n   \"id\": 123,\n   \"order_id\": \"ABC123\",\n   \"phone_number\": \"+2348012345678\",\n   \"service\": \"google\",\n   \"country\": \"1\",\n   \"cost\": 350.00,\n   \"status\": \"active\",\n   \"expires_at\": \"2024-02-07T19:20:46Z\"\n }\n}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Get Activation Status",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/v1\/activations\/:id",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/v1\/activations\/:id",
                            "variable": [
                                {
                                    "id": "id",
                                    "key": "id",
                                    "value": "123",
                                    "description": "The internal activation ID."
                                }
                            ]
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": "Retrieves the current status of an activation, including the SMS code if received."
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\n \"status\": \"success\",\n \"activation\": {\n   \"id\": 123,\n   \"order_id\": \"ABC123\",\n   \"status\": \"completed\",\n   \"sms_code\": \"123456\",\n   \"phone_number\": \"+2348012345678\",\n   \"expires_at\": \"2024-02-07T19:20:46Z\",\n   \"updated_at\": \"2024-02-07 19:15:46\"\n }\n}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Cancel Activation",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/v1\/activations\/:id\/cancel",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/v1\/activations\/:id\/cancel",
                            "variable": [
                                {
                                    "id": "id",
                                    "key": "id",
                                    "value": "123",
                                    "description": "The internal activation ID."
                                }
                            ]
                        },
                        "method": "POST",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": "Cancels a pending activation and refunds the cost."
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\n \"status\": \"success\",\n \"message\": \"Activation cancelled successfully\",\n \"new_balance\": 5350.00\n}",
                            "name": ""
                        }
                    ]
                }
            ]
        }
    ],
    "auth": {
        "type": "bearer",
        "bearer": [
            {
                "key": "key",
                "type": "string"
            }
        ]
    }
}