Obtain Authentication Code

You will need to obtain an authorization code in order to use API to purchase numbers.

auth

GET https://api.globalsms.io/api_gsim/v1/auth

Headers

Name
Type
Description

username

string

This is the login you use in UI portal.

password

string

This is the password you use in UI portal.

{
  "success": true,
  "data": {
    "access": "eyJhbGcinJlZ2lzdGVyZWRfb24iOm51bGwsImRlbGV0ZWudWxsLCJpc19zdXBlcnVzZXIiOm51bGwsImlzX3Jlc2VsbGVyIjpudWxsLCJyZXNlbGxlcl91dWlkIjpudWxsLCJpYXQiOjE3MTkzMzAzMDQsImV4cCI6MTcxOTQxNjc"
  }
}

Example

curl -X 'POST'  
  'https://api.globalsms.io/api/auth/login'  
  -H 'accept: */*'  
  -H 'Content-Type: application/json'  
  -d '{
  "email": "[email protected]",
  "password": "1234567890"
}'

Last updated

Was this helpful?