1. Digital certificate
  2. Upload A1 certificate
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

StatusDescription
201Certificate registered.
400Invalid file or wrong password.
401Credential 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"