Consistentidentities

Step 4) Get notifications

Notifications are generated by the system after certain types of events, such as errors or the generation of new swaps. They are generated to notify the user about the processing status.

Notifications are automatically deleted after 600 seconds from their creation.

response = requests.post(URL_API+'/consistent_identities/notification/read',
headers={'Authorization': 'Bearer '+TOKEN},
json={'name_list':'swap, error, download'},
)

Notifications after swap:

name = "new_generation"
data = {
}

Notifications after download ready:

name = "download"
data = {
}

Notification after errors:

name = "error"
data = {
'tasks':"activity where the error occured",
'msg':"error message"
}
POST
/api/consistent_identities/notification/read
AuthorizationBearer <token>

In: header

name_liststring

Response Body

Examples

curl -X POST "https://api.piktid.com/api/consistent_identities/notification/read" \
  -H "Content-Type: application/json" \
  -d '{
    "name_list": "string"
  }'
{
  "notifications_list": [
    {
      "id": 0,
      "name": "string",
      "timestamp": 0,
      "data": {
        "property1": null,
        "property2": null
      }
    }
  ]
}
Empty
Empty
Empty