You must have the following key value pairs in the request Body to access the token:
|
Key |
Value |
|---|---|
|
grant_type |
password |
|
username |
user created in SAM |
|
password |
password for SAM user |
|
client_id |
client Id from SAM |
|
client_secret |
client secret from SAM |
|
scope |
Smart API Service Id from SAM |
Sample URI
POST https:<samserver with domain>/sam/oauth/connect/token
Make sure you select the x-www-form-urlencoded body format from your client.
Response Body
{
"access_token": "XXXXXXXX…",
"expires_in": 86400,
"token_type": "Bearer"
}