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

# Get WC Underwriting Questions

> Get the Workers' Comp underwriting questions that apply to one or more WC class codes, before you build a quote. Call it first, collect the answers from your applicant, then send them with your quote request — rather than submitting blind and getting back a verdict you cannot act on.

### What it is for

The question set is driven entirely by class code. A trucking code asks about gross vehicle weight, maintenance programmes, hazmat and owner-operators; a contracting code asks about working heights, excavation and roofing. A handful of questions apply to every class. Asking the wrong set, or missing one, is what produces a Workers' Comp submission that cannot be assessed.

This endpoint is a **pure lookup**. It holds no state, needs no submission, and never changes anything: the same class codes always return the same questions. Nothing you ask here is recorded, and calling it has no effect on an application in progress.

### What it does not tell you

- **It is not an eligibility decision.** Receiving a question set does not mean the class is written, and the answers are not scored here. A `yes` to hauling explosives, hauling hazardous materials or using non-employee drivers is declined — but that happens when you quote, not here.
- **It does not tell you whether a class is quotable.** Some selections exist so that an agent can name a risk we then decline. If you post one, you still get the ordinary question set for the underlying class code. Treat eligibility as something only the quote path answers.

### Supplying class codes

`class_codes` is **required**. Repeat the parameter for several codes:

```
GET /submission/wc-uw-questions?class_codes[]=7219&class_codes[]=8810
```

A single code may also be sent unbracketed (`?class_codes=7219`). Supply multiple codes together when a risk has payroll in several classes: the sets are merged and de-duplicated by `question_id`, so each question appears once however many of your codes ask for it.

Rules worth knowing:

- **Keep any leading zero** the class carries — send `0042`, not `42`.
- **Some codes cover more than one trade.** Where that is so, an extended selection key (for example `7219-haulaway`) is accepted and resolves to its underlying class code. The question set is keyed on the code, so a key and its bare code return the same questions.
- **An unrecognised code is not an error.** It yields the questions that apply to every class, and nothing class-specific. An empty `questions` array means nothing in the catalogue matched — never that something failed.
- **Omitting `class_codes` returns `400`,** rather than an empty list, so a miswired integration shows itself immediately instead of silently collecting nothing.

### Conditional follow-up questions

Some questions only matter depending on the answer to another. Because this is not an interactive form, **every question you might need is returned up front**, parents and children together, and three fields let you tell them apart:

- `triggers_questions` — on a parent, the `question_id`s its answer can bring into play.
- `trigger_condition` — the answer that brings them in, e.g. `{"answer": "yes"}`.
- `is_child` and `parent_id` — on a child, that it is one and whose.

So you can build a progressive form, revealing a child once its parent is answered, **or** simply ask everything and send the lot. Answers to questions that turn out not to apply are ignored when you quote; they are never held against the risk.

`required` marks a question an underwriter needs answered. A question with `required: false` may be left out.

### Answer types

- `yes_no` — send `yes` or `no`.
- `numeric` — send a number.
- `select_options` is reserved for a future fixed-choice type and is `null` for every question today; `clear_children_when_hidden` is likewise `false` throughout. Read both defensively rather than assuming they stay so.

Question wording comes from the underwriting programme and can change. Treat `question_id` as the stable identifier to branch and store on; treat `question_text` as display text that may be reworded.

### Authentication and rate limits

Standard partner API authentication — the same `AccessToken` as the rest of this reference, from the `/authentication` endpoint. No separate credential, and no new setup.

The endpoint shares the quoting bucket with `/quote` and `/indication`, counted against your own account rather than a shared network address:

- **60 requests per minute.**
- A **daily cap on your account** on top of that; the default is 10,000 requests. Contact us if your volume needs more — it is raisable per account without a code change.

Either ceiling returns `429` with a `Retry-After` header giving the seconds to wait. Sustained breaching adds a temporary block, which returns a richer `429` body naming `retry_after`, `retry_after_human` and the limited `scope`. Because the bucket is shared, pulling question sets in a loop eats into your quoting allowance — cache what you pull. The catalogue changes rarely, so one fetch per class code per deployment is enough for most integrations.

### Other parameters

A `state` parameter is explicitly **rejected** with `400`: WC question applicability is class-code only at this time, and silently ignoring it would let an integration ship believing it had filtered by state. Any other unrecognised parameter is ignored.



