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 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

circle-info

Signing Behavior: The send method uses client-side signing when key material is available. Otherwise, it falls back to your registered signing authority.


Use semantic search when keyword matching is too strict and you want meaning-based results.

circle-info

Semantic search requires skill embeddings to be present. In LearnCard Network, embeddings are generated for skill create/update/sync flows and can be backfilled when enabled by environment configuration.


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

Status
Description

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:

circle-info

Pagination: Use cursor from the response to fetch additional pages. The hasMore flag indicates if more records exist.

Last updated

Was this helpful?