List all policies
Returns a list of policies you’ve previously created. The policies are returned in sorted order, with the most recent policies 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 policy ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending withpl_fOo123
, your subsequent call can includestarting_after=pl_fOo123
in order to fetch the next page of the list. -
ending_before string
A cursor for use in pagination.
ending_before
is an policy ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting withpl_bAr123
, your subsequent call can includeending_before=pl_bAr123
in order to fetch the previous page of the list. -
quote string
A filter to return policies by a specific quote ID.
curl \
-X GET https://api.1099policy.com/api/v1/policies
[
{
"id": "pl_WzFRszJhoY",
"quote": "qt_5DciVga8Kt",
"status": "active",
"created": 1646818364,
"pdf_url": "http://ten99policy.s3.amazonaws.com/1099policy-coi-sample.pdf",
"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,
"expiration_date": 1678334737
}
]