List organization notification delivery history
GET
/api/notifications/history
const url = 'https://api.getvespy.com/api/notifications/history?recipientType=user&channel=in_app';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://api.getvespy.com/api/notifications/history?recipientType=user&channel=in_app' \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”search
string
recipientType
string
recipientId
string format: uuid
channel
string
limit
integer
offset
integer
Responses
Section titled “Responses”Default Response
Media typeapplication/json
object
items
required
Array<object>
object
actorUser
required
object
fullName
required
string
id
required
string format: uuid
actorUserId
required
string format: uuid
body
required
string
channels
required
Array<string>
createdAt
required
string format: date-time
deliveries
required
Array<object>
object
channel
required
string
deliveredAt
required
string format: date-time
deliveryMode
required
string
destination
required
string
sentAt
required
string format: date-time
state
required
string
entityId
required
string format: uuid
entityType
required
string
id
required
string format: uuid
priority
required
string
recipient
required
object
email
required
string format: email
fullName
required
string
phone
required
string
recipientId
required
string format: uuid
recipientType
required
string
role
required
string
tenantId
required
string format: uuid
userId
required
string format: uuid
source
required
string
title
required
string
type
required
string
total
required
integer
Example
{ "items": [ { "channels": [ "in_app" ], "deliveries": [ { "channel": "in_app", "deliveryMode": "immediate", "state": "delivered" } ], "priority": "low", "recipient": { "recipientType": "user", "role": "admin" }, "source": "notification" } ]}Default Response
Media typeapplication/json
object
code
string
errors
Array<object>
object
code
required
string
message
required
string
path
required
string
message
required
string
Examplegenerated
{ "code": "example", "errors": [ { "code": "example", "message": "example", "path": "example" } ], "message": "example"}Default Response
Media typeapplication/json
object
code
string
errors
Array<object>
object
code
required
string
message
required
string
path
required
string
message
required
string
Examplegenerated
{ "code": "example", "errors": [ { "code": "example", "message": "example", "path": "example" } ], "message": "example"}Default Response
Media typeapplication/json
object
code
string
errors
Array<object>
object
code
required
string
message
required
string
path
required
string
message
required
string
Examplegenerated
{ "code": "example", "errors": [ { "code": "example", "message": "example", "path": "example" } ], "message": "example"}