List all certificates.
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 withci_YnsHeB9PTo, your subsequent call can includestarting_after=ci_YnsHeB9PToin 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 withci_YnsHeB9PTo, your subsequent call can includeending_before=ci_YnsHeB9PToin 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'
[
{
"id": "ci_abc123",
"status": "pending",
"created": 1646818364,
"pdf_url": null,
"updated": 1646818364,
"filename": "certificate_of_insurance.pdf",
"contractor": "cn_xyz789",
"review_results": null
},
{
"id": "ci_def456",
"status": "approved",
"created": 1646818000,
"pdf_url": "https://storage.example.com/certificates/ci_def456.pdf",
"updated": 1646818500,
"filename": "coi_2024.pdf",
"contractor": "cn_Ehb3bYa",
"review_results": {
"id": "ca_audit789",
"status": "approved",
"created": 1646818500,
"summary": {
"failed": 0,
"passed": 5,
"total_rules": 5
}
}
}
]