PalmID Server API Definitions
SESSION_ID API
App Server requests a session_id from the PalmId Server.
URL:
https://api2.palmid.com/saas/session/get_id
Method:
GET
Header:
Field | Value | Description |
|---|---|---|
pms-project-id | PROJECT_ID | The project id used to group the users |
Authorization | Bearer PMS_API_KEY | The api key used to authenticated with PalmId PMS server |
Content-Type:
application/json
Response Example:
REGISTRATION API
Register a new user with the palm. If palm already exists, then DuplicatedPalm error returned.
URL:
https://api2.palmid.com/saas/users
Method:
POST
Header:
Field | Value | Description |
|---|---|---|
pms-project-id | PROJECT_ID | The project id used to group the users |
Authorization | Bearer PMS_API_KEY | The api key used to authenticated with PalmId PMS server |
Body Example:
Content-Type:
application/json
Response Example:
409 Duplicate Example:
VERIFICATION API
Verify the user with the palm.
URL:
https://api2.palmid.com/saas/user/user_id /verify
Method:
POST
Header:
Field | Value | Description |
|---|---|---|
pms-project-id | PROJECT_ID | The project id used to group the users |
Authorization | Bearer PMS_API_KEY | The api key used to authenticated with PalmId PMS server |
Body Example:
Content-Type:
application/json
Response Example:
VERIFY API
App Server requests the PalmID Server to validate the session_id and json result received by the PalmID SDK. The session_id has to be a valid and non-expired id issued by PalmID Server before. The json result can be of two types: registration and verification. Each of them contains different fields.
URL:
https://api2.palmid.com/saas/session/verify
Method:
POST
Header:
Field | Value | Description |
|---|---|---|
pms-project-id | PROJECT_ID | The project id used to group the users |
Authorization | Bearer PMS_API_KEY | The api key used to authenticated with PalmId PMS server |
Body Example:
Content-Type:
application/json
Registration Response Example:
Registration Duplicate Response Example:
Verification Response Example: