Documentation:IntroductionSeal DocumentVerify DocumentHistoryMutual TLS

Verify Document

Verify documents with the following end point:

POST https://sealninja.com/api/documents/verify

Request

This end point accepts one parameter:

document

The document to be verified. Supported document types are: PDF, DOCX, XLSX, PPTX, PNG, JPEG and XML.

An example request with curl could look something like this:

curl --user 'api:YOUR_API_KEY' \
  --form document='@invoice.pdf;type=application/pdf' \
  https://sealninja.com/api/documents/verify

Response

This end point returns the seal of the provided document, when the document is successfully verified. This is how such a seal could look like:

{
  "seal": {
    "sub": {
      "id": "1261688f-9a4c-4406-a5d5-743c4a20abcb",
      "name": "invoice.pdf",
      "mimetype": "application/pdf",
      "checksum": "2134158ac85fb250df1b67bec00aef6fc5fe6e233d7d0c5c931787ae0557a2c7598e53c176242f1ebf604c1aa06c3483b75c2ba7f8a34642820d19d87f252e63",
      "origin": {
        "id": "4a552be4-a606-4e7b-8786-02899283b5eb",
        "email": "info@example.com"
      },
      "details": {
        "seller": "John",
        "price": 100
      }
    },
    "iss": {
      "email": "info@sealninja.com",
      "commonName": "sealninja.com",
      "certificate": "-----BEGIN CERTIFICATE----- MIIGBzCCBO+gAwIBAgIRAMVfBVtPZGgqeDvQ+Yn5T5swDQYJKoZIhvcNAQELBQAw gY8xCzAJBgNVBAYTAkdCMRswGQYDVQQIExJHcmVhdGVyIE1hbmNoZXN0ZXIxEDAO BgNVBAcTB1NhbGZvcmQxGDAWBgNVBAoTD1NlY3RpZ28gTGltaXRlZDE3MDUGA1UE AxMuU2VjdGlnbyBSU0EgRG9tYWluIFZhbGlkYXRpb24gU2VjdXJlIFNlcnZlciBD QTAeFw0xOTA1MTIwMDAwMDBaFw0yMDA1MTEyMzU5NTlaMFYxITAfBgNVBAsTGERv bWFpbiBDb250cm9sIFZhbGlkYXRlZDEUMBIGA1UECxMLUG9zaXRpdmVTU0wxGzAZ BgNVBAMTEnRlc3Quc2VhbG5pbmphLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEP ADCCAQoCggEBAMx0whhxSv0Z29K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nfVsDntTZIfdBJ4DJ6kZoMhKESEoQYdZaBcUVYAAABaq2nP3IAAAQDAEgw RgIhAJ79d16pawJEh2+F8Of4iCp/rayLUmmXbR/W1nMOHgeIAiEAhOPxSmP2Kxl7 XSIwcB2KNtP3rTQ0H8B9XtH6nOPeknwwDQYJKoZIhvcNAQELBQADggEBAEo6gmnR 8WU2blorq5/KyTZSvviqdAoQDBQfrkhuct0xQJ+ZqnEXTG4I6KA/d80/8fW/C1bB Ba98MRfie7d7dwX7QHVJSXpf0YwMQ2/czJlGFn+QMyYUIhFICrC80elcTEtBmsOU DPzOYlULQjv1ckMXZaHW2khAyViUNMJobJ9gVBUd0z8YVJVrkl+aAuTgIwdYXlmJ lbx9LKKpwGyYhvV6jzV9CP6j9uBampIn0gsjH4HIRZV71vFkXfmGckHcGqMOa/1u ecLNIwD9LbYOa8WxgcQ7+/RHWKKZEwCkweBEvNAFxmDNPjjTUkZGMMjqelMhbhpk VN9d5/WeuoLHIcc= -----END CERTIFICATE-----"
    },
    "iat": 1540927192
  }
}

DashboardDocumentationPricingTerms and ConditionsPrivacy Policy

GitHubTwitterLinkedIninfo@sealninja.com

 

© 2019 Maximum Entropy Software Solutions