Authorization
The token can be generated with the following API request.
Endpoint:https://<Base_URL>/oauth/token
Method: POST
The access token generated must be sent with the API requests in the authorization header.
API Contract
1. Generate Token
Description | Generate Auth Token | ||
Owner | Talview | ||
Method | POST | ||
Endpoint | |||
Request Schema: | |||
Parameter | Type | Mandatory | Description |
username | String | true | Username for the user to generate the token for. |
password | String | true | Password of the user. |
client_id | String | true | client Id for the token |
client_secret | String | true | client secret for the token |
Sample Request | |||
Sample Response | |||
2. Steps to Upload the photo_id using identification end-point
Creates an Attendee
Endpoint:https://<Base_URL>/v1/attendee
Method: POST
Sample Request
{ "first_name": "Jane", "middle_name": "Samuel", "last_name": "Doe", "email": "janedoe@talview.com", "external_attendee_id": "20001" }
Sample Response
{ "id": 456, "first_name": "Jane", "middle_name": "Samuel", "last_name": "Doe", "email": "janedoe@talview.com", "organization_id": 34, "external_attendee_id": "20001" }
Operations to upload the attendee identification data
Endpoint:https://<Base_URL>/v1/Identification
Method: POST
{ "type": "type of identification", "file": "candidate photo to be uploaded", "attendee_id": "Unique identifier for the attendee" }
Sample Response
Http Response code: 201
Response: A successful post request registers the identification record.