> ## Documentation Index
> Fetch the complete documentation index at: https://docs.toku.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Card Pin

> Fetches and decrypts a card's PIN from Rain, only for the worker who holds the card; admins are refused.

Not available to API keys.

## OpenAPI

````yaml api-reference/openapi.json GET /hris/get-card-pin
openapi: 3.1.0
info:
  title: Toku API
  version: 1.0.0
servers:
  - url: https://api.toku.com
security:
  - bearerAuth: []
paths:
  /hris/get-card-pin:
    get:
      operationId: getCardPin
      summary: Get Card Pin
      description: >-
        Fetches and decrypts a card's PIN from Rain, only for the worker who
        holds the card; admins are refused.


        Not available to API keys.
      parameters:
        - name: rainCardId
          in: query
          required: true
          schema:
            type: string
            format: uuid
        - name: orgID
          in: query
          required: true
          schema:
            type: string
            format: uuid
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetCardPinResponse'
        '400':
          description: Bad request
        '401':
          description: Unauthorized
        '403':
          description: Forbidden
        '404':
          description: Not found
        '409':
          description: Conflict
        '429':
          description: Response 429
components:
  schemas:
    GetCardPinResponse:
      type: object
      properties:
        pin:
          type: string
      required:
        - pin
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
````
