# Get whitelist entries

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /whitelist/:
    get:
      summary: Get whitelist entries
      deprecated: false
      description: >-

        Returns a paginated list of users on the onboarding whitelist.


        **Query parameters:**

        - **added_on** (optional): Filter to entries added on this date
        (`YYYY-MM-DD`).

        - **page** (optional): Page number, starting at 1. Default: 1.

        - **limit** (optional): Entries per page, 1–100. Default: 50.


        Each entry returns its identifier (`national_id` or
        `external_reference`)

        and the `created_at` timestamp in ISO 8601 format.
                    
      operationId: getWhitelistEntries
      tags:
        - Vrtx APIs/Whitelist
        - Whitelist
      parameters:
        - name: added_on
          in: query
          description: Filter by date added (YYYY-MM-DD)
          required: false
          schema:
            type: string
            pattern: ^\d{4}-\d{2}-\d{2}$
            examples:
              - '2026-03-29'
        - name: page
          in: query
          description: Page number
          required: false
          schema:
            type: integer
            minimum: 1
            default: 1
            examples:
              - 1
        - name: limit
          in: query
          description: Number of entries per page
          required: false
          schema:
            type: integer
            minimum: 1
            maximum: 100
            default: 50
            examples:
              - 50
      responses:
        '200':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  white_listed_users:
                    type: array
                    items:
                      type: object
                      properties:
                        national_id:
                          type: string
                          description: National ID of the whitelisted user
                        external_reference:
                          type: string
                          description: External reference of the whitelisted user
                        created_at:
                          type: string
                          description: ISO 8601 timestamp when the entry was created
                      required:
                        - created_at
                      x-apidog-orders:
                        - national_id
                        - external_reference
                        - created_at
                    description: List of whitelisted users
                  total_count:
                    type: number
                    description: Total number of whitelist entries
                  total_pages:
                    type: number
                    description: Total number of pages
                  current_page:
                    type: number
                    description: Current page number
                required:
                  - white_listed_users
                  - total_count
                  - total_pages
                  - current_page
                x-apidog-orders:
                  - white_listed_users
                  - total_count
                  - total_pages
                  - current_page
          headers: {}
          x-apidog-name: ''
        '400':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_code:
                    type: string
                    enum:
                      - INVALID_INPUT
                  error_message:
                    type: string
                    description: Human-readable error message explaining what went wrong
                  details:
                    type: array
                    items:
                      type: object
                      properties:
                        field_name:
                          type: string
                          description: Name of the field that caused the error
                        description:
                          type: string
                          description: Detailed description of the field error
                        code:
                          type: string
                          description: Optional error code specific to this field
                      required:
                        - field_name
                        - description
                      x-apidog-orders:
                        - field_name
                        - description
                        - code
                    description: >-
                      Additional error details and field-specific validation
                      errors
                  status_code:
                    type: number
                    description: HTTP status code corresponding to this error
                required:
                  - error_code
                  - error_message
                  - details
                  - status_code
                x-apidog-orders:
                  - error_code
                  - error_message
                  - details
                  - status_code
          headers: {}
          x-apidog-name: ''
        '401':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_code:
                    type: string
                    enum:
                      - UNAUTHORIZED
                  error_message:
                    type: string
                    description: Human-readable error message explaining what went wrong
                  details:
                    type: array
                    items:
                      type: object
                      properties:
                        field_name:
                          type: string
                          description: Name of the field that caused the error
                        description:
                          type: string
                          description: Detailed description of the field error
                        code:
                          type: string
                          description: Optional error code specific to this field
                      required:
                        - field_name
                        - description
                      x-apidog-orders:
                        - field_name
                        - description
                        - code
                    description: >-
                      Additional error details and field-specific validation
                      errors
                  status_code:
                    type: number
                    description: HTTP status code corresponding to this error
                required:
                  - error_code
                  - error_message
                  - details
                  - status_code
                x-apidog-orders:
                  - error_code
                  - error_message
                  - details
                  - status_code
              example:
                error_code: UNAUTHORIZED
                error_message: Unauthorized access
                details: []
                status_code: 401
          headers: {}
          x-apidog-name: ''
        '403':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_code:
                    type: string
                    enum:
                      - FORBIDDEN
                  error_message:
                    type: string
                    description: Human-readable error message explaining what went wrong
                  details:
                    type: array
                    items:
                      type: object
                      properties:
                        field_name:
                          type: string
                          description: Name of the field that caused the error
                        description:
                          type: string
                          description: Detailed description of the field error
                        code:
                          type: string
                          description: Optional error code specific to this field
                      required:
                        - field_name
                        - description
                      x-apidog-orders:
                        - field_name
                        - description
                        - code
                    description: >-
                      Additional error details and field-specific validation
                      errors
                  status_code:
                    type: number
                    description: HTTP status code corresponding to this error
                required:
                  - error_code
                  - error_message
                  - details
                  - status_code
                x-apidog-orders:
                  - error_code
                  - error_message
                  - details
                  - status_code
              example:
                error_code: FORBIDDEN
                error_message: Access forbidden
                details: []
                status_code: 403
          headers: {}
          x-apidog-name: ''
        '404':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_code:
                    type: string
                    enum:
                      - NOT_FOUND
                  error_message:
                    type: string
                    description: Human-readable error message explaining what went wrong
                  details:
                    type: array
                    items:
                      type: object
                      properties:
                        field_name:
                          type: string
                          description: Name of the field that caused the error
                        description:
                          type: string
                          description: Detailed description of the field error
                        code:
                          type: string
                          description: Optional error code specific to this field
                      required:
                        - field_name
                        - description
                      x-apidog-orders:
                        - field_name
                        - description
                        - code
                    description: >-
                      Additional error details and field-specific validation
                      errors
                  status_code:
                    type: number
                    description: HTTP status code corresponding to this error
                required:
                  - error_code
                  - error_message
                  - details
                  - status_code
                x-apidog-orders:
                  - error_code
                  - error_message
                  - details
                  - status_code
              example:
                error_code: NOT_FOUND
                error_message: Resource not found
                details: []
                status_code: 404
          headers: {}
          x-apidog-name: ''
        '405':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_code:
                    type: string
                    enum:
                      - INVALID_INPUT
                  error_message:
                    type: string
                    description: Human-readable error message explaining what went wrong
                  details:
                    type: array
                    items:
                      type: object
                      properties:
                        field_name:
                          type: string
                          description: Name of the field that caused the error
                        description:
                          type: string
                          description: Detailed description of the field error
                        code:
                          type: string
                          description: Optional error code specific to this field
                      required:
                        - field_name
                        - description
                      x-apidog-orders:
                        - field_name
                        - description
                        - code
                    description: >-
                      Additional error details and field-specific validation
                      errors
                  status_code:
                    type: number
                    description: HTTP status code corresponding to this error
                required:
                  - error_code
                  - error_message
                  - details
                  - status_code
                x-apidog-orders:
                  - error_code
                  - error_message
                  - details
                  - status_code
              example:
                error_code: INVALID_INPUT
                error_message: Input validation failed
                details: []
                status_code: 405
          headers: {}
          x-apidog-name: ''
        '409':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_code:
                    type: string
                    enum:
                      - CONFLICT
                  error_message:
                    type: string
                    description: Human-readable error message explaining what went wrong
                  details:
                    type: array
                    items:
                      type: object
                      properties:
                        field_name:
                          type: string
                          description: Name of the field that caused the error
                        description:
                          type: string
                          description: Detailed description of the field error
                        code:
                          type: string
                          description: Optional error code specific to this field
                      required:
                        - field_name
                        - description
                      x-apidog-orders:
                        - field_name
                        - description
                        - code
                    description: >-
                      Additional error details and field-specific validation
                      errors
                  status_code:
                    type: number
                    description: HTTP status code corresponding to this error
                required:
                  - error_code
                  - error_message
                  - details
                  - status_code
                x-apidog-orders:
                  - error_code
                  - error_message
                  - details
                  - status_code
              example:
                error_code: CONFLICT
                error_message: Resource conflict
                details: []
                status_code: 409
          headers: {}
          x-apidog-name: ''
        '410':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_code:
                    type: string
                    enum:
                      - NOT_FOUND
                  error_message:
                    type: string
                    description: Human-readable error message explaining what went wrong
                  details:
                    type: array
                    items:
                      type: object
                      properties:
                        field_name:
                          type: string
                          description: Name of the field that caused the error
                        description:
                          type: string
                          description: Detailed description of the field error
                        code:
                          type: string
                          description: Optional error code specific to this field
                      required:
                        - field_name
                        - description
                      x-apidog-orders:
                        - field_name
                        - description
                        - code
                    description: >-
                      Additional error details and field-specific validation
                      errors
                  status_code:
                    type: number
                    description: HTTP status code corresponding to this error
                required:
                  - error_code
                  - error_message
                  - details
                  - status_code
                x-apidog-orders:
                  - error_code
                  - error_message
                  - details
                  - status_code
              example:
                error_code: NOT_FOUND
                error_message: Resource not found
                details: []
                status_code: 410
          headers: {}
          x-apidog-name: ''
        '422':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_code:
                    type: string
                    enum:
                      - INVALID_INPUT
                  error_message:
                    type: string
                    description: Human-readable error message explaining what went wrong
                  details:
                    type: array
                    items:
                      type: object
                      properties:
                        field_name:
                          type: string
                          description: Name of the field that caused the error
                        description:
                          type: string
                          description: Detailed description of the field error
                        code:
                          type: string
                          description: Optional error code specific to this field
                      required:
                        - field_name
                        - description
                      x-apidog-orders:
                        - field_name
                        - description
                        - code
                    description: >-
                      Additional error details and field-specific validation
                      errors
                  status_code:
                    type: number
                    description: HTTP status code corresponding to this error
                required:
                  - error_code
                  - error_message
                  - details
                  - status_code
                x-apidog-orders:
                  - error_code
                  - error_message
                  - details
                  - status_code
              example:
                error_code: INVALID_INPUT
                error_message: Input validation failed
                details:
                  - field_name: amount
                    description: Amount must be greater than zero
                    code: VALIDATION_ERROR
                status_code: 422
          headers: {}
          x-apidog-name: ''
        '429':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_code:
                    type: string
                    enum:
                      - RATE_LIMITED
                  error_message:
                    type: string
                    description: Human-readable error message explaining what went wrong
                  details:
                    type: array
                    items:
                      type: object
                      properties:
                        field_name:
                          type: string
                          description: Name of the field that caused the error
                        description:
                          type: string
                          description: Detailed description of the field error
                        code:
                          type: string
                          description: Optional error code specific to this field
                      required:
                        - field_name
                        - description
                      x-apidog-orders:
                        - field_name
                        - description
                        - code
                    description: >-
                      Additional error details and field-specific validation
                      errors
                  status_code:
                    type: number
                    description: HTTP status code corresponding to this error
                required:
                  - error_code
                  - error_message
                  - details
                  - status_code
                x-apidog-orders:
                  - error_code
                  - error_message
                  - details
                  - status_code
              example:
                error_code: RATE_LIMITED
                error_message: Too many requests
                details: []
                status_code: 429
          headers: {}
          x-apidog-name: ''
        '500':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_code:
                    type: string
                    enum:
                      - INTERNAL_ERROR
                      - EXTERNAL_SERVICE_ERROR
                  error_message:
                    type: string
                    description: Human-readable error message explaining what went wrong
                  details:
                    type: array
                    items:
                      type: object
                      properties:
                        field_name:
                          type: string
                          description: Name of the field that caused the error
                        description:
                          type: string
                          description: Detailed description of the field error
                        code:
                          type: string
                          description: Optional error code specific to this field
                      required:
                        - field_name
                        - description
                      x-apidog-orders:
                        - field_name
                        - description
                        - code
                    description: >-
                      Additional error details and field-specific validation
                      errors
                  status_code:
                    type: number
                    description: HTTP status code corresponding to this error
                required:
                  - error_code
                  - error_message
                  - details
                  - status_code
                x-apidog-orders:
                  - error_code
                  - error_message
                  - details
                  - status_code
              examples:
                example1:
                  summary: example1
                  value:
                    error_code: INTERNAL_ERROR
                    error_message: An internal server error occurred
                    details: []
                    status_code: 500
                example2:
                  summary: example2
                  value:
                    error_code: EXTERNAL_SERVICE_ERROR
                    error_message: An external service error occurred
                    details: []
                    status_code: 500
          headers: {}
          x-apidog-name: ''
        '501':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_code:
                    type: string
                    enum:
                      - INTERNAL_ERROR
                  error_message:
                    type: string
                    description: Human-readable error message explaining what went wrong
                  details:
                    type: array
                    items:
                      type: object
                      properties:
                        field_name:
                          type: string
                          description: Name of the field that caused the error
                        description:
                          type: string
                          description: Detailed description of the field error
                        code:
                          type: string
                          description: Optional error code specific to this field
                      required:
                        - field_name
                        - description
                      x-apidog-orders:
                        - field_name
                        - description
                        - code
                    description: >-
                      Additional error details and field-specific validation
                      errors
                  status_code:
                    type: number
                    description: HTTP status code corresponding to this error
                required:
                  - error_code
                  - error_message
                  - details
                  - status_code
                x-apidog-orders:
                  - error_code
                  - error_message
                  - details
                  - status_code
              example:
                error_code: INTERNAL_ERROR
                error_message: An internal server error occurred
                details: []
                status_code: 501
          headers: {}
          x-apidog-name: ''
        '503':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_code:
                    type: string
                    enum:
                      - SERVICE_UNAVAILABLE
                      - EXTERNAL_SERVICE_ERROR
                  error_message:
                    type: string
                    description: Human-readable error message explaining what went wrong
                  details:
                    type: array
                    items:
                      type: object
                      properties:
                        field_name:
                          type: string
                          description: Name of the field that caused the error
                        description:
                          type: string
                          description: Detailed description of the field error
                        code:
                          type: string
                          description: Optional error code specific to this field
                      required:
                        - field_name
                        - description
                      x-apidog-orders:
                        - field_name
                        - description
                        - code
                    description: >-
                      Additional error details and field-specific validation
                      errors
                  status_code:
                    type: number
                    description: HTTP status code corresponding to this error
                required:
                  - error_code
                  - error_message
                  - details
                  - status_code
                x-apidog-orders:
                  - error_code
                  - error_message
                  - details
                  - status_code
              example:
                error_code: EXTERNAL_SERVICE_ERROR
                error_message: An external service error occurred
                details: []
                status_code: 503
          headers: {}
          x-apidog-name: ''
        '504':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_code:
                    type: string
                    enum:
                      - EXTERNAL_SERVICE_ERROR
                  error_message:
                    type: string
                    description: Human-readable error message explaining what went wrong
                  details:
                    type: array
                    items:
                      type: object
                      properties:
                        field_name:
                          type: string
                          description: Name of the field that caused the error
                        description:
                          type: string
                          description: Detailed description of the field error
                        code:
                          type: string
                          description: Optional error code specific to this field
                      required:
                        - field_name
                        - description
                      x-apidog-orders:
                        - field_name
                        - description
                        - code
                    description: >-
                      Additional error details and field-specific validation
                      errors
                  status_code:
                    type: number
                    description: HTTP status code corresponding to this error
                required:
                  - error_code
                  - error_message
                  - details
                  - status_code
                x-apidog-orders:
                  - error_code
                  - error_message
                  - details
                  - status_code
              example:
                error_code: EXTERNAL_SERVICE_ERROR
                error_message: An external service error occurred
                details: []
                status_code: 504
          headers: {}
          x-apidog-name: ''
        '505':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  error_code:
                    type: string
                    enum:
                      - UNSUPPORTED_VERSION
                  error_message:
                    type: string
                    description: Human-readable error message explaining what went wrong
                  details:
                    type: array
                    items:
                      type: object
                      properties:
                        field_name:
                          type: string
                          description: Name of the field that caused the error
                        description:
                          type: string
                          description: Detailed description of the field error
                        code:
                          type: string
                          description: Optional error code specific to this field
                      required:
                        - field_name
                        - description
                      x-apidog-orders:
                        - field_name
                        - description
                        - code
                    description: >-
                      Additional error details and field-specific validation
                      errors
                  status_code:
                    type: number
                    description: HTTP status code corresponding to this error
                required:
                  - error_code
                  - error_message
                  - details
                  - status_code
                x-apidog-orders:
                  - error_code
                  - error_message
                  - details
                  - status_code
              example:
                error_code: UNSUPPORTED_VERSION
                error_message: An internal server error occurred
                details: []
                status_code: 500
          headers: {}
          x-apidog-name: ''
      security:
        - bearerAuth: []
          x-apidog:
            schemeGroups:
              - id: IyWASdwA8dScpxRomZ9Dm
                schemeIds:
                  - bearerAuth
            required: true
            use:
              id: IyWASdwA8dScpxRomZ9Dm
            scopes:
              IyWASdwA8dScpxRomZ9Dm:
                bearerAuth: []
      x-apidog-folder: Vrtx APIs/Whitelist
      x-apidog-status: released
      x-run-in-apidog: https://app.apidog.com/web/project/1053095/apis/api-32621332-run
components:
  schemas: {}
  securitySchemes:
    bearerAuth:
      type: jwt
      scheme: bearer
      bearerFormat: JWT
      description: Enter your JWT access token for authentication
    bearerAuth1:
      type: jwt
      scheme: bearer
      bearerFormat: JWT
    bearerAuth2:
      type: jwt
      scheme: bearer
      bearerFormat: JWT
      description: Enter your JWT access token for authentication
    bearerAuth3:
      type: jwt
      scheme: bearer
      bearerFormat: JWT
      description: >-
        JWT issued by Keycloak. The client_id/azp in the token must map to a
        configured tenant (public, fai, neomrs; e.g., fai-sandbox -> fai) or
        requests will return 403.
    bearerAuth4:
      type: jwt
      scheme: bearer
      bearerFormat: JWT
      description: Enter your JWT access token for authentication
    bearer:
      type: http
      scheme: bearer
servers:
  - url: https://api.sandbox.vrtx.sa
    description: Sandbox
security:
  - bearer: []

```
