List all assignments
Returns a list of your assignments. The assigments returned are sorted by creation date, with the most recently created assignments appearing first.
Query parameters
-
limit integer
A limit on the number of objects to be returned. Limit can range between
1
and100
, and the default is10
.Minimum value is
1
, maximum value is100
. Default value is10
. -
starting_after string
A cursor for use in pagination.
starting_after
is an assignment ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending withasn_fOo123
, your subsequent call can includestarting_after=asn_fOo123
in order to fetch the next page of the list. -
ending_before string
A cursor for use in pagination.
ending_before
is an assignment ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting withasn_bAr123
, your subsequent call can includeending_before=asn_bAr123
in order to fetch the previous page of the list.
curl \
-X GET https://api.1099policy.com/api/v1/assignments
[
{
"id": "an_TzLQszJmoP",
"job": "jb_jsb9KEcTpc",
"bind": true,
"policy": "pl_WzFRszJhoY",
"created": 1646818364,
"eligible": {
"result": true,
"message": "Contractor is pre-approved for insurance coverage.,"
},
"end_date": 1678334737,
"contractor": "cn_Ehb3bYa",
"certificates": {
"gl_coi_pdf_url": "/bound-policies/prod/gl_coi_pl_wv23Q3lMc1_1691450123.pdf",
"wc_coi_pdf_url": "/bound-policies/prod/wc_coi_pl_wv23Q3lMc1_1691420903.pdf"
},
"effective_date": 1646818364
}
]