Certificates
Upload and manage A1 (PKCS#12) certificates for issuance.
Permissions: nfse.certificates.view to list and nfse.certificates.manage to upload/revoke.
/v1/companies/:companyId/certificates201 Createdfull_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.
| Field | Type | Required | Description |
|---|---|---|---|
| file | file | ✓ | PKCS#12 certificate (.p12/.pfx), max 50 × 1024 bytes. |
| password | string | ✓ | 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"
}
}/v1/companies/:companyId/certificates200 OKfull_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
}
}/v1/companies/:companyId/certificates/:certId204 No Contentfull_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"