- Digital certificate
- Upload A1 certificate
Digital certificate
Upload A1 certificate
Uploads the organization's A1 digital certificate (`.pfx`) and its password
POST
Uploads the organization’s A1 digital certificate (.pfx) and its password.
Authentication
x-enterprise-key
required
string
Enterprise key with this route’s permission. See Authentication.
x-organization-id
required
string
ID of the organization (issuing company) the operation applies to.
Body
multipart/form-data
file
required
string
The A1 certificate’s .pfx file.
password
required
string
The certificate’s password.
Responses
| Status | Description |
|---|---|
201 | Certificate registered. |
400 | Invalid file or wrong password. |
401 | Credential missing, invalid, or expired. |
curl -X POST "https://api.treeunfe.com.br/api/v1/certificates/upload" \
-H "x-enterprise-key: YOUR_ENTERPRISE_KEY" \
-H "x-organization-id: ORGANIZATION_ID" \
-F "file=@certificado.pfx" \
-F "password=CERTIFICATE_PASSWORD"
curl -X POST "https://api.treeunfe.com.br/api/v1/certificates/upload" \
-H "x-enterprise-key: YOUR_ENTERPRISE_KEY" \
-H "x-organization-id: ORGANIZATION_ID" \
-F "file=@certificado.pfx" \
-F "password=CERTIFICATE_PASSWORD"