This repository was archived by the owner on Dec 20, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
V3 API User Sessions
jay-lee00 edited this page Oct 30, 2019
·
16 revisions
POST v3/auth/user-sessions
Request
| X-Developer-Id | developer id |
| X-Api-Key | api key |
| hospitalId | int | |
| userTypeId | int | patient 1, provider (staff) 2, snapmd admin 3 |
| string | username | |
| password | string | |
| interfaceTypeId | int | none 0, patient 1, provider 2, admin 3, snapmdadmin 4 |
| deviceId | string | device associated with the session, for renewal |
Response
| apiSessionId | session id |
| accessToken | session token |
| expires | expiration date time |
POST v3/auth/user-sessions/sso
Request
| X-Developer-Id | developer id |
| X-Api-Key | api key |
| hospitalId | int | |
| jwt | string | JWT Token |
| userSessionOptions | UserSessionOptions | (optional) {"encryptedFields":"secure option", "language":"es"} |
Response
| apiSessionId | session id |
| accessToken | session token |
| expires | expiration date time |
DELETE v3/auth/user-sessions
Request
| X-Developer-Id | developer id |
| X-Api-Key | api key |
| Authorization | Bearer {{access_token}} |
POST v3/auth/user-sessions/renewal
Request
| X-Developer-Id | developer id |
| X-Api-Key | api key |
| hospitalId | int | |
| userTypeId | int | patient 1, provider (staff) 2, snapmd admin 3 |
| string | username | |
| accessToken | string | earlier unclosed session |
| deviceId | string | device associated with the session, for renewal |
Response
| apiSessionId | session id |
| accessToken | session token |
| expires | expiration date time |