Retrieve notification runs
GET/api/v1/notifications/logs/run
Retrieve notification runs based on the provided filters. API key must have the View Notification logs
permission.
Request
Query Parameters
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: [CREATED
, FAILED
, IGNORED
, COMPLETED
, COMPLETED_WITH_ERRORS
]
The status of the notification.
Possible values: [SLACK
, MICROSOFT_TEAMS
, EMAIL
]
The medium used to send the notification.
Possible values: [SCORECARD_DISABLED
, WORKSPACE_DISABLED
, NO_RECIPIENTS
]
The reason why a notification run was ignored.
Possible values: [PACKET_GENERATOR_ERROR
, CONTEXT_RESOLUTION_ERROR
, MISSING_RECIPIENTS
, INTERNAL_ERROR
]
The reason why a notification run failed.
A search query to filter the results.
Whether to include the objects associated with the notification run.
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 runs
- application/json
- Schema
- Example (from schema)
Schema
Array [
Array [
]
]
Current page number, 0-indexed
runs
object[]
required
The date and time that this notification run was created.
The date and time that this notification run was updated.
The number of notifications that were delivered during this run.
An additional error message.
Possible values: [PACKET_GENERATOR_ERROR
, CONTEXT_RESOLUTION_ERROR
, MISSING_RECIPIENTS
, INTERNAL_ERROR
]
The reason why this notification run failed.
The unique identifier of the notification run.
Possible values: [SCORECARD_DISABLED
, WORKSPACE_DISABLED
, NO_RECIPIENTS
]
The reason why this notification run was ignored.
Possible values: [SLACK
, MICROSOFT_TEAMS
, EMAIL
]
The medium used to send the notification.
notificationObjects
object[]
The objects (Entities, Scorecards and Initiatives) associated with this run.
Unique, immutable, 18-character auto-generated identifier. Applicable only for entities.
The unique internal identifier of the notification object.
The name of the notification object.
Unique identifier, found in the UI. Applicable for entities and scorecards.
Possible values: [ENTITY
, SCORECARD
, INITIATIVE
]
The type of the notification object.
The URL of the notification object's home page in Cortex.
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.
The unique identifier of the original run that this run was re-run from.
The order of the run in the sequence of re-runs. 0 if it's the original run.
Possible values: [CREATED
, FAILED
, IGNORED
, COMPLETED
, COMPLETED_WITH_ERRORS
]
The status of the notification run.
Total number of results
Total number of pages
{
"page": 0,
"runs": [
{
"dateCreated": "2024-07-29T15:51:28.071Z",
"dateUpdated": "2024-07-29T15:51:28.071Z",
"deliveredCount": 0,
"errorMessage": "string",
"failedReason": "PACKET_GENERATOR_ERROR",
"id": 1,
"ignoredReason": "SCORECARD_DISABLED",
"medium": "SLACK",
"notificationObjects": [
{
"cid": "en2da8159dbeefb974",
"id": 0,
"name": "string",
"tag": "production-readiness-scorecard",
"type": "ENTITY",
"url": "string"
}
],
"notificationType": "INITIATIVE_CREATION",
"originalRunId": 0,
"seqNo": 0,
"status": "CREATED"
}
],
"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"
}