Retrieve notification logs
GET/api/v1/notifications/logs
Retrieve notification logs based on the provided filters. API key must have the View Notification logs
permission.
Request
Query Parameters
The unique identifier of the notification run that this log is associated with.
Possible values: [INITIATIVE_CREATION
, INITIATIVE_CUSTOM_SCHEDULE
, INITIATIVE_N_DAYS_LEFT
, SERVICE_REEVALUATED
, WEEKLY_REPORT
, BROKEN_OPEN_API_SPEC
, ENTITLEMENT_EXPIRATION
, ONCALL_ASSISTANT
, ONBOARDING_MESSAGE
, NOTIFY_INVALID_INTEGRATION
, ONCALL_PERSON_CHANGED
, ONCALL_STARTS_IN_N_DAYS
, TEAM_MEMBER_INVITATION
, PENDING_RULE_EXEMPTION
, TOKEN_EXPIRES_IN_N_DAYS
, SCHEDULED_SCORECARD_RULE_CREATION
, SCORECARD_RULE_ACTIVATES_IN_N_DAYS
, WORKFLOW_STATUS_UPDATE
, WORKFLOW_APPROVAL_PENDING
, VERIFICATION_PERIOD_STARTED
, VERIFICATION_PERIOD_REMINDER
, AI_ASSISTANT_WELCOME_MESSAGE
, ENTITY_SCORE_DROPPED
]
The type of notification.
Possible values: [READY
, IGNORED
, FAILED
, DELIVERED
]
The status of the notification.
Possible values: [USER
, GROUP
]
The type of the notification recipient.
The email address that this notification was sent to.
The unique identifiers of the entities that the notifications were sent to.
The channel in Slack or MS Teams where the notification was sent.
Possible values: [SLACK
, MICROSOFT_TEAMS
, EMAIL
]
The medium used to send the notification.
Possible values: [USER_UNSUBSCRIBED
, WORKSPACE_DISABLED
, TEAM_MEMBER_DISABLED
, CHANNEL_DISABLED
, SCORECARD_DISABLED
, DUPLICATE
, CORTEX_EMPLOYEE
, NON_CORTEX_USERS_DISABLED
, UNSUPPORTED
]
The reason why a notification was ignored.
Possible values: [CHANNEL_NOT_FOUND
, MEMBER_EMAILS_NOT_FOUND
, MISSING_CONTENT
, CLIENT_ERROR
, UNEXPECTED_ERROR
, BACKSTAGE_BASE_URL_MISSING
, NO_SEATS_LEFT
]
The reason why a notification failed to send.
The ISO date and time to start the search from.
The ISO date and time to end the search at.
Default value: 250
Number of results to return per page, between 1 and 1000. Default 250.
Default value: 0
Page number to return, 0-indexed. Default 0.
Possible values: [ASC
, DESC
]
Default value: DESC
Sort the results ascending or descending.
Responses
- 200
- 403
- 429
Successfully retrieved notification logs
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
logs
object[]
required
The date and time that this notification was created.
The date and time that this notification was delivered.
The date and time that this notification was updated.
An additional error message.
Possible values: [CHANNEL_NOT_FOUND
, MEMBER_EMAILS_NOT_FOUND
, MISSING_CONTENT
, CLIENT_ERROR
, UNEXPECTED_ERROR
, BACKSTAGE_BASE_URL_MISSING
, NO_SEATS_LEFT
]
The reason why this notification failed.
The unique identifier of the notification log.
Possible values: [USER_UNSUBSCRIBED
, WORKSPACE_DISABLED
, TEAM_MEMBER_DISABLED
, CHANNEL_DISABLED
, SCORECARD_DISABLED
, DUPLICATE
, CORTEX_EMPLOYEE
, NON_CORTEX_USERS_DISABLED
, UNSUPPORTED
]
The reason why this notification was ignored.
Possible values: [SLACK
, MICROSOFT_TEAMS
, EMAIL
]
The medium used to send the notification.
The channel in Slack or MS Teams that this notification was sent to.
The email address that this notification was sent to.
The unique identifier of the entity that this notification was sent to.
Possible values: [USER
, TEAM
, ENTITY
]
The type of the notification recipient.
The unique identifier of the Cortex user that this notification was sent to.
The unique identifier of the notification run that this log is associated with.
Possible values: [READY
, IGNORED
, FAILED
, DELIVERED
]
The status of the notification log.
Possible values: [INITIATIVE_CREATION
, INITIATIVE_CUSTOM_SCHEDULE
, INITIATIVE_N_DAYS_LEFT
, SERVICE_REEVALUATED
, WEEKLY_REPORT
, BROKEN_OPEN_API_SPEC
, ENTITLEMENT_EXPIRATION
, ONCALL_ASSISTANT
, ONBOARDING_MESSAGE
, NOTIFY_INVALID_INTEGRATION
, ONCALL_PERSON_CHANGED
, ONCALL_STARTS_IN_N_DAYS
, TEAM_MEMBER_INVITATION
, PENDING_RULE_EXEMPTION
, TOKEN_EXPIRES_IN_N_DAYS
, SCHEDULED_SCORECARD_RULE_CREATION
, SCORECARD_RULE_ACTIVATES_IN_N_DAYS
, WORKFLOW_STATUS_UPDATE
, WORKFLOW_APPROVAL_PENDING
, VERIFICATION_PERIOD_STARTED
, VERIFICATION_PERIOD_REMINDER
, AI_ASSISTANT_WELCOME_MESSAGE
, ENTITY_SCORE_DROPPED
]
The type of the notification.
Current page number, 0-indexed
Total number of results
Total number of pages
{
"logs": [
{
"dateCreated": "2024-07-29T15:51:28.071Z",
"dateDelivered": "2024-07-29T15:51:28.071Z",
"dateUpdated": "2024-07-29T15:51:28.071Z",
"errorMessage": "string",
"failedReason": "CHANNEL_NOT_FOUND",
"id": 0,
"ignoredReason": "USER_UNSUBSCRIBED",
"medium": "SLACK",
"recipientChannel": "#general",
"recipientEmail": "string",
"recipientEntityId": 0,
"recipientType": "USER",
"recipientUserId": 0,
"runId": 0,
"status": "READY",
"type": "INITIATIVE_CREATION"
}
],
"page": 0,
"total": 0,
"totalPages": 0
}
Forbidden
- application/json
- Schema
- Example (from schema)
Schema
Possible values: [INTEGRATION_MISSING
, INTEGRATION_UNREGISTERED
, INTEGRATION_UNSUPPORTED
, INTEGRATION_GRAPHQL_ERROR
, INTEGRATION_BAD_REQUEST
, INTEGRATION_UNAUTHORIZED
, INTEGRATION_FORBIDDEN
, INTEGRATION_NOT_FOUND
, INTEGRATION_UNPROCESSABLE_CONTENT
, INTEGRATION_RATE_LIMITED
, INTEGRATION_INTERNAL_ERROR
, INTEGRATION_NOT_IMPLEMENTED
, INTEGRATION_BAD_GATEWAY
, INTEGRATION_UNAVAILABLE
, INTEGRATION_GATEWAY_TIMEOUT
, INTEGRATION_TIMED_OUT
, INTEGRATION_CACHE_ERROR
, INTEGRATION_UNHANDLED_HTTP_ERROR
, INTEGRATION_UNHANDLED_EXCEPTION
, INTEGRATION_UNEXPECTED_ERROR
, ILLEGAL_ARGUMENT_ERROR
, BAD_REQUEST
, FORBIDDEN
, NOT_FOUND
, REQUEST_TIMEOUT
, CONFLICT
, UNHANDLED_EXCEPTION
, UNCATEGORIZED
, SERVICE_CREATOR
, UNKNOWN_HOST
]
{
"details": "string",
"gatewayHttpStatus": 0,
"httpStatus": 0,
"message": "string",
"requestId": "string",
"type": "INTEGRATION_MISSING"
}
The client has exceeded the rate limit by performing too many requests in a short period. Retry the request after a delay.
Response Headers
Retry-After
integer
The number of seconds until the rate limiting resets.
- application/problem+json
- Schema
- Example (from schema)
Schema
The number of seconds until the rate limiting resets.
Possible values: >= 100
and <= 599
, [429
]
{
"detail": "string",
"instance": "string",
"retryAfter": 0,
"status": 429,
"title": "string",
"type": "string"
}