واجهة البرمجة
Notifications
GET
BearerAuthheader
AuthorizationBearer <token>JWT access token. Obtain via POST /v1/auth/login.
limit?LimitRange
1 <= value <= 50Default
20Successful Response
application/json- response
items*array<>unread*Unreadcurl -X GET 'https://api.aisc.sa/v1/me/notifications'{ "items": [ { "created_at": "2019-08-24T14:15:22Z", "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "params": {}, "read_at": "2019-08-24T14:15:22Z", "target_path": "string", "template_id": "string" } ], "unread": 0}GET
BearerAuthheader
AuthorizationBearer <token>JWT access token. Obtain via POST /v1/auth/login.
item_id*Item IdFormat
uuidSuccessful Response
application/json- response
created_at*Created AtFormat
date-timeid*IdFormat
uuidparams*read_at*|nulltarget_path*Target Pathtemplate_id*Template Idcurl -X GET 'https://api.aisc.sa/v1/me/notifications/497f6eca-6276-4993-bfeb-53cbbbba6f08'{ "created_at": "2019-08-24T14:15:22Z", "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "params": {}, "read_at": "2019-08-24T14:15:22Z", "target_path": "string", "template_id": "string"}POST
BearerAuthheader
AuthorizationBearer <token>JWT access token. Obtain via POST /v1/auth/login.
item_id*Item IdFormat
uuidSuccessful Response
curl -X POST 'https://api.aisc.sa/v1/me/notifications/497f6eca-6276-4993-bfeb-53cbbbba6f08/read'Empty
GET
Check the link and name the topics it stops. Writes nothing, so a mail scanner that opens links cannot unsubscribe anyone.
BearerAuthheader
AuthorizationBearer <token>JWT access token. Obtain via POST /v1/auth/login.
token*TokenSuccessful Response
application/json- response
topic*Topictopics*array<string>curl -X GET 'https://api.aisc.sa/v1/u/string'{ "topic": "string", "topics": [ "string" ]}POST
Withdraw what the link names (RFC 8058 one-click: the body is ignored).
Following it twice withdraws once; withdrawn is empty the second time.
BearerAuthheader
AuthorizationBearer <token>JWT access token. Obtain via POST /v1/auth/login.
token*TokenSuccessful Response
application/json- response
withdrawn*array<string>curl -X POST 'https://api.aisc.sa/v1/u/string'{ "withdrawn": [ "string" ]}