Retrieve a specific credential by its ID Returns the W3C Verifiable Credential data structure including cryptographic proofs Optionally includes the PDF content for document type credentials
Unique identifier of the credential. Must be a valid MongoDB ObjectId.
"507f1f77bcf86cd799439011"
Whether to include the PDF content for document type credentials
false
Returns the W3C Verifiable Credential structure, internalId and optionallly the PDF content in its most updated version
Credential full entity
W3C Verifiable Credential in JSON-LD format
{
"@context": [
"https://www.w3.org/ns/credentials/v2",
"https://humanos.id/schemas/credential/v1"
],
"id": "https://humanos.id/credentials/crd_abc123",
"type": ["VerifiableCredential"],
"issuer": "did:web:humanos.id",
"issuanceDate": "2025-01-01T00:00:00Z",
"validFrom": "2025-01-01T00:00:00Z",
"validUntil": "2026-01-01T00:00:00Z",
"credentialSubject": {
"id": "did:key:z6MkExample123",
"data": [
{
"label": "pdf",
"type": "pdf",
"value": "JVBERi0xLjQKJeLjz9...",
"hidden": false
}
]
},
"proof": [
{
"type": "DataIntegrityProof",
"cryptosuite": "eddsa-jcs-2022",
"proofPurpose": "assertionMethod",
"verificationMethod": "did:web:humanos.id#key-1",
"proofValue": "z58DAdFfa9SkqZMVPxAQpic7ndSayn1PzZs6ZjWp1CktyGesjuTSwRdoWhAfGFCF5bppETSTojQCrfFPP2oumHKtz",
"actionType": "CREATE",
"actionProof": "0x1234567890abcdef",
"createdAt": "2025-01-01T00:00:00Z"
}
]
}
Base64-encoded PDF document (only included when includePdf=true and resource type is DOCUMENT)
"JVBERi0xLjQKJeLjz9..."