API Token

API Token, like access tokens, have a set of capabilities assigned to them. However, unlike access tokens wich provides more fine-grained access control and can have limited lifetime, API keys provides full access to all the account resources and are long-lived.

Get your API Token

You can generate and manage your API keys in the Dashboard > Account > API Token .

Use curl get Token

You can also use curl to request to get your token

Log in using account and password

POST https://api.smsbeta.com/login

Request Body

NameTypeDescription

mail*

string

Your account email

password*

string

md5 encrypt your password

{
    "code": 200,
    "Msg": "success!",
    "data": 
        {
            "token": "aaabbbccc",
            "mail": "xxx@xxx.com"
        },
      

}

Take a look at how you might call this method using our official libraries, or via curl:

curl https://api.smsbeta.com/login  
  --header 'content-type: application/json' \
  --data '{"mail":xxx@xxx.com,"password":"aaabbbccc"}'

password need md5 encrypt

Last updated