{ "info": { "name": "User verification API (2FA)", "description": "API used to verify a user by code.", "version": "0.1", "schema": "https:\/\/schema.getpostman.com\/json\/collection\/v2.1.0\/collection.json" }, "item": [ { "name": "Request access token", "description": "The OAuth2 request.", "request": { "url": { "raw": "https:\/\/api.chenosis.io\/oauth\/client\/accesstoken?grant_type=client_credentials", "protocol": "https", "host": [ "api", "chenosis", "io" ], "path": [ "oauth", "client", "accesstoken" ], "query": [ { "key": "grant_type", "value": "client_credentials", "equals": true, "type": "string", "description": "" } ] }, "method": "POST", "header": [ { "key": "Content-Type", "name": "Content-Type", "value": "application\/x-www-form-urlencoded", "type": "application\/x-www-form-urlencoded", "description": "" } ], "body": { "mode": "urlencoded", "details": [ { "key": "client_id", "description": "The client id fromt your app.", "value": "xxxxxxxxxxxxxxx", "required": 1, "type": "string" }, { "key": "client_secret", "description": "The client secret fromt your app.", "value": "xxxxxxxxxxxxxxx", "required": 1, "type": "string" } ], "body": { "details": [ { "key": "client_id", "description": "The client id fromt your app.", "value": "xxxxxxxxxxxxxxx", "required": 1, "type": "string" }, { "key": "client_secret", "description": "The client secret fromt your app.", "value": "xxxxxxxxxxxxxxx", "required": 1, "type": "string" } ] }, "urlencoded": [ { "key": "client_id", "description": "The client id fromt your app.", "value": "xxxxxxxxxxxxxxx", "required": 1, "type": "string" }, { "key": "client_secret", "description": "The client secret fromt your app.", "value": "xxxxxxxxxxxxxxx", "required": 1, "type": "string" } ], "query": [ { "key": "grant_type", "value": "client_credentials", "equals": true, "type": "string", "description": "" } ] }, "code": { "curl": "
\ncurl --location --request POST 'https:\/\/api.chenosis.io\/oauth\/client\/accesstoken?grant_type=client_credentials'\n    --header 'Authorization: token \/\/ https:\/\/api.chenosis.io\/oauth\/client\/accesstoken?grant_type=client_credentials'\n    --header 'Content-Type: application\/x-www-form-urlencoded'\n    --data-raw '{\n        \"client_id\": \"xxxxxxxxxxxxxxx\",\n        \"client_secret\": \"xxxxxxxxxxxxxxx\",\n    }'\n<\/code><\/pre>"
                },
                "description": "Get the oAuth2 token"
            },
            "response": [
                {
                    "code": 200,
                    "status": "OK",
                    "name": "Token Created",
                    "schema": {
                        "refresh_token_expires_in": {
                            "type": "string",
                            "description": "When the token will expire",
                            "example": "0"
                        },
                        "api_product_list": {
                            "type": "string",
                            "description": "The products associated",
                            "example": "[product_verify_experience]"
                        },
                        "api_product_list_json": {
                            "type": "json",
                            "description": "The products associated",
                            "example": [
                                "product_verify_experience"
                            ]
                        },
                        "organization_name": {
                            "type": "string",
                            "description": "The organisation that is beign called against",
                            "example": "prod"
                        },
                        "developer.email": {
                            "type": "string",
                            "description": "The developer email",
                            "example": "name@domain.com"
                        },
                        "token_type": {
                            "type": "string",
                            "description": "The type of authorization",
                            "example": "BearerToken"
                        },
                        "issued_at": {
                            "type": "string",
                            "description": "When the token was issued",
                            "example": "1617003906435"
                        },
                        "client_id": {
                            "type": "string",
                            "description": "The Client ID from the app",
                            "example": "HJFGT565435GGh87qi6n88zstxiL26BG"
                        },
                        "access_token": {
                            "type": "string",
                            "description": "The Client Secret from the app",
                            "example": "wwNJdSTHF54RD476HMI8plZuwLp3"
                        },
                        "application_name": {
                            "type": "string",
                            "description": "The application ID",
                            "example": "7879798543g-98jh-6yg5-7876-876hg5df4sd2"
                        },
                        "scope": {
                            "type": "string",
                            "description": "What scope has been applied",
                            "example": "USER-VERIFICATION"
                        },
                        "expires_in": {
                            "type": "string",
                            "description": "When the token will expire",
                            "example": "3599"
                        },
                        "refresh_count": {
                            "type": "string",
                            "description": "How many refreshes available",
                            "example": "0"
                        },
                        "status": {
                            "type": "string",
                            "description": "The status of the request",
                            "example": "approved"
                        }
                    },
                    "body": "{\"refresh_token_expires_in\": \"0\", \"api_product_list\": \"[product_verify_experience]\", \"api_product_list_json\": [\"product_verify_experience\"], \"organization_name\": \"prod\", \"developer.email\": \"name@domain.com\", \"token_type\": \"BearerToken\", \"issued_at\": \"1617003906435\", \"client_id\": \"HJFGT565435GGh87qi6n88zstxiL26BG\", \"access_token\": \"wwNJdSTHF54RD476HMI8plZuwLp3\", \"application_name\": \"7879798543g-98jh-6yg5-7876-876hg5df4sd2\", \"scope\": \"USER-VERIFICATION\", \"expires_in\": \"3599\", \"refresh_count\": \"0\", \"status\": \"approved\"}",
                    "header": [
                        {
                            "key": "Content-Type",
                            "value": "application\/x-www-form-urlencoded",
                            "description": "Sending as url encoded",
                            "type": "string"
                        }
                    ]
                }
            ]
        },
        {
            "name": "This operation is used to send a verification to the end-user",
            "description": "This interface is used to send a verification to the end-user by specifying the communication details of the end-ser.",
            "request": {
                "auth": {
                    "type": "oauth2",
                    "oauth2": [
                        {
                            "key": "addTokenTo",
                            "value": "header",
                            "type": "string"
                        }
                    ]
                },
                "method": "Post",
                "header": [
                    {
                        "key": "Content-Type",
                        "name": "Content-Type",
                        "value": "application\/json",
                        "type": "application\/json",
                        "description": ""
                    }
                ],
                "url": {
                    "raw": "api.chenosis.io\/verify\/v1\/identity\/verification",
                    "protocol": "https",
                    "host": [
                        "api",
                        "chenosis",
                        "io"
                    ],
                    "path": [
                        "verify",
                        "v1",
                        "identity",
                        "verification"
                    ]
                },
                "code": {
                    "curl": "
\ncurl --location --request POST 'https:\/\/api.chenosis.io\/verify\/v1\/identity\/verification'\n    --header 'Authorization: token \/\/ https:\/\/api.chenosis.io\/oauth\/client\/accesstoken?grant_type=client_credentials'\n    --header 'Content-Type: application\/json'\n    --data-raw '{\n        \"to\": \"string\",\n        \"channel\": \"string\",\n        \"locale\": \"string\",\n    }'\n<\/code><\/pre>"
                },
                "body": {
                    "details": [
                        {
                            "key": "to",
                            "value": "",
                            "description": "Address of the end-user. If the 'channel' used is 'sms' or 'call' the value is the MSISDN\/phone number of the end-user represented as International  ITU-T E.164. If the 'channel' is email, the value would be the email address of the end-user.",
                            "required": 1,
                            "type": "string"
                        },
                        {
                            "key": "channel",
                            "value": "",
                            "description": "This field is used to set\/indicate the channel used to send the verification code to the end-user.\n The value 'sms' means the verification is sent to the user using an SMS message.\n The value 'call' means the verification is sent to the user via a phone call made to the end-ser.\n The value 'email' means the verification is sent to the user using an email message. - sms, call, email",
                            "required": 0,
                            "type": "string"
                        },
                        {
                            "key": "locale",
                            "value": "",
                            "description": "This field is used to set\/indicate the the language\/locale used when sending the verification code to the end-user. Default is English (en) - af, ar, ca, cs, da, de, el, en, en-GB, es, fi, fr, he, hi, hr, hu, id, it, ja, ko, ms, nb, nl, pl, pt, pr-BR, ro, ru, sv, th, tl, tr, vi, zh, zh-CN, zh-HK",
                            "required": 0,
                            "type": "string"
                        }
                    ],
                    "mode": "raw",
                    "raw": "{\n    \"to\": \"\",\n    \"channel\": \"\",\n    \"locale\": \"\"\n}"
                }
            },
            "response": [
                {
                    "code": 201,
                    "status": "Created",
                    "name": "Outbound SMS created",
                    "schema": {
                        "statusCode": {
                            "type": "string",
                            "description": "HTTP error code extension",
                            "example": "0000"
                        },
                        "statusMessage": {
                            "type": "string",
                            "description": "Message.",
                            "example": "Successful"
                        },
                        "data": {
                            "to": {
                                "type": "string",
                                "description": "Address of the end-user. If the 'channel' used is 'sms' or 'call' the value is the MSISDN\/phone number of the end-user represented as International  ITU-T E.164. If the 'channel' is email, the value would be the email address of the end-user.",
                                "example": "27123456789"
                            },
                            "channel": {
                                "type": "string",
                                "default": "",
                                "description": "sms,call,email"
                            },
                            "verificationId": {
                                "type": "string",
                                "description": "Unique identifier for the verification, this value will be used to query the status of the verification."
                            },
                            "status": {
                                "type": "string",
                                "default": "",
                                "description": "approved,pending,expired,cancelled"
                            }
                        },
                        "transactionId": {
                            "type": "string",
                            "description": "transaction ID for tracing.",
                            "example": "fdsf4545-sdfd5-sds"
                        }
                    },
                    "body": "{\"statusCode\":\"string\",\"statusMessage\":\"string\",\"data\":{\"to\":\"string\",\"channel\":\"string\",\"verificationId\":\"string\",\"status\":\"string\"},\"transactionId\":\"string\"}",
                    "header": {
                        "fee": {
                            "type": "string",
                            "description": "Associated cost of creating the verification"
                        },
                        "0": {
                            "key": "Content-Type",
                            "value": "application\/json",
                            "description": "Sending as JSON",
                            "type": "string"
                        }
                    }
                },
                {
                    "code": 401,
                    "status": "Unauthorized",
                    "name": "Not authenticated",
                    "schema": {
                        "statusCode": {
                            "type": "string",
                            "description": "HTTP error code extension"
                        },
                        "statusMessage": {
                            "type": "string",
                            "description": "More details and corrective actions related to the error which can be shown to a client."
                        },
                        "SupportMessage": {
                            "type": "string",
                            "description": "Support Message"
                        }
                    },
                    "body": "{\"statusCode\":\"string\",\"statusMessage\":\"string\",\"SupportMessage\":\"string\"}",
                    "header": [
                        {
                            "key": "Content-Type",
                            "value": "application\/json",
                            "description": "Sending as JSON",
                            "type": "string"
                        }
                    ]
                },
                {
                    "code": 404,
                    "status": "Not Found",
                    "name": "Not found",
                    "schema": {
                        "statusCode": {
                            "type": "string",
                            "description": "HTTP error code extension"
                        },
                        "statusMessage": {
                            "type": "string",
                            "description": "More details and corrective actions related to the error which can be shown to a client."
                        },
                        "SupportMessage": {
                            "type": "string",
                            "description": "Support Message"
                        }
                    },
                    "body": "{\"statusCode\":\"string\",\"statusMessage\":\"string\",\"SupportMessage\":\"string\"}",
                    "header": [
                        {
                            "key": "Content-Type",
                            "value": "application\/json",
                            "description": "Sending as JSON",
                            "type": "string"
                        }
                    ]
                },
                {
                    "code": 407,
                    "status": "Proxy Authentication Required",
                    "name": "Proxy system not authenticated",
                    "schema": {
                        "statusCode": {
                            "type": "string",
                            "description": "HTTP error code extension"
                        },
                        "statusMessage": {
                            "type": "string",
                            "description": "More details and corrective actions related to the error which can be shown to a client."
                        },
                        "SupportMessage": {
                            "type": "string",
                            "description": "Support Message"
                        }
                    },
                    "body": "{\"statusCode\":\"string\",\"statusMessage\":\"string\",\"SupportMessage\":\"string\"}",
                    "header": [
                        {
                            "key": "Content-Type",
                            "value": "application\/json",
                            "description": "Sending as JSON",
                            "type": "string"
                        }
                    ]
                },
                {
                    "code": 500,
                    "status": "Internal Server Error",
                    "name": "Internal Server Error",
                    "schema": {
                        "timestamp": {
                            "type": "string",
                            "description": "Timestamp",
                            "example": "2020-10-14T22:57:24.519+0000"
                        },
                        "status": {
                            "type": "string",
                            "description": "HTTP error code extension",
                            "example": "500"
                        },
                        "error": {
                            "type": "string",
                            "description": "Support Message",
                            "example": "Internal Server Error"
                        },
                        "message": {
                            "type": "string",
                            "description": "Support Message",
                            "example": "value"
                        },
                        "path": {
                            "type": "string",
                            "description": "Path accessed",
                            "example": "\/v1\/identity\/verification"
                        }
                    },
                    "body": "{\"timestamp\":\"string\",\"status\":\"string\",\"error\":\"string\",\"message\":\"string\",\"path\":\"string\"}",
                    "header": [
                        {
                            "key": "Content-Type",
                            "value": "application\/json",
                            "description": "Sending as JSON",
                            "type": "string"
                        }
                    ]
                }
            ]
        },
        {
            "name": "Get verification",
            "description": "This interface is used to get the verification status of a verification that was previosly sent using the 'verificationId' to identify it.Please note that if the verification is 'approved', it will not be possible to get the status of the verification.",
            "request": {
                "auth": {
                    "type": "oauth2",
                    "oauth2": [
                        {
                            "key": "addTokenTo",
                            "value": "header",
                            "type": "string"
                        }
                    ]
                },
                "method": "Get",
                "header": [
                    {
                        "key": "Content-Type",
                        "name": "Content-Type",
                        "value": "application\/json",
                        "type": "application\/json",
                        "description": ""
                    }
                ],
                "url": {
                    "raw": "api.chenosis.io\/verify\/v1\/identity\/verification\/{verificationId}",
                    "protocol": "https",
                    "host": [
                        "api",
                        "chenosis",
                        "io"
                    ],
                    "path": [
                        "verify",
                        "v1",
                        "identity",
                        "verification",
                        "{verificationId}"
                    ],
                    "variable": [
                        {
                            "key": "verificationId",
                            "value": "VEcc998fb320f254b00efaba9ddb0a533b",
                            "type": "string",
                            "description": "Unique identifier for the verification"
                        }
                    ]
                },
                "code": {
                    "curl": "
\ncurl --location --request GET 'https:\/\/api.chenosis.io\/verify\/v1\/identity\/verification\/{verificationId}'\n    --header 'Authorization: token \/\/ https:\/\/api.chenosis.io\/oauth\/client\/accesstoken?grant_type=client_credentials'\n    --header 'Content-Type: application\/json'\n<\/code><\/pre>"
                }
            },
            "response": [
                {
                    "code": 200,
                    "status": "OK",
                    "name": "Outbound SMS created",
                    "schema": {
                        "statusCode": {
                            "type": "string",
                            "description": "HTTP error code extension",
                            "example": "0000"
                        },
                        "statusMessage": {
                            "type": "string",
                            "description": "Message.",
                            "example": "Successful"
                        },
                        "data": {
                            "to": {
                                "type": "string",
                                "description": "Address of the end-user. If the 'channel' used is 'sms' or 'call' the value is the MSISDN\/phone number of the end-user represented as International  ITU-T E.164. If the 'channel' is email, the value would be the email address of the end-user.",
                                "example": "27123456789"
                            },
                            "channel": {
                                "type": "string",
                                "default": "",
                                "description": "sms,call,email"
                            },
                            "verificationId": {
                                "type": "string",
                                "description": "Unique identifier for the verification, this value will be used to query the status of the verification."
                            },
                            "status": {
                                "type": "string",
                                "default": "",
                                "description": "approved,pending,expired,cancelled"
                            }
                        },
                        "transactionId": {
                            "type": "string",
                            "description": "transaction ID for tracing.",
                            "example": "fdsf4545-sdfd5-sds"
                        }
                    },
                    "body": "{\"statusCode\":\"string\",\"statusMessage\":\"string\",\"data\":{\"to\":\"string\",\"channel\":\"string\",\"verificationId\":\"string\",\"status\":\"string\"},\"transactionId\":\"string\"}",
                    "header": [
                        {
                            "key": "Content-Type",
                            "value": "application\/json",
                            "description": "Sending as JSON",
                            "type": "string"
                        }
                    ]
                },
                {
                    "code": 401,
                    "status": "Unauthorized",
                    "name": "Not authenticated",
                    "schema": {
                        "statusCode": {
                            "type": "string",
                            "description": "HTTP error code extension"
                        },
                        "statusMessage": {
                            "type": "string",
                            "description": "More details and corrective actions related to the error which can be shown to a client."
                        },
                        "SupportMessage": {
                            "type": "string",
                            "description": "Support Message"
                        }
                    },
                    "body": "{\"statusCode\":\"string\",\"statusMessage\":\"string\",\"SupportMessage\":\"string\"}",
                    "header": [
                        {
                            "key": "Content-Type",
                            "value": "application\/json",
                            "description": "Sending as JSON",
                            "type": "string"
                        }
                    ]
                },
                {
                    "code": 404,
                    "status": "Not Found",
                    "name": "Not found",
                    "schema": {
                        "statusCode": {
                            "type": "string",
                            "description": "HTTP error code extension"
                        },
                        "statusMessage": {
                            "type": "string",
                            "description": "More details and corrective actions related to the error which can be shown to a client."
                        },
                        "SupportMessage": {
                            "type": "string",
                            "description": "Support Message"
                        }
                    },
                    "body": "{\"statusCode\":\"string\",\"statusMessage\":\"string\",\"SupportMessage\":\"string\"}",
                    "header": [
                        {
                            "key": "Content-Type",
                            "value": "application\/json",
                            "description": "Sending as JSON",
                            "type": "string"
                        }
                    ]
                },
                {
                    "code": 407,
                    "status": "Proxy Authentication Required",
                    "name": "Proxy system not authenticated",
                    "schema": {
                        "statusCode": {
                            "type": "string",
                            "description": "HTTP error code extension"
                        },
                        "statusMessage": {
                            "type": "string",
                            "description": "More details and corrective actions related to the error which can be shown to a client."
                        },
                        "SupportMessage": {
                            "type": "string",
                            "description": "Support Message"
                        }
                    },
                    "body": "{\"statusCode\":\"string\",\"statusMessage\":\"string\",\"SupportMessage\":\"string\"}",
                    "header": [
                        {
                            "key": "Content-Type",
                            "value": "application\/json",
                            "description": "Sending as JSON",
                            "type": "string"
                        }
                    ]
                },
                {
                    "code": 500,
                    "status": "Internal Server Error",
                    "name": "Internal Server Error",
                    "schema": {
                        "timestamp": {
                            "type": "string",
                            "description": "Timestamp",
                            "example": "2020-10-14T22:57:24.519+0000"
                        },
                        "status": {
                            "type": "string",
                            "description": "HTTP error code extension",
                            "example": "500"
                        },
                        "error": {
                            "type": "string",
                            "description": "Support Message",
                            "example": "Internal Server Error"
                        },
                        "message": {
                            "type": "string",
                            "description": "Support Message",
                            "example": "value"
                        },
                        "path": {
                            "type": "string",
                            "description": "Path accessed",
                            "example": "\/v1\/identity\/verification"
                        }
                    },
                    "body": "{\"timestamp\":\"string\",\"status\":\"string\",\"error\":\"string\",\"message\":\"string\",\"path\":\"string\"}",
                    "header": [
                        {
                            "key": "Content-Type",
                            "value": "application\/json",
                            "description": "Sending as JSON",
                            "type": "string"
                        }
                    ]
                }
            ]
        },
        {
            "name": "Verify a verification",
            "description": "This interface is used to verify a verification that was previosly sent. The 'code' is sent in order to verify that the correct user received the code. Please note that if the verification is 'approved', it will not be possible to get the status of the verification. The response in this request will be the only time the 'status' will be returned as 'approved' if the code is correct.",
            "request": {
                "auth": {
                    "type": "oauth2",
                    "oauth2": [
                        {
                            "key": "addTokenTo",
                            "value": "header",
                            "type": "string"
                        }
                    ]
                },
                "method": "Patch",
                "header": [
                    {
                        "key": "Content-Type",
                        "name": "Content-Type",
                        "value": "application\/json",
                        "type": "application\/json",
                        "description": ""
                    }
                ],
                "url": {
                    "raw": "api.chenosis.io\/verify\/v1\/identity\/verification\/{verificationId}",
                    "protocol": "https",
                    "host": [
                        "api",
                        "chenosis",
                        "io"
                    ],
                    "path": [
                        "verify",
                        "v1",
                        "identity",
                        "verification",
                        "{verificationId}"
                    ],
                    "variable": [
                        {
                            "key": "verificationId",
                            "value": "VEcc998fb320f254b00efaba9ddb0a533b",
                            "type": "string",
                            "description": "Unique identifier for the verification"
                        }
                    ]
                },
                "code": {
                    "curl": "
\ncurl --location --request PATCH 'https:\/\/api.chenosis.io\/verify\/v1\/identity\/verification\/{verificationId}'\n    --header 'Authorization: token \/\/ https:\/\/api.chenosis.io\/oauth\/client\/accesstoken?grant_type=client_credentials'\n    --header 'Content-Type: application\/json'\n    --data-raw '{\n        \"code\": \"string\",\n    }'\n<\/code><\/pre>"
                },
                "body": {
                    "details": [
                        {
                            "key": "code",
                            "value": "",
                            "description": "This is the verification code that was sent to the end-user.",
                            "required": 1,
                            "type": "string"
                        }
                    ],
                    "mode": "raw",
                    "raw": "{\n    \"code\": \"\"\n}"
                }
            },
            "response": [
                {
                    "code": 200,
                    "status": "OK",
                    "name": "Outbound SMS created",
                    "schema": {
                        "statusCode": {
                            "type": "string",
                            "description": "HTTP error code extension",
                            "example": "0000"
                        },
                        "statusMessage": {
                            "type": "string",
                            "description": "Message.",
                            "example": "Successful"
                        },
                        "data": {
                            "to": {
                                "type": "string",
                                "description": "Address of the end-user. If the 'channel' used is 'sms' or 'call' the value is the MSISDN\/phone number of the end-user represented as International  ITU-T E.164. If the 'channel' is email, the value would be the email address of the end-user.",
                                "example": "27123456789"
                            },
                            "channel": {
                                "type": "string",
                                "default": "",
                                "description": "sms,call,email"
                            },
                            "verificationId": {
                                "type": "string",
                                "description": "Unique identifier for the verification, this value will be used to query the status of the verification."
                            },
                            "status": {
                                "type": "string",
                                "default": "",
                                "description": "approved,pending,expired,cancelled"
                            }
                        },
                        "transactionId": {
                            "type": "string",
                            "description": "transaction ID for tracing.",
                            "example": "fdsf4545-sdfd5-sds"
                        }
                    },
                    "body": "{\"statusCode\":\"string\",\"statusMessage\":\"string\",\"data\":{\"to\":\"string\",\"channel\":\"string\",\"verificationId\":\"string\",\"status\":\"string\"},\"transactionId\":\"string\"}",
                    "header": [
                        {
                            "key": "Content-Type",
                            "value": "application\/json",
                            "description": "Sending as JSON",
                            "type": "string"
                        }
                    ]
                },
                {
                    "code": 401,
                    "status": "Unauthorized",
                    "name": "Not authenticated",
                    "schema": {
                        "statusCode": {
                            "type": "string",
                            "description": "HTTP error code extension"
                        },
                        "statusMessage": {
                            "type": "string",
                            "description": "More details and corrective actions related to the error which can be shown to a client."
                        },
                        "SupportMessage": {
                            "type": "string",
                            "description": "Support Message"
                        }
                    },
                    "body": "{\"statusCode\":\"string\",\"statusMessage\":\"string\",\"SupportMessage\":\"string\"}",
                    "header": [
                        {
                            "key": "Content-Type",
                            "value": "application\/json",
                            "description": "Sending as JSON",
                            "type": "string"
                        }
                    ]
                },
                {
                    "code": 404,
                    "status": "Not Found",
                    "name": "Not found",
                    "schema": {
                        "statusCode": {
                            "type": "string",
                            "description": "HTTP error code extension"
                        },
                        "statusMessage": {
                            "type": "string",
                            "description": "More details and corrective actions related to the error which can be shown to a client."
                        },
                        "SupportMessage": {
                            "type": "string",
                            "description": "Support Message"
                        }
                    },
                    "body": "{\"statusCode\":\"string\",\"statusMessage\":\"string\",\"SupportMessage\":\"string\"}",
                    "header": [
                        {
                            "key": "Content-Type",
                            "value": "application\/json",
                            "description": "Sending as JSON",
                            "type": "string"
                        }
                    ]
                },
                {
                    "code": 407,
                    "status": "Proxy Authentication Required",
                    "name": "Proxy system not authenticated",
                    "schema": {
                        "statusCode": {
                            "type": "string",
                            "description": "HTTP error code extension"
                        },
                        "statusMessage": {
                            "type": "string",
                            "description": "More details and corrective actions related to the error which can be shown to a client."
                        },
                        "SupportMessage": {
                            "type": "string",
                            "description": "Support Message"
                        }
                    },
                    "body": "{\"statusCode\":\"string\",\"statusMessage\":\"string\",\"SupportMessage\":\"string\"}",
                    "header": [
                        {
                            "key": "Content-Type",
                            "value": "application\/json",
                            "description": "Sending as JSON",
                            "type": "string"
                        }
                    ]
                },
                {
                    "code": 500,
                    "status": "Internal Server Error",
                    "name": "Internal Server Error",
                    "schema": {
                        "timestamp": {
                            "type": "string",
                            "description": "Timestamp",
                            "example": "2020-10-14T22:57:24.519+0000"
                        },
                        "status": {
                            "type": "string",
                            "description": "HTTP error code extension",
                            "example": "500"
                        },
                        "error": {
                            "type": "string",
                            "description": "Support Message",
                            "example": "Internal Server Error"
                        },
                        "message": {
                            "type": "string",
                            "description": "Support Message",
                            "example": "value"
                        },
                        "path": {
                            "type": "string",
                            "description": "Path accessed",
                            "example": "\/v1\/identity\/verification"
                        }
                    },
                    "body": "{\"timestamp\":\"string\",\"status\":\"string\",\"error\":\"string\",\"message\":\"string\",\"path\":\"string\"}",
                    "header": [
                        {
                            "key": "Content-Type",
                            "value": "application\/json",
                            "description": "Sending as JSON",
                            "type": "string"
                        }
                    ]
                }
            ]
        },
        {
            "name": "Get SMS verification rates",
            "description": "This interface is used to get the fees for SMS verifications",
            "request": {
                "auth": {
                    "type": "oauth2",
                    "oauth2": [
                        {
                            "key": "addTokenTo",
                            "value": "header",
                            "type": "string"
                        }
                    ]
                },
                "method": "Get",
                "header": [],
                "url": {
                    "raw": "api.chenosis.io\/verify\/v1\/identity\/sms\/rate",
                    "protocol": "https",
                    "host": [
                        "api",
                        "chenosis",
                        "io"
                    ],
                    "path": [
                        "verify",
                        "v1",
                        "identity",
                        "sms",
                        "rate"
                    ]
                },
                "code": {
                    "curl": "
\ncurl --location --request GET 'https:\/\/api.chenosis.io\/verify\/v1\/identity\/sms\/rate'\n    --header 'Authorization: token \/\/ https:\/\/api.chenosis.io\/oauth\/client\/accesstoken?grant_type=client_credentials'\n<\/code><\/pre>"
                }
            },
            "response": [
                {
                    "code": 200,
                    "status": "OK",
                    "name": "Success",
                    "schema": {
                        "statusCode": {
                            "type": "string",
                            "description": "HTTP error code extension",
                            "example": "0000"
                        },
                        "statusMessage": {
                            "type": "string",
                            "description": "Message.",
                            "example": "Successful"
                        },
                        "data": {
                            "supportedCountries": {
                                "name": {
                                    "type": "string",
                                    "description": "Name of supported country",
                                    "example": "South Africa"
                                },
                                "code": {
                                    "type": "string",
                                    "description": "Dialing country code of the supported country",
                                    "example": "+27"
                                },
                                "fee": {
                                    "type": "string",
                                    "description": "Cost of creating a verification in USD",
                                    "example": "0.15"
                                }
                            }
                        },
                        "transactionId": {
                            "type": "string",
                            "description": "transaction ID for tracing.",
                            "example": "fdsf4545-sdfd5-sds"
                        }
                    },
                    "body": "{\"statusCode\":\"string\",\"statusMessage\":\"string\",\"data\":{\"supportedCountries\":{\"name\":\"string\",\"code\":\"string\",\"fee\":\"string\"}},\"transactionId\":\"string\"}",
                    "header": [
                        {
                            "key": "Content-Type",
                            "value": "application\/json",
                            "description": "Sending as JSON",
                            "type": "string"
                        }
                    ]
                },
                {
                    "code": 401,
                    "status": "Unauthorized",
                    "name": "Not authenticated",
                    "schema": {
                        "statusCode": {
                            "type": "string",
                            "description": "HTTP error code extension"
                        },
                        "statusMessage": {
                            "type": "string",
                            "description": "More details and corrective actions related to the error which can be shown to a client."
                        },
                        "SupportMessage": {
                            "type": "string",
                            "description": "Support Message"
                        }
                    },
                    "body": "{\"statusCode\":\"string\",\"statusMessage\":\"string\",\"SupportMessage\":\"string\"}",
                    "header": [
                        {
                            "key": "Content-Type",
                            "value": "application\/json",
                            "description": "Sending as JSON",
                            "type": "string"
                        }
                    ]
                },
                {
                    "code": 404,
                    "status": "Not Found",
                    "name": "Not found",
                    "schema": {
                        "statusCode": {
                            "type": "string",
                            "description": "HTTP error code extension"
                        },
                        "statusMessage": {
                            "type": "string",
                            "description": "More details and corrective actions related to the error which can be shown to a client."
                        },
                        "SupportMessage": {
                            "type": "string",
                            "description": "Support Message"
                        }
                    },
                    "body": "{\"statusCode\":\"string\",\"statusMessage\":\"string\",\"SupportMessage\":\"string\"}",
                    "header": [
                        {
                            "key": "Content-Type",
                            "value": "application\/json",
                            "description": "Sending as JSON",
                            "type": "string"
                        }
                    ]
                },
                {
                    "code": 407,
                    "status": "Proxy Authentication Required",
                    "name": "Proxy system not authenticated",
                    "schema": {
                        "statusCode": {
                            "type": "string",
                            "description": "HTTP error code extension"
                        },
                        "statusMessage": {
                            "type": "string",
                            "description": "More details and corrective actions related to the error which can be shown to a client."
                        },
                        "SupportMessage": {
                            "type": "string",
                            "description": "Support Message"
                        }
                    },
                    "body": "{\"statusCode\":\"string\",\"statusMessage\":\"string\",\"SupportMessage\":\"string\"}",
                    "header": [
                        {
                            "key": "Content-Type",
                            "value": "application\/json",
                            "description": "Sending as JSON",
                            "type": "string"
                        }
                    ]
                },
                {
                    "code": 500,
                    "status": "Internal Server Error",
                    "name": "Internal Server Error",
                    "schema": {
                        "timestamp": {
                            "type": "string",
                            "description": "Timestamp",
                            "example": "2020-10-14T22:57:24.519+0000"
                        },
                        "status": {
                            "type": "string",
                            "description": "HTTP error code extension",
                            "example": "500"
                        },
                        "error": {
                            "type": "string",
                            "description": "Support Message",
                            "example": "Internal Server Error"
                        },
                        "message": {
                            "type": "string",
                            "description": "Support Message",
                            "example": "value"
                        },
                        "path": {
                            "type": "string",
                            "description": "Path accessed",
                            "example": "\/v1\/identity\/verification"
                        }
                    },
                    "body": "{\"timestamp\":\"string\",\"status\":\"string\",\"error\":\"string\",\"message\":\"string\",\"path\":\"string\"}",
                    "header": [
                        {
                            "key": "Content-Type",
                            "value": "application\/json",
                            "description": "Sending as JSON",
                            "type": "string"
                        }
                    ]
                }
            ]
        }
    ]
}