Create a new certificate.

POST /api/v1/files/certificates

Uploads a new certificate PDF file, validates it, and creates a certificate record. The certificate will be processed and the record will be updated upon completion.

multipart/form-data

Body

  • certificate string(binary) Required

    The certificate PDF file to be uploaded.

  • contractor string Required

    The ID of the contractor associated with the certificate.

Responses

  • 201 application/json

    Returns the created certificate object if the upload and processing succeeded.

    Hide response attributes Show response attributes object
    • The general liability certificate of insurance PDF URL.

    • The workers compensation certificate of insurance PDF URL.

POST /api/v1/files/certificates
curl \
 -X POST https://api.1099policy.com/api/v1/files/certificates \
 -H "Content-Type: multipart/form-data" \
 -F "certificate=@file" \
 -F "contractor=string"
Response examples (201)
{
  "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"
}