Get's user notifications
curl --request GET \
--url https://sandbox-api.instockrx.com/api/v1/notifications/{email} \
--header 'X-INVIEW-AUTH: <api-key>'const options = {method: 'GET', headers: {'X-INVIEW-AUTH': '<api-key>'}};
fetch('https://sandbox-api.instockrx.com/api/v1/notifications/{email}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://sandbox-api.instockrx.com/api/v1/notifications/{email}"
headers = {"X-INVIEW-AUTH": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)[
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"savedByUserId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"actionLink": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"message": "<string>",
"messageAsHtml": "<string>",
"notificationExpirationDate": "2023-11-07T05:31:56Z",
"notificationSource": 1,
"pharmacyId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"seen": true,
"targetUserId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>"
}
]{
"error": "<string>",
"statusCode": 123,
"message": "<string>"
}{
"error": "<string>",
"statusCode": 123,
"message": "<string>"
}{
"error": "<string>",
"statusCode": 123,
"message": "<string>"
}Utility
Get's user notifications
Retrieves all notifications associated with the specified user account. The user must belong to the group identified by the API key.
Validation Rules
| Field | Required | Type | Rules |
|---|---|---|---|
| email (route) | Yes | string | Must be a valid email of an existing user. User must belong to the group |
GET
/
api
/
v1
/
notifications
/
{email}
Get's user notifications
curl --request GET \
--url https://sandbox-api.instockrx.com/api/v1/notifications/{email} \
--header 'X-INVIEW-AUTH: <api-key>'const options = {method: 'GET', headers: {'X-INVIEW-AUTH': '<api-key>'}};
fetch('https://sandbox-api.instockrx.com/api/v1/notifications/{email}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://sandbox-api.instockrx.com/api/v1/notifications/{email}"
headers = {"X-INVIEW-AUTH": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)[
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"savedByUserId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"actionLink": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"message": "<string>",
"messageAsHtml": "<string>",
"notificationExpirationDate": "2023-11-07T05:31:56Z",
"notificationSource": 1,
"pharmacyId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"seen": true,
"targetUserId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>"
}
]{
"error": "<string>",
"statusCode": 123,
"message": "<string>"
}{
"error": "<string>",
"statusCode": 123,
"message": "<string>"
}{
"error": "<string>",
"statusCode": 123,
"message": "<string>"
}Authorizations
Path Parameters
Response
OK