## OpenAPI

````yaml get /submission/wc-uw-questions
openapi: 3.0.0
info:
  title: Cover Whale API V1
  contact:
    name: Cover Whale API Team
  version: '1.0'
servers:
  - url: https://api.coverwhale.dev/v1
security:
  - AccessToken: []
tags:
  - name: Authentication
    description: Authenticating & Interacting with the API
paths:
  /submission/wc-uw-questions:
    get:
      tags:
        - Quoting
      summary: Get WC Underwriting Questions
      description: >-
        Get the Workers' Comp underwriting questions that apply to one or more
        WC class codes, before you build a quote. Call it first, collect the
        answers from your applicant, then send them with your quote request —
        rather than submitting blind and getting back a verdict you cannot act
        on.


        ### What it is for


        The question set is driven entirely by class code. A trucking code asks
        about gross vehicle weight, maintenance programmes, hazmat and
        owner-operators; a contracting code asks about working heights,
        excavation and roofing. A handful of questions apply to every class.
        Asking the wrong set, or missing one, is what produces a Workers' Comp
        submission that cannot be assessed.


        This endpoint is a **pure lookup**. It holds no state, needs no
        submission, and never changes anything: the same class codes always
        return the same questions. Nothing you ask here is recorded, and calling
        it has no effect on an application in progress.


        ### What it does not tell you


        - **It is not an eligibility decision.** Receiving a question set does
        not mean the class is written, and the answers are not scored here. A
        `yes` to hauling explosives, hauling hazardous materials or using
        non-employee drivers is declined — but that happens when you quote, not
        here.

        - **It does not tell you whether a class is quotable.** Some selections
        exist so that an agent can name a risk we then decline. If you post one,
        you still get the ordinary question set for the underlying class code.
        Treat eligibility as something only the quote path answers.


        ### Supplying class codes


        `class_codes` is **required**. Repeat the parameter for several codes:


        ```

        GET /submission/wc-uw-questions?class_codes[]=7219&class_codes[]=8810

        ```


        A single code may also be sent unbracketed (`?class_codes=7219`). Supply
        multiple codes together when a risk has payroll in several classes: the
        sets are merged and de-duplicated by `question_id`, so each question
        appears once however many of your codes ask for it.


        Rules worth knowing:


        - **Keep any leading zero** the class carries — send `0042`, not `42`.

        - **Some codes cover more than one trade.** Where that is so, an
        extended selection key (for example `7219-haulaway`) is accepted and
        resolves to its underlying class code. The question set is keyed on the
        code, so a key and its bare code return the same questions.

        - **An unrecognised code is not an error.** It yields the questions that
        apply to every class, and nothing class-specific. An empty `questions`
        array means nothing in the catalogue matched — never that something
        failed.

        - **Omitting `class_codes` returns `400`,** rather than an empty list,
        so a miswired integration shows itself immediately instead of silently
        collecting nothing.


        ### Conditional follow-up questions


        Some questions only matter depending on the answer to another. Because
        this is not an interactive form, **every question you might need is
        returned up front**, parents and children together, and three fields let
        you tell them apart:


        - `triggers_questions` — on a parent, the `question_id`s its answer can
        bring into play.

        - `trigger_condition` — the answer that brings them in, e.g. `{"answer":
        "yes"}`.

        - `is_child` and `parent_id` — on a child, that it is one and whose.


        So you can build a progressive form, revealing a child once its parent
        is answered, **or** simply ask everything and send the lot. Answers to
        questions that turn out not to apply are ignored when you quote; they
        are never held against the risk.


        `required` marks a question an underwriter needs answered. A question
        with `required: false` may be left out.


        ### Answer types


        - `yes_no` — send `yes` or `no`.

        - `numeric` — send a number.

        - `select_options` is reserved for a future fixed-choice type and is
        `null` for every question today; `clear_children_when_hidden` is
        likewise `false` throughout. Read both defensively rather than assuming
        they stay so.


        Question wording comes from the underwriting programme and can change.
        Treat `question_id` as the stable identifier to branch and store on;
        treat `question_text` as display text that may be reworded.


        ### Authentication and rate limits


        Standard partner API authentication — the same `AccessToken` as the rest
        of this reference, from the `/authentication` endpoint. No separate
        credential, and no new setup.


        The endpoint shares the quoting bucket with `/quote` and `/indication`,
        counted against your own account rather than a shared network address:


        - **60 requests per minute.**

        - A **daily cap on your account** on top of that; the default is 10,000
        requests. Contact us if your volume needs more — it is raisable per
        account without a code change.


        Either ceiling returns `429` with a `Retry-After` header giving the
        seconds to wait. Sustained breaching adds a temporary block, which
        returns a richer `429` body naming `retry_after`, `retry_after_human`
        and the limited `scope`. Because the bucket is shared, pulling question
        sets in a loop eats into your quoting allowance — cache what you pull.
        The catalogue changes rarely, so one fetch per class code per deployment
        is enough for most integrations.


        ### Other parameters


        A `state` parameter is explicitly **rejected** with `400`: WC question
        applicability is class-code only at this time, and silently ignoring it
        would let an integration ship believing it had filtered by state. Any
        other unrecognised parameter is ignored.
      operationId: getWcUwQuestions
      parameters:
        - name: Accept
          in: header
          required: true
          schema:
            type: string
          example: application/json
        - name: AccessToken
          in: header
          required: true
          schema:
            type: string
          example: eyJraWQiOiJnRk5oTTh2RnRKWXVDVXU1S........
        - name: class_codes[]
          in: query
          description: >-
            One WC class code, repeated for each code you need
            (`?class_codes[]=7219&class_codes[]=8810`). A single code may be
            sent unbracketed as `class_codes=7219`. Keep any leading zero. An
            extended selection key such as `7219-haulaway` is accepted and
            resolves to its class code. Required: omitting it returns `400`.
          required: true
          schema:
            type: array
            items:
              type: string
          style: form
          explode: true
          example:
            - '7219'
      responses:
        '200':
          description: >-
            The questions that apply to the supplied class code(s), parents and
            conditional children together, de-duplicated by `question_id` and
            ordered so that a parent precedes its children. An empty array means
            nothing in the catalogue matched — not a failure.
          content:
            application/json:
              schema:
                type: object
                properties:
                  questions:
                    description: >-
                      Every question you may need for these class codes. Order
                      is significant only in that a parent comes before its
                      children.
                    type: array
                    items:
                      type: object
                      properties:
                        question_id:
                          description: >-
                            Stable identifier for the question. Branch and store
                            on this, never on the wording. Prefixes group
                            questions by the family of classes they came from
                            (`GLOBAL-` applies to every class); treat the prefix
                            as informational, not as a contract.
                          type: string
                          example: TRUCK-001
                        question_text:
                          description: >-
                            The question as it should be put to the applicant.
                            Display text — it can be reworded by the
                            underwriting programme without the `question_id`
                            changing.
                          type: string
                          example: >-
                            Does the business operate vehicles over 26,000 lbs
                            GVW?
                        answer_type:
                          description: >-
                            How the answer must be supplied: `yes_no` for
                            `yes`/`no`, `numeric` for a number. `select` is
                            reserved for a future fixed-choice type and is not
                            currently returned.
                          type: string
                          enum:
                            - yes_no
                            - numeric
                            - select
                          example: yes_no
                        select_options:
                          description: >-
                            The permitted choices when `answer_type` is
                            `select`. `null` for every question in the current
                            catalogue. Read defensively.
                          type: array
                          nullable: true
                          items:
                            type: string
                          example: null
                        triggers_questions:
                          description: >-
                            The `question_id`s this question's answer can bring
                            into play. Empty for a question that gates nothing.
                            The children themselves are already included in
                            `questions`, so this maps the relationship rather
                            than naming a second thing to fetch.
                          type: array
                          items:
                            type: string
                          example:
                            - TRUCK-001A
                        trigger_condition:
                          description: >-
                            The answer to THIS question that brings its
                            `triggers_questions` into play. `null` when it gates
                            nothing.
                          type: object
                          nullable: true
                          properties:
                            answer:
                              description: The triggering answer.
                              type: string
                              example: 'yes'
                        clear_children_when_hidden:
                          description: >-
                            Hint for a progressive form: whether answers already
                            collected for this question's children should be
                            discarded if the parent answer changes and hides
                            them again. `false` for every question in the
                            current catalogue.
                          type: boolean
                          example: false
                        is_child:
                          description: >-
                            `true` when this question applies only subject to
                            another question's answer. A child is returned
                            alongside its parent whether or not the triggering
                            answer has been given.
                          type: boolean
                          example: false
                        parent_id:
                          description: >-
                            The `question_id` that gates this one, when
                            `is_child` is `true`. `null` otherwise.
                          type: string
                          nullable: true
                          example: null
                        required:
                          description: >-
                            `true` when an underwriter needs this answered. A
                            question with `required: false` may be omitted.
                          type: boolean
                          example: true
              example:
                questions:
                  - question_id: GLOBAL-001
                    question_text: >-
                      Does the business have any OSHA violations in the past 3
                      years?
                    answer_type: yes_no
                    select_options: null
                    triggers_questions: []
                    trigger_condition: null
                    clear_children_when_hidden: false
                    is_child: false
                    parent_id: null
                    required: true
                  - question_id: GLOBAL-003
                    question_text: Is this a new venture (less than 1 year in business)?
                    answer_type: yes_no
                    select_options: null
                    triggers_questions:
                      - GLOBAL-003A
                    trigger_condition:
                      answer: 'yes'
                    clear_children_when_hidden: false
                    is_child: false
                    parent_id: null
                    required: true
                  - question_id: GLOBAL-003A
                    question_text: >-
                      Does the owner/principal have at least 2 years of
                      experience in this field?
                    answer_type: yes_no
                    select_options: null
                    triggers_questions: []
                    trigger_condition: null
                    clear_children_when_hidden: false
                    is_child: true
                    parent_id: GLOBAL-003
                    required: true
                  - question_id: GLOBAL-005
                    question_text: Does the business have a website?
                    answer_type: yes_no
                    select_options: null
                    triggers_questions: []
                    trigger_condition: null
                    clear_children_when_hidden: false
                    is_child: false
                    parent_id: null
                    required: false
                  - question_id: TRUCK-001
                    question_text: Does the business operate vehicles over 26,000 lbs GVW?
                    answer_type: yes_no
                    select_options: null
                    triggers_questions:
                      - TRUCK-001A
                    trigger_condition:
                      answer: 'yes'
                    clear_children_when_hidden: false
                    is_child: false
                    parent_id: null
                    required: true
                  - question_id: TRUCK-001A
                    question_text: >-
                      Are all CDL drivers in compliance with DOT drug and
                      alcohol testing requirements?
                    answer_type: yes_no
                    select_options: null
                    triggers_questions: []
                    trigger_condition: null
                    clear_children_when_hidden: false
                    is_child: true
                    parent_id: TRUCK-001
                    required: true
                  - question_id: TRUCK-003
                    question_text: Does the business haul hazardous materials?
                    answer_type: yes_no
                    select_options: null
                    triggers_questions: []
                    trigger_condition: null
                    clear_children_when_hidden: false
                    is_child: false
                    parent_id: null
                    required: true
        '400':
          description: >-
            `class_codes` was missing or empty; or a `state` parameter was sent,
            which is not supported; or `class_codes` carried a nested structure
            instead of a flat list of codes. No questions are returned.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    description: What was wrong with the request.
                    type: string
                    example: >-
                      class_codes is required — supply one or more WC class
                      codes (e.g. ?class_codes[]=7219)
        '401':
          description: Unauthorized — missing or invalid AccessToken
        '429':
          description: >-
            Rate limit exceeded — more than 60 requests in a minute, the daily
            cap on your account, or a temporary block after sustained breaches.
            The `Retry-After` header gives the seconds to wait. A block also
            returns `retry_after`, a human-readable `retry_after_human`, and the
            limited `scope`, which is the shared quoting bucket.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    example: Rate limit exceeded. Temporarily banned.
                  retry_after:
                    description: Seconds to wait before retrying.
                    type: integer
                    example: 3600
                  retry_after_human:
                    description: The same wait, phrased for a person.
                    type: string
                    example: 1 hour
                  scope:
                    description: Which limit was hit.
                    type: string
                    example: quotes
        '500':
          description: Unexpected failure. Retry; contact Cover Whale if it persists.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    example: Internal error — reference id in logs
components:
  securitySchemes:
    AccessToken:
      type: apiKey
      description: >-
        JWT returned as AccessToken by the /authentication endpoint (the Cognito
        ID token carrying the email claim). It expires after 3600 seconds.
      name: AccessToken
      in: header

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.