Consistent_identitiesNotificationRead

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

Authorization

token_auth_2
AuthorizationBearer <token>

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

name_list*string

Response Body

application/json

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