Documents

Finds a document's details by its key

The key may be given either in formatted form (e.g. XXXX-XXXX-XXXX-XXXX) or unformatted (e.g. XXXXXXXXXXXXXXXX)

If a document with the given key is not found, the response is a 200 (Success) with "found": false.

get/api/documents/keys/{key}

Request

  • Base URL: / (relative, and the document was published on a file host, not at the API’s origin)
  • URL: /api/documents/keys/{key}
  • Auth: none declared

Path parameters

keystring required

Response

Success

foundboolean

Example response

{
  "found": true,
  "document": {
    "signers": [
      {
        "date": "2000-01-23T04:56:07.000+00:00",
        "certificate": {
          "emailAddress": "emailAddress",
          "organizationIdentifier": "organizationIdentifier",
          "organization": "organization",
          "thumbprint": "thumbprint",
          "subjectIdentifier": "subjectIdentifier",
          "subjectCommonName": "subjectCommonName",
          "thumbprintSHA256": "thumbprintSHA256",
          "subjectDisplayName": "subjectDisplayName"
        }
      },
      {
        "date": "2000-01-23T04:56:07.000+00:00",
        "certificate": {
          "emailAddress": "emailAddress",
          "organizationIdentifier": "organizationIdentifier",
          "organization": "organization",
          "thumbprint": "thumbprint",
          "subjectIdentifier": "subjectIdentifier",
          "subjectCommonName": "subjectCommonName",
          "thumbprintSHA256": "thumbprintSHA256",
          "subjectDisplayName": "subjectDisplayName"
        }
      }
    ],
    "availableUntil": "2000-01-23T04:56:07.000+00:00",
    "metadata": {
      "key": [
        "metadata",
        "metadata"
      ]
    },
    "originalFile": {
      "name": "name",
      "length": 0,
      "location": "location",
      "mimeType": "mimeType",
      "contentType": "contentType",
      "content": "content",
      "url": "url",
      "blobToken": "blobToken"
    },
    "markedFile": {
      "name": "name",
      "length": 0,
      "location": "location",
      "mimeType": "mimeType",
      "contentType": "contentType",
      "content": "content",
      "url": "url",
      "blobToken": "blobToken"
    },
    "signatureType": "Pdf",
    "signedFile": {
      "name": "name",
      "length": 0,
      "location": "location",
      "mimeType": "mimeType",
      "contentType": "contentType",
      "content": "content",
      "url": "url",
      "blobToken": "blobToken"
    },
    "id": "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
    "key": "key",
    "formattedKey": "formattedKey"
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.