API ReferenceReferenceBatches
Retrieve a batch
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
^bat_[A-Z0-9]{26}$Response Body
application/json
application/json
application/json
curl -X GET "https://api.learncoin.me/v1/batches/bat_01HXYZABCDEF1234567890ABCD"{
"id": "string",
"status": "pending",
"credentials_count": 0,
"created_at": "2019-08-24T14:15:22Z",
"anchored_at": "2019-08-24T14:15:22Z",
"environment": "test",
"merkle_root": "0x7c2f91a8…",
"anchor_transaction": {
"chain": "base-mainnet",
"hash": "0xabcd…ef12",
"block_number": 0,
"explorer_url": "http://example.com"
},
"credentials": [
{
"id": "string",
"recipient_id": "string",
"verify_url": "http://example.com"
}
],
"error": "string"
}{
"error": {
"code": "credential_not_found",
"message": "string",
"request_id": "req_01HXYZABCDEF"
}
}{
"error": {
"code": "credential_not_found",
"message": "string",
"request_id": "req_01HXYZABCDEF"
}
}Create a batch of credentials
Submit one or more credentials for signing and anchoring. The endpoint returns immediately; signing + anchoring complete asynchronously, typically within 60 seconds on testnet. Subscribe to `batch.anchored` webhooks rather than polling.
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).