HomeDocumentationAPI ReferenceChangelog
Arianee Protocol DocumentationLog In
Documentation

Events Management

Create an event that will be linked to a digital passport through the NMP.

Overview

  1. Event Creation Request: An interface provider initiates an API request to create an event on behalf of another actor (e.g., a repairer). The request includes the event details and client account wallet ID, which represents the identity of the repairer.
  2. JWT Signature by NMP: NMP generates and signs a JWT, embedding the provided client account wallet ID to verify the right to link an event.
  3. Issuer Signature Retrieval: A request is sent to the Custody Gateway to obtain the issuerSignature associated with the client account wallet.
  4. Final Event Creation: Using the obtained issuerSignature, the event is created and securely linked to the correct client account wallet.

Create Event

URL

To create an identity, use /account/:accountId/delegatedIssuance/createEvent.

POST - https://{{nmpUrl}}/account/:accountId/delegatedIssuance/createEvent

Body

{
    "smartAsset":{
        "id":41242760
    },
    "content":{
                      "eventType": "initialSale",
                      "language": "fr-FR",
                      "title": "Première mise en service du produit",
                      "description": "Votre produit a été vendu pour la première fois par ...",
                      "eventDate": "2025-02-22T14:26:19.375Z",
                      "$schema": "https://cert.arianee.org/version3/ArianeeEvent-i18n.json"
                  }  
}
FieldTypeRequiredDescription
smartAssetNumber✅ID of the digital passport that will receive the event.
contentObject✅Content of the event.

Return Payload

Status CodeSuccessDescription
200trueThe transaction is sent to the blockchain. The event has been created.

Did this page help you?