Notifications & Webhooks
Last updated
Was this helpful?
Last updated
Was this helpful?
The LearnCloud Network includes a notification system that alerts users of important events such as received credentials, connection requests, and consent requests.
Profiles may optionally add a notificationsWebhook
url, which will cause the LCN service to send payloads of a specific shape to that URL. These payloads are described here.
When requesting a connection with a profile, the target profile will receive a notification payload of the following structure:
Where targetProfile
and requesterProfile
are each LCNProfile
objects
When accepting a connection request, the profile who requested the connection will receive a notification payload of the following structure:
Where accepterProfile
and requesterProfile
are each LCNProfile
objects
When sending a credential to a profile, the profile who will receive the credential will receive a notification payload of the following structure:
When sending a boost to a profile, the profile who will receive the boost will receive a notification payload of the following structure:
When accepting a sent boost, the profile who sent the boost will receive a notification payload of the following structure:
When sending a presentation to a profile, the profile who will receive the presentation will receive a notification payload of the following structure:
When consenting to a Consent Flow Contract, the owner of the contract will receive a notification payload of the following structure:
Where ownerProfile
and consenterProfile
are each LCNProfile
objects, contract
is a ConsentFlowContractDetails
object, and transaction
is a ConsentFlowTransaction
object with its action
set to 'consent'
.
When a profile consents, withdraws consent, then reconsents to a contract, the owner of the contract will receive a notification payload of the following structure:
Where ownerProfile
and consenterProfile
are each LCNProfile
objects, contract
is a ConsentFlowContractDetails
object, and transaction
is a ConsentFlowTransaction
object with its action
set to 'consent'
.
When a profile updates its terms to a contract, the owner of the contract will receive a notification payload of the following structure:
Where ownerProfile
and consenterProfile
are each LCNProfile
objects, contract
is a ConsentFlowContractDetails
object, and transaction
is a ConsentFlowTransaction
object with its action
set to 'update'
.
When a profile withdraws consent to a contract, the owner of the contrct will receive a notification payload of the following structure:
Where ownerProfile
and consenterProfile
are each LCNProfile
objects, contract
is a ConsentFlowContractDetails
object, and transaction
is a ConsentFlowTransaction
object with its action
set to 'withdraw'
.
Where senderProfile
and receiverProfile
are each LCNProfile
objects, and uri
is a that resolves to the credential that was sent.
Where senderProfile
and receiverProfile
are each LCNProfile
objects, and uri
is a that resolves to the boost that was sent.
Where senderProfile
and receiverProfile
are each LCNProfile
objects, and uri
is a that resolves to the boost that was sent.
Where senderProfile
and receiverProfile
are each LCNProfile
objects, and uri
is a that resolves to the presentation that was sent.