Latest stories

resend_code

  • Inputs
{
    "phone_code_hash": "string: fixed length is 16",
    "phone_number": "phone number: example: +18885559977"
}

  • Errors
{
    "invalid_phone_code_hash": "phone_code_hash is not correct",
    "must_logout": "user must logout",
    "phone_code_hash": [
        {
            "min length is 16": "minimum length of phone code hash is 16"
        },
        {
            "max length is 16": "maximum length of phone code hash is 16"
        }
    ],
    "phone_number": [
        {
            "null value not allowed": "phone number is not valid"
        }
    ]
}

  • Extra Description
If the user has an active session but wants code in sms, can use resend_code

  • Sample
  • Url:
https://api.pantel.me/a/resend_code?phone_number=+1**********&phone_code_hash=3xyoje3r8a0vqrn3
  • Output:
                                {
    "status": "success",
    "time": 1526966340.437936
}