{
    "variable": [
        {
            "id": "baseUrl",
            "key": "baseUrl",
            "type": "string",
            "name": "string",
            "value": "https:\/\/kurismsverify.com"
        }
    ],
    "info": {
        "name": "KuriSmsverify API Documentation",
        "_postman_id": "21684b96-75e6-4fe4-bd5c-8100a489f0f0",
        "description": "Welcome to KuriSmsVerify API Documentation. This API is designed to help you get started with using KuriSmsVerify services.",
        "schema": "https:\/\/schema.getpostman.com\/json\/collection\/v2.1.0\/collection.json"
    },
    "item": [
        {
            "name": "User API",
            "description": "\nAPIs for managing SMS activations programmatically.",
            "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."
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\n \"status\": \"success\",\n \"balance\": 150.50,\n \"currency\": \"USD\"\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 enabled countries and their codes."
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\n \"status\": \"success\",\n \"countries\": {\n   \"nigeria\": \"Nigeria\",\n   \"russia\": \"Russia\",\n   \"usa\": \"USA\"\n }\n}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "List Services",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/v1\/activations\/services",
                            "query": [
                                {
                                    "key": "country",
                                    "value": "nigeria",
                                    "description": "The country code (e.g., 'nigeria').",
                                    "disabled": false
                                }
                            ],
                            "raw": "{{baseUrl}}\/api\/v1\/activations\/services?country=nigeria"
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": "Returns available services. If country is provided, it returns services available in that specific country."
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\n \"status\": \"success\",\n \"services\": {\n   \"google\": \"Google\",\n   \"facebook\": \"Facebook\",\n   \"whatsapp\": \"WhatsApp\"\n }\n}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Get Prices",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/v1\/activations\/prices",
                            "query": [
                                {
                                    "key": "country",
                                    "value": "nigeria",
                                    "description": "The country code.",
                                    "disabled": false
                                },
                                {
                                    "key": "service",
                                    "value": "google",
                                    "description": "The service code.",
                                    "disabled": false
                                }
                            ],
                            "raw": "{{baseUrl}}\/api\/v1\/activations\/prices?country=nigeria&service=google"
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": "Get prices for a country or a specific service in a country.",
                        "auth": {
                            "type": "noauth"
                        }
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\n \"status\": \"success\",\n \"price\": 0.50\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\":\"nigeria\"}"
                        },
                        "description": "Requests a new phone number for a specific service and country."
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 201,
                            "body": "{\n \"status\": \"success\",\n \"message\": \"Number purchased successfully\",\n \"activation\": {\n   \"id\": 123,\n   \"phone_number\": \"+2348012345678\",\n   \"service\": \"google\",\n   \"country\": \"nigeria\",\n   \"cost\": 0.50,\n   \"status\": \"pending\"\n }\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 400,
                            "body": "{\n \"status\": \"error\",\n \"message\": \"Insufficient balance\"\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 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   \"status\": \"received\",\n   \"sms_code\": \"123456\",\n   \"phone_number\": \"+2348012345678\",\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 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 to the user's wallet."
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\n \"status\": \"success\",\n \"message\": \"Activation cancelled successfully\",\n \"new_balance\": 150.50\n}",
                            "name": ""
                        }
                    ]
                }
            ]
        }
    ],
    "auth": {
        "type": "bearer",
        "bearer": [
            {
                "key": "key",
                "type": "string"
            }
        ]
    }
}