Skip to main content
POST
/
token
Obtain Access Token
curl --request POST \
  --url https://auth.interactsms.com/token \
  --header 'Content-Type: application/x-www-form-urlencoded' \
  --data username=your_username \
  --data password=your_strong_password \
  --data client_id=ismstoken \
  --data grant_type=password
{
  "access_token": "eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJE...",
  "expires_in": 120,
  "refresh_expires_in": 1200,
  "refresh_token": "eyJhbGciOiJIUzUxMiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJh...",
  "token_type": "Bearer",
  "scope": "email profile client_id"
}

Body

application/x-www-form-urlencoded
username
string
required
password
string
required
client_id
enum<string>
required
Available options:
ismstoken
grant_type
enum<string>
required
Available options:
password

Response

JWT Token Response Body

access_token
string
required

JWT access token to pass in the Authorization header.

expires_in
integer
required

Number of seconds before the access token expires.

refresh_token
string
required

Token used to obtain a new access token.

token_type
enum<string>
required
Available options:
Bearer
refresh_expires_in
integer

Number of seconds before the refresh token expires.

scope
string

Space-delimited scopes associated with the token.

Last modified on June 10, 2026