Auth
The Auth resource is used for authentication.
POST/auth/token
Generate access token
This endpoint generates a new access token for a given client credential.
Authorization Type
- Basic Auth
Base64 encoding of concatenated value of clientId and clientSecret with colon (i.e., clientId:clientSecret)
Request
POST
auth/tokencurl https://beta-api.uprise.us/auth/token \
-H "Authorization: Basic QmVELUpWNGJ4dGxtbHJuM3R0ZktvOjJyNmIOUhCTll0ZDJVNmxfRQ==" \
-H "Content-Type: application/json"
Response
{
"access_token":
"eyJhbGciOinR5cCI6IkpXVCJ9.eyJ1aWQiOiJCZUQtSlY0Ynh0bG1scm4zdHRmS28iLCJpYXQiTY4N
DczOTQ4N30.cyD6Ze4QCb93qBVtWJqknn5fYr6yDIzoF-Mmvid_udJ-sQPpDmWEaVyxjapxPdf9rsRO
IaE_mZ4j-OnBWEFMhBOKwIwpfOLVpchTsnBf0QEPUtsDWWNd0DOcWZHaoQb1PTr3qudKvZO67KOQqsP
7hmn24XBS-2i4xOlSgfCTFhSQ1ERxuscW8pfL5mtJBRYw6yyUj8iuXsjqtbSu-h515lLocICN_qDEBi
uX6jg7f-kg50h6wMmytZI4GwkbtyEhcUmcYvZN1SLV_lBLYy84axFxXaStC0M_JyDhHkE_SDhM6JM-I
LZrUjmJgEQPzNw-sEaV3nonLHnylM5wEUBDHZY1RgdDwd5EwQb4jiisYc8JP61FJCr0JBqrxCIgSekh
dwJOj94Yh6vY-JcD3U-bP2wUEOiRJwwRnXXrAKoer_XP6Ug3SZQ1MptOTcB9yHpwEa5PvtCDriSu-kD
_IMUqPG1BPE",
"token_type": "bearer",
"expires_in": 3590
}
POST/auth/:userId/session
Create session
This endpoint generates a new sessionId for a given userId.
Request
POST
/auth/b7447751-dc8f-4220-a3ae-fe13118192ed/sessioncurl https://beta-api.uprise.us/auth/b7447751-dc8f-4220-a3ae-fe13118192ed/session \
-H "Authorization: Bearer {token}" \
-H "Content-Type: application/json"
Response
{
"sessionId": "65cce2662a1de9f82ed231e23a4d499df49bcd8d039c5312aea2fa8c555392c76b84037dc0c94577bfb9bfdb063ff20df69aece3daa282cd0113523c48ddc607",
}