ICP-Brasil Certificate Endpoints

Define ICP-Brasil Certificate

🚧

Important

Don’t forget to include your tokenAPI and cryptKey in the request.

Ex.: <https://secure.d4sign.com.br/api/v1/safes?tokenAPI=\{YOUR-TOKEN}&cryptKey=\{YOUR-CRYPT-KEY}>

List Defined Certificate

POST/certificate/{UUID-DOCUMENTO}/list

Testar endpoint 🧪


This method lists the digital certificate (ICP-Brasil) that has been defined for the signer.

{
    "Content-Type": "application/json"
}
{
    "key_signer":"NDcwMzE2Nw=="
}
{
    "key_signer": "NDcwMzE2Nw==",
    "uuid_document": "DOCUMENT-UUID",
    "type": "2",
    "pades": "",
    "cpf": "CPF",
    "cnpj": "CNPJ"
}
ParameterDescription
key_signer (required )Signer's key

Add Certificate to Signer

POST/certificate/{UUID-DOCUMENTO}/add

Testar endpoint 🧪


This method will assign a digital certificate type to the signer.

{
    "Content-Type": "application/json"
}
{
  "key_signer": "NDcwMzE2Nw==",
  "document_type": "2",
  "pades": "0",
  "document_number": "CPF or CNPJ"
}
{
    "message": "Success"
}
ParameterDescription
key_signer (required )The signer’s unique key
document_type (required)Defines the type of digital certificate required for signing.
1 = Any certificate
2 = e-CPF
3 = e-CNPJ
pades (optional)Defines whether the signature should follow the PAdES standard. 1 = PAdES e CAdES
0 = CAdES
document_number (optional)Provide the signer's CPF or CNPJ. Leave blank to accept any e-CPF or e-CNPJ certificate.