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 {Token}" \
-H "Content-Type: application/json"
Response
{
"access_token":
"{Access token}",
"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": "{Session ID}",
}