Cards, prop trading & accounting
Get Card Pin
Fetches and decrypts a card's PIN from Rain, only for the worker who holds the card; admins are refused.
GEThttps://api.toku.com/hris/get-card-pin
Not available to API keys.
curl --request GET \
--url 'https://api.toku.com/hris/get-card-pin?rainCardId=%3CrainCardId%3E&orgID=%3CorgID%3E' \
--header 'Authorization: Bearer <token>'200 response
{
"pin": "string"
}Authorizations
AuthorizationstringheaderrequiredBearer authentication header of the form Bearer <token>, where <token> is an access token from a Toku sign-in. See Authentication in the API reference.
Query parameters
rainCardIdstring<uuid>requiredorgIDstring<uuid>requiredResponse
200Successful response
pinstringrequired400Bad request
401Unauthorized
403Forbidden
404Not found
409Conflict
429Response 429
Was this page helpful? Suggest edits