We use cookies and similar technologies, including Google Analytics and the Meta Pixel, to improve your experience, measure site traffic and understand signup campaigns. By clicking "Accept", you agree to this use.

Learn more about our privacy practices
Corvo
Português

Certificates

Upload and manage A1 (PKCS#12) certificates for issuance.

You can upload the A1 certificate through the dashboard (company page) or through the API with the endpoint below.

Permissions: nfse.certificates.view to list and nfse.certificates.manage to upload/revoke.

POST/v1/companies/:companyId/certificates201 Created
full_access

Uploads an A1 certificate (.p12/.pfx) for a company. The certificate is parsed, its validity is checked, and its CNPJ must match the company's.

FieldTypeRequiredDescription
filefile✓PKCS#12 certificate (.p12/.pfx), max 50 × 1024 bytes.
passwordstring✓Non-empty, up to 100 characters.
curl -X POST "$BASE_URL/companies/$COMPANY_ID/certificates" \
  -H "X-API-Key: $CORVO_API_KEY" \
  -F 'file=@certificate.pfx' \
  -F 'password=CERT_PASSWORD'

Response — 201 Created

{
  "data": {
    "id": "9a2b7c40-1d5e-4f6a-8b3c-5d7e9f0a2b41",
    "companyId": "3f1c8a90-6b2e-4d5a-9c11-8e2f0a7b4d11",
    "serialNumber": "3881234567",
    "issuer": "AC A1 Teste",
    "subject": "CNPJ: 11222333000181",
    "fingerprint": "AB:CD:EF:...",
    "validFrom": "2026-01-01T00:00:00.000Z",
    "validUntil": "2027-01-01T00:00:00.000Z",
    "status": "active",
    "createdAt": "2026-10-10T12:00:00.000Z"
  }
}
GET/v1/companies/:companyId/certificates200 OK
full_accessinvoices_read_write

Lists the certificates of a company.

curl "$BASE_URL/companies/$COMPANY_ID/certificates" \
  -H "X-API-Key: $CORVO_API_KEY"

Response — 200 OK

{
  "data": [
    {
      "id": "9a2b7c40-1d5e-4f6a-8b3c-5d7e9f0a2b41",
      "companyId": "3f1c8a90-6b2e-4d5a-9c11-8e2f0a7b4d11",
      "serialNumber": "3881234567",
      "status": "active",
      "validUntil": "2027-01-01T00:00:00.000Z"
    }
  ],
  "pagination": {
    "limit": 50,
    "hasMore": false,
    "nextCursor": null
  }
}
DELETE/v1/companies/:companyId/certificates/:certId204 No Content
full_access

Revokes a certificate and updates the company's readiness.

curl -X DELETE "$BASE_URL/companies/$COMPANY_ID/certificates/$CERT_ID" \
  -H "X-API-Key: $CORVO_API_KEY"