Returns a list of certificates. The certificates are returned
sorted by creation date, with the most recently created certificates
appearing first. Supports pagination using starting_after and ending_before.
Query parameters
-
A limit on the number of objects to be returned. The limit can range between
1and100, and the default is10.Minimum value is
1, maximum value is100. Default value is10. -
A cursor for use in pagination.
starting_afteris a certificate ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending withca_123, your subsequent call can includestarting_after=ca_123in order to fetch the next page of the list. -
A cursor for use in pagination.
ending_beforeis a certificate ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting withca_456, your subsequent call can includeending_before=ca_456in order to fetch the previous page of the list. -
Specifies which fields in the response should be expanded. Use
expand[]=review_resultsfor abbreviated review results, orexpand[]=review_results.fullfor full review results including parsed certificate data and detailed audit results.
curl \
--request GET 'https://api.1099policy.com/api/v1/files/certificates'
[
{
"contractor": "cn_xyz789",
"created": 1646818364,
"filename": "certificate_of_insurance.pdf",
"id": "string",
"pdf_url": "https://storage.example.com/certificates/ci_abc123.pdf",
"review_results": {
"audit_results": [
{
"created": 42,
"id": "car_result123",
"manually_approved": true,
"message": "string",
"result": "pass",
"rule_name": "CGL Limits",
"rule_path": "coverages.commercial_general_liability.limits"
}
],
"created": 42,
"id": "ca_audit123",
"parsed_certificate_json": {},
"status": "pending",
"summary": {
"failed": 0,
"passed": 5,
"total_rules": 5
},
"updated": 42
},
"status": "pending",
"updated": 1646818364
}
]