Notifications
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.
Connection Request
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
Connection Accepted
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
Credential Received
When sending a credential to a profile, the profile who will receive the credential will receive a notification payload of the following structure:
Where senderProfile
and receiverProfile
are each LCNProfile
objects, and uri
is a URI that resolves to the credential that was sent.
Boost Received
When sending a boost to a profile, the profile who will receive the boost will receive a notification payload of the following structure:
Where senderProfile
and receiverProfile
are each LCNProfile
objects, and uri
is a URI that resolves to the boost that was sent.
Boost Accepted
When accepting a sent boost, the profile who sent the boost will receive a notification payload of the following structure:
Where senderProfile
and receiverProfile
are each LCNProfile
objects, and uri
is a URI that resolves to the boost that was sent.
Presentation Received
When sending a presentation to a profile, the profile who will receive the presentation will receive a notification payload of the following structure:
Where senderProfile
and receiverProfile
are each LCNProfile
objects, and uri
is a URI that resolves to the presentation that was sent.
Consent Flow Transaction
Consent
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'
.
Re-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'
.
Updated Terms
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'
.
Withdrawn Consent
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'
.
Last updated