Returns VC Document as per MessageID

Get VC

Returns VC

GET/api/v1/entities/vc-documents/{messageId}
Path parameters
messageId*string

Message identifier

Example: "1706823227.586179534"
Response

VC details

Body
id*string

Message identifier

Example: "1706823227.586179534"
uuid*string

UUID

Example: "93938a10-d032-4a9b-9425-092e58bffbf7"
item*object
row*object
history*array of object
schema*object

VC Schema

Request
const response = await fetch('/api/v1/entities/vc-documents/{messageId}', {
    method: 'GET',
    headers: {},
});
const data = await response.json();
Response
{
  "id": "1706823227.586179534",
  "uuid": "93938a10-d032-4a9b-9425-092e58bffbf7",
  "item": {
    "id": "667c240639282050117a1985",
    "topicId": "0.0.4481265",
    "consensusTimestamp": "1706823227.586179534",
    "owner": "0.0.1",
    "uuid": "93938a10-d032-4a9b-9425-092e58bffbf7",
    "status": "NEW",
    "statusReason": "Revoked",
    "lang": "en-US",
    "responseType": "str",
    "statusMessage": "text",
    "files": [
      "QmYtKEVfpbDwn7XLHjnjap224ESi3vLiYpkbWoabnxs6cX"
    ],
    "topics": [
      "0.0.4481265"
    ],
    "tokens": [
      "0.0.4481265"
    ],
    "type": "VC-Document",
    "action": "create-vc-document",
    "options": {
      "issuer": "did:hedera:testnet:8Go53QCUXZ4nzSQMyoWovWCxseogGTMLDiHg14Fkz4VN_0.0.4481265",
      "relationships": [
        "1706823227.586179534"
      ],
      "documentStatus": "Approved",
      "encodedData": false
    },
    "analytics": {
      "policyId": "1706823227.586179534",
      "schemaId": "1706823227.586179534",
      "schemaName": "Monitoring Report",
      "textSearch": "text"
    },
    "documents": [
      "\"{\"id\":\"urn:uuid:229f8416-db6b-4d68-90da-38a5355126f5\",\"type\":[\"VerifiableCredential\"],\"issuer\":\"did:hedera:testnet:4dKeEsD5qLq5DB5KhA6qyh61XMHtm94FdQFTJsDYRaSa_0.0.2195223\",\"issuanceDate\":\"2024-02-02T10:06:53.300Z\",\"@context\":[\"https://www.w3.org/2018/credentials/v1\",\"ipfs://bafkreiam7a2vox6q7yweh4xsebpp4vnonasxlzcdsaxt2cicviax4f7ruq\"],\"credentialSubject\":[{\"@context\":[\"ipfs://bafkreiam7a2vox6q7yweh4xsebpp4vnonasxlzcdsaxt2cicviax4f7ruq\"],\"id\":\"did:hedera:testnet:4dKeEsD5qLq5DB5KhA6qyh61XMHtm94FdQFTJsDYRaSa_0.0.2195223\",\"type\":\"StandardRegistry\"}],\"proof\":{\"type\":\"Ed25519Signature2018\",\"created\":\"2024-02-02T10:06:53Z\",\"verificationMethod\":\"did:hedera:testnet:4dKeEsD5qLq5DB5KhA6qyh61XMHtm94FdQFTJsDYRaSa_0.0.2195223#did-root-key\",\"proofPurpose\":\"assertionMethod\",\"jws\":\"eyJhbGciOiJFZERTQSIsImI2NCI6ZmFsc2UsImNyaXQiOlsiYjY0Il19..YElNPdCNkj8wzABUNgWYo3Yge0qrGA2KbxBWDKBzACJJe70ItIZsgbIQUHMnFbcKpXB1cSnHQ-H5WH_7uZ_3CQ\"}}\""
    ]
  },
  "row": {
    "id": "667c240639282050117a1985",
    "consensusTimestamp": "1706823227.586179534",
    "topicId": "0.0.4481265",
    "status": "LOADED",
    "lastUpdate": 1716755852055,
    "message": "eyJpZCI6ImVhYTYyOWZmLWM4NmItNDEyZS1iYzYwLWM4NDk2OTJkMDBiYiIsInN0YXR1cyI6IklTU1VFIiwidHlwZSI6IlN0YW5kYXJkIFJlZ2lzdHJ5IiwiYWN0aW9uIjoiSW5pdCIsImxhbmciOiJlbi1VUyIsImRpZCI6ImRpZDpoZWRlcmE6dGVzdG5ldDpBYkd6Q3hpRzRlZ0xibldCUERpaHdMUVIza0tLcnNGNmJnSDdUdmVGYjI3bl8wLjAuMjE3NiIsInRvcGljSWQiOiIwLjAuMjE3NiIsImF0dHJpYnV0ZXMiOnsiZ2VvZ3JhcGh5IjoidGVzdCIsImxhdyI6InRlc3R0ZXMiLCJ0YWdzIjoidGVzdCJ9fQ",
    "sequenceNumber": 2,
    "owner": "0.0.1914",
    "chunkId": "1706817694.014944860",
    "chunkNumber": 1,
    "chunkTotal": 1,
    "type": "Message",
    "data": "`{\"id\":\"eaa629ff-c86b-412e-bc60-c849692d00bb\",\"status\":\"ISSUE\",\"type\":\"Standard Registry\",\"action\":\"Init\",\"lang\":\"en-US\",\"did\":\"did:hedera:testnet:AbGzCxiG4egLbnWBPDihwLQR3kKKrsF6bgH7TveFb27n_0.0.2176\",\"topicId\":\"0.0.2176\",\"attributes\":{\"geography\":\"test\",\"law\":\"testtes\",\"tags\":\"test\"}}`"
  },
  "history": [
    {
      "id": "667c240639282050117a1985",
      "topicId": "0.0.4481265",
      "consensusTimestamp": "1706823227.586179534",
      "owner": "0.0.1",
      "uuid": "93938a10-d032-4a9b-9425-092e58bffbf7",
      "status": "NEW",
      "statusReason": "Revoked",
      "lang": "en-US",
      "responseType": "str",
      "statusMessage": "text",
      "files": [
        "QmYtKEVfpbDwn7XLHjnjap224ESi3vLiYpkbWoabnxs6cX"
      ],
      "topics": [
        "0.0.4481265"
      ],
      "tokens": [
        "0.0.4481265"
      ],
      "type": "VC-Document",
      "action": "create-vc-document",
      "options": {
        "issuer": "did:hedera:testnet:8Go53QCUXZ4nzSQMyoWovWCxseogGTMLDiHg14Fkz4VN_0.0.4481265",
        "relationships": [
          "1706823227.586179534"
        ],
        "documentStatus": "Approved",
        "encodedData": false
      },
      "analytics": {
        "policyId": "1706823227.586179534",
        "schemaId": "1706823227.586179534",
        "schemaName": "Monitoring Report",
        "textSearch": "text"
      },
      "documents": [
        "\"{\"id\":\"urn:uuid:229f8416-db6b-4d68-90da-38a5355126f5\",\"type\":[\"VerifiableCredential\"],\"issuer\":\"did:hedera:testnet:4dKeEsD5qLq5DB5KhA6qyh61XMHtm94FdQFTJsDYRaSa_0.0.2195223\",\"issuanceDate\":\"2024-02-02T10:06:53.300Z\",\"@context\":[\"https://www.w3.org/2018/credentials/v1\",\"ipfs://bafkreiam7a2vox6q7yweh4xsebpp4vnonasxlzcdsaxt2cicviax4f7ruq\"],\"credentialSubject\":[{\"@context\":[\"ipfs://bafkreiam7a2vox6q7yweh4xsebpp4vnonasxlzcdsaxt2cicviax4f7ruq\"],\"id\":\"did:hedera:testnet:4dKeEsD5qLq5DB5KhA6qyh61XMHtm94FdQFTJsDYRaSa_0.0.2195223\",\"type\":\"StandardRegistry\"}],\"proof\":{\"type\":\"Ed25519Signature2018\",\"created\":\"2024-02-02T10:06:53Z\",\"verificationMethod\":\"did:hedera:testnet:4dKeEsD5qLq5DB5KhA6qyh61XMHtm94FdQFTJsDYRaSa_0.0.2195223#did-root-key\",\"proofPurpose\":\"assertionMethod\",\"jws\":\"eyJhbGciOiJFZERTQSIsImI2NCI6ZmFsc2UsImNyaXQiOlsiYjY0Il19..YElNPdCNkj8wzABUNgWYo3Yge0qrGA2KbxBWDKBzACJJe70ItIZsgbIQUHMnFbcKpXB1cSnHQ-H5WH_7uZ_3CQ\"}}\""
      ]
    }
  ],
  "schema": {
    "$id": "#StandardRegistry",
    "$comment": "{ \"@id\": \"#StandardRegistry\", \"term\": \"StandardRegistry\" }",
    "title": "StandardRegistry",
    "description": "<p>StandardRegistry</p>",
    "type": "object",
    "properties": {
      "@context": {
        "oneOf": [
          {
            "type": "string"
          },
          {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        ],
        "readOnly": true
      },
      "type": {
        "oneOf": [
          {
            "type": "string"
          },
          {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        ],
        "readOnly": true
      },
      "id": {
        "type": "string",
        "readOnly": true
      },
      "geography": {
        "$comment": "{\"term\": \"geography\", \"@id\": \"https://www.schema.org/text\"}",
        "title": "geography",
        "description": "<p>geography</p>",
        "type": "string",
        "readOnly": false
      },
      "law": {
        "$comment": "{\"term\": \"law\", \"@id\": \"https://www.schema.org/text\"}",
        "title": "law",
        "description": "<p>law</p>",
        "type": "string",
        "readOnly": false
      },
      "tags": {
        "$comment": "{\"term\": \"tags\", \"@id\": \"https://www.schema.org/text\"}",
        "title": "tags",
        "description": "<p>tags</p>",
        "type": "string",
        "readOnly": false
      },
      "ISIC": {
        "$comment": "{\"term\": \"ISIC\", \"@id\": \"https://www.schema.org/text\"}",
        "title": "ISIC",
        "description": "<p>ISIC</p>",
        "type": "string",
        "readOnly": false
      }
    },
    "required": [
      "geography",
      "law",
      "tags"
    ],
    "additionalProperties": false
  }
}

Last updated