API ReferenceReferenceCredentials
Retrieve a credential
Returns the credential's current status plus the signed JSON-LD document (same artifact consumed by the public `/c/{id}` verification page and by any Blockcerts-compatible verifier).
Authorization
BearerAuth AuthorizationBearer <token>
Bearer token in the Authorization header. Key prefix determines
environment: lrn_test_ → Base Sepolia, lrn_live_ → Base mainnet.
In: header
Path Parameters
id*string
Match
^crd_[A-Z0-9]{26}$Response Body
application/json
application/json
application/json
curl -X GET "https://api.learncoin.me/v1/credentials/crd_01HXYZABCDEF1234567890ABCD"{
"id": "string",
"verify_url": "http://example.com",
"status": "pending",
"revoked": true,
"erased": true,
"signed_credential": {
"@context": [
"http://example.com"
],
"id": "string",
"type": [
"string"
],
"issuer": {
"id": "string",
"type": [
"string"
],
"name": "string"
},
"issuanceDate": "2019-08-24T14:15:22Z",
"expirationDate": "2019-08-24T14:15:22Z",
"credentialSubject": {},
"proof": {
"type": "MerkleProof2019",
"created": "2019-08-24T14:15:22Z",
"proofPurpose": "string",
"verificationMethod": "string",
"proofValue": "string"
}
}
}{
"error": {
"code": "credential_not_found",
"message": "string",
"request_id": "req_01HXYZABCDEF"
}
}{
"error": {
"code": "credential_not_found",
"message": "string",
"request_id": "req_01HXYZABCDEF"
}
}