Skip to content
English
  • There are no suggestions because the search field is empty.

NOM-151 Certificate of Data Preservation via API

A Certificate of Data Preservation generated through Mifiel grants, in accordance with NOM-151, integrity and a certain date to electronic documents

This feature is exclusively available through Mifiel's API and is designed for documents that require a Certificate of Data Preservation without an electronic signature.

Documents signed in Mifiel automatically include a Certificate of Data Preservation.

Contents

  1. What is a Certificate of Data Preservation?

  2. How to Obtain a Certificate of Data Preservation via API

  3. How Do I Get Started?


What is a Certificate of Data Preservation?

A Certificate of Data Preservation is an electronic receipt signed by a Trust Service Provider (PSC, for its Spanish acronym) that incorporates a timestamp in accordance with NOM-151.

Certificates of Data Preservation generated through Mifiel are issued by Advantage Security, a Trust Service Provider accredited by the Ministry of Economy.

The Certificate of Data Preservation demonstrates that a document existed at a specific point in time and that its content has not been altered since it was stamped, providing evidence of its integrity and certain date.

Certificate of Data Preservation do not "make an electronic signature valid." The validity of an electronic signature depends on the process used to create it. For more information, see this article: https://blog.mifiel.com/nom-151-firma-electronica/



How to Obtain a Certificate of Data Preservation via API

Mifiel's NOM-151 API has two endpoints: one for generating a Certificate of Data Preservation and another for retrieving previously generated certificates.

  1. Generate a Certificate of Data Preservation (POST):
    • Endpoint: /api/v1/psc/nom151
    • Accepted parameters in the request body:
      • hash: SHA256 hash string of the document (required).
      • external_id: Unique identifier for external reference.
    • Response includes:
      • id: Unique identifier of the certificate.
      • nom151: Base64 string of the generated certificate.
      • created_at: Date the certificate was created.
      • certificate: Certificate of the Trust Service Provider (PSC) that issued it.
      • hash: SHA256 hash string provided.
  2. Retrieve a Certificate of Data Preservation (GET):
    • Endpoints:
      • By external_id: /api/v1/psc/nom151?external_id={:external_id}
      • By id: /api/v1/psc/nom151/{:id}
    • Response includes:
      • id: Unique identifier of the certificate.
      • nom151: Base64 string of the generated certificate.
      • created_at: Date the certificate was created.
      • certificate: Certificate of the issuing PSC.
      • hash: SHA256 hash string provided​.

Your First Certificate of Data Preservation

Below you'll find examples in different programming languages covering how to obtain the SHA-256 hash of the PDF, authenticate with your API keys, and generate the certificate.

Code Examples

 


How Do I Get Started?

Mifiel has two environments: a test environment (Sandbox) and a production environment. You can start testing in the Sandbox or acquire the feature directly.

To test in the Sandbox:

  1. Create an account in Mifiel's Sandbox.
  2. Contact us via chat (the green icon in the bottom-right corner) to request API access and test credits.
  3. Generate your API keys in the API Settings section.

Once you finish testing, contact us via chat to acquire the feature for your production environment.

To acquire the feature directly:

If you prefer to skip the test environment, contact us via chat and we’ll help you set up your production environment.

Download the price list to see rates based on how many certificates you need.