---
title: "Mexico NOM-151"
description: "Comply with Mexico's NOM-151 standard by attaching a preservation certificate to your deliverables"
canonical: "https://signatureapi.com/docs/api/resources/envelopes/attestation/mexico-nom-151"
source: "https://signatureapi.com/docs/api/resources/envelopes/attestation/mexico-nom-151.md"
last_verified_api_version: "1.18.1"
last_modified: "2026-11-18T17:28:02Z"
---

# Mexico NOM-151

Comply with Mexico's NOM-151 standard by attaching a preservation certificate to your deliverables

_Last verified against API version 1.18.1._

> **Tip:** To enable NOM-151 attestations for your account, [contact support](https://signatureapi.com/support).

[NOM-151](https://www.dof.gob.mx/normasOficiales/6499/seeco11_C/seeco11_C.html) defines the legal standards for data message preservation and document digitization in Mexico.

When `attestation` is set to `mx_nom151`, SignatureAPI obtains a preservation certificate (constancia de conservación) in ASN.1 format for the sealed deliverable PDF. The constancia is a separate file: it is attached to the deliverable email and available from the verification link that SignatureAPI adds on the last page of the deliverable. Both the certificate and the deliverable can be verified using any ASN.1 signature verification tool.

**How a NOM-151 preservation certificate is produced**

Parts:

- **Deliverable** (SignatureAPI): Generated when the envelope completes.
- **SHA-256 hash** (SignatureAPI): Only the hash leaves SignatureAPI, never the document.
- **Preservation certificate (ASN.1)** (SignatureAPI): Attached to the deliverable and downloadable from the verification link on its last page.
- **Issues the constancia** (NOM-151 certification provider): Certifies that the document with this hash existed, unaltered, at that time.

Connections:

- Deliverable to SHA-256 hash: hashed
- SHA-256 hash to Issues the constancia: sent
- Issues the constancia to Preservation certificate (ASN.1): returns

![Last page of a deliverable titled Constancia de conservación NOM-151, with the verification link, a QR code and a NOM-151 Mexico seal](https://signatureapi.com/docs/images/mx_nom151.webp)

*The page SignatureAPI adds at the end of the deliverable*

To use NOM-151, set `attestation` to `mx_nom151` when creating the envelope:

```http {8}
POST /v1/envelopes HTTP/1.1
Host: api.signatureapi.com
X-API-Key: YOUR_API_KEY
Content-Type: application/json

{
  "title": "Contrato de Servicios",
  "attestation": "mx_nom151",
  "documents": [
    {
      "url": "https://pub-9cb75390636c4a8a83a6f76da33d7f45.r2.dev/docs-samples/acme-service-agreement.pdf",
      "places": [
        { "key": "client_signs_here", "type": "signature", "recipient_key": "client" },
        { "key": "provider_signs_here", "type": "signature", "recipient_key": "provider" }
      ]
    }
  ],
  "recipients": [
    { "type": "signer", "key": "client", "name": "Jane Doe", "email": "jane.doe@example.com" },
    { "type": "signer", "key": "provider", "name": "John Smith", "email": "john.smith@example.com" }
  ]
}
```

## Verify a constancia

The constancia is an RFC 3161 timestamp response. Its message imprint is the SHA-256 hash of the whole deliverable PDF, so any change to the PDF breaks the match. Choose the deliverable and its constancia to check them:

Interactive tool: check a NOM-151 constancia against its deliverable on [this page](https://signatureapi.com/docs/api/resources/envelopes/attestation/mexico-nom-151). The files are read in the browser and never uploaded.

The constancia is an RFC 3161 timestamp response (DER). The tool checks that the SHA-256 of the whole deliverable PDF equals the message imprint in the constancia and that the constancia signature verifies, and shows the time, the issuing certificate and the policy OID. It does not check revocation, and it does not bundle the Secretaría de Economía root.

To check the hash offline with OpenSSL: `openssl ts -reply -in constancia.asn1 -text` prints the message imprint; compare it with `sha256sum deliverable.pdf`.

## Test mode and pricing

In test mode, no request goes to the certification provider. SignatureAPI attaches a test timestamp token in place of the preservation certificate, so the deliverable has the same structure but no legal value in Mexico. Test-mode envelopes are never billed.

In live mode, NOM-151 attestation adds $0.10 per completed envelope.
