curl --request GET \
--url https://api.coverwhale.dev/v1/submission/wc-uw-questions \
--header 'Accept: <accept>' \
--header 'AccessToken: <api-key>'import requests
url = "https://api.coverwhale.dev/v1/submission/wc-uw-questions"
headers = {
"Accept": "<accept>",
"AccessToken": "<api-key>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Accept: '<accept>', AccessToken: '<api-key>'}};
fetch('https://api.coverwhale.dev/v1/submission/wc-uw-questions', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.coverwhale.dev/v1/submission/wc-uw-questions",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Accept: <accept>",
"AccessToken: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.coverwhale.dev/v1/submission/wc-uw-questions"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Accept", "<accept>")
req.Header.Add("AccessToken", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.coverwhale.dev/v1/submission/wc-uw-questions")
.header("Accept", "<accept>")
.header("AccessToken", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.coverwhale.dev/v1/submission/wc-uw-questions")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Accept"] = '<accept>'
request["AccessToken"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"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
}
]
}{
"error": "class_codes is required — supply one or more WC class codes (e.g. ?class_codes[]=7219)"
}{
"error": "Rate limit exceeded. Temporarily banned.",
"retry_after": 3600,
"retry_after_human": "1 hour",
"scope": "quotes"
}{
"error": "Internal error — reference id in logs"
}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
yesto 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, not42. - 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
questionsarray means nothing in the catalogue matched — never that something failed. - Omitting
class_codesreturns400, 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, thequestion_ids its answer can bring into play.trigger_condition— the answer that brings them in, e.g.{"answer": "yes"}.is_childandparent_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— sendyesorno.numeric— send a number.select_optionsis reserved for a future fixed-choice type and isnullfor every question today;clear_children_when_hiddenis likewisefalsethroughout. 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.
curl --request GET \
--url https://api.coverwhale.dev/v1/submission/wc-uw-questions \
--header 'Accept: <accept>' \
--header 'AccessToken: <api-key>'import requests
url = "https://api.coverwhale.dev/v1/submission/wc-uw-questions"
headers = {
"Accept": "<accept>",
"AccessToken": "<api-key>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Accept: '<accept>', AccessToken: '<api-key>'}};
fetch('https://api.coverwhale.dev/v1/submission/wc-uw-questions', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.coverwhale.dev/v1/submission/wc-uw-questions",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Accept: <accept>",
"AccessToken: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.coverwhale.dev/v1/submission/wc-uw-questions"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Accept", "<accept>")
req.Header.Add("AccessToken", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.coverwhale.dev/v1/submission/wc-uw-questions")
.header("Accept", "<accept>")
.header("AccessToken", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.coverwhale.dev/v1/submission/wc-uw-questions")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Accept"] = '<accept>'
request["AccessToken"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"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
}
]
}{
"error": "class_codes is required — supply one or more WC class codes (e.g. ?class_codes[]=7219)"
}{
"error": "Rate limit exceeded. Temporarily banned.",
"retry_after": 3600,
"retry_after_human": "1 hour",
"scope": "quotes"
}{
"error": "Internal error — reference id in logs"
}Authorizations
Query Parameters
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.
Response
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.