Usage Examples
This page provides common usage examples for the LearnCloud Network API, so you can quickly see how to
Send and receive credentials, boosts, and presentations
Create and claim credentials through peer-to-peer or QR flows
Register and manage Signing Authorities
Trigger and validate ConsentFlows
Monitor health and fetch metadata (like DIDs or challenge keys)
Run semantic search across skill frameworks
Link and use OpenSALT skill frameworks
Each example is standalone and self-explanatory. Scroll, copy, and paste what you need.
β All examples assume:
You have a valid LearnCloud JWT (via auth or delegation)
Youβre storing data on behalf of a user identified by a DID
Youβre using the endpoint:
https://network.learncard.com/api
π Authentication
All requests require:
Authorization: Bearer <your-JWT>The JWT must resolve to a DID matching the stored object owner, unless delegated.
π€ Sending Credentials
The send Method (Recommended)
The simplest way to send credentials is using the send method, which handles credential issuance, signing, and delivery in a single call.
Using an Existing Boost Template
Creating and Sending a New Boost
With ConsentFlow Contract
π Semantic Skill Search
Use semantic search when keyword matching is too strict and you want meaning-based results.
OpenSALT Skill Frameworks
Link an OpenSALT framework by CASE URL (or UUID), then sync it locally:
List frameworks available to the current profile (managed + public):
To align a boost with skills from that framework:
For full details, see Skill Frameworks & OpenSALT.
π± App Store Credentials
Fetch Credentials Sent by an App
Retrieve credentials that a specific app (App Store listing) has sent to the current user. Useful for building in-app credential dashboards.
Credential Status Values
pending
Credential sent but not yet claimed by user
claimed
User has claimed the credential
revoked
Credential has been revoked by issuer
Resolving Full Credential Data
The API returns credentialUri which can be used to fetch the full Verifiable Credential:
Last updated
Was this helpful?