LogoLogo
Login to CortexBook a DemoCortex Academycortex.io
  • Cortex Docs
  • Cortex Quick Start
  • Ingesting data into Cortex
    • Managing Entities
      • Adding entities
        • Add services
        • Add domains
        • Add teams
        • Add custom entity types
        • Defining dependencies
      • Entity details page
      • Defining ownership
      • Defining relationship types
      • Grouping entities
      • Adding external documentation
      • Adding Deploy data
      • Adding custom data
      • Viewing discovered entities
      • Archiving entities
      • Relationship graph
      • Using On-call Assistant for incidents
      • Managing Terraform infra in Cortex
    • Managing Catalogs
    • Integrations
      • Internally hosted integrations
      • ArgoCD
      • AWS
      • Azure DevOps
      • Azure Resources
      • BambooHR
      • Bitbucket
      • BugSnag
      • Buildkite
      • Checkmarx
      • CircleCI
      • ClickUp
      • Codecov
      • Coralogix
      • Custom webhook integrations
      • Datadog
      • Dynatrace
      • Entra ID (Azure AD)
      • FireHydrant
      • GitHub
      • GitLab
      • Google
      • Grafana
      • incident.io
      • Instana
      • Jenkins
      • Jira
      • Kubernetes
      • LaunchDarkly
      • Lightstep
      • Mend
      • Microsoft Teams
      • New Relic
      • Okta
      • Opsgenie
      • PagerDuty
      • Prometheus
      • Rollbar
      • Rootly
      • Sentry
      • ServiceNow
      • Slack
      • Snyk
      • SonarQube
      • Splunk Observability Cloud (SignalFx)
      • Splunk On-Call (VictorOps)
      • Sumo Logic
      • Veracode
      • Wiz
      • Workday
      • xMatters
  • Scorecards
    • Initiatives and Action items
      • Creating issues based on Initiatives
    • Scorecard rule exemptions
    • Scorecard rule filters
    • Scorecard examples
    • Scorecards as code
  • Reports
    • Executive report
    • All Scorecards report
    • Bird's eye report
    • Progress report
    • Report card
  • Eng Intelligence
    • Custom Metrics
    • Jira Metrics
    • Metrics Explorer (Beta)
  • Cortex Query Language (CQL)
    • Using CQL reports
    • Using JQ in Cortex
  • Workflows
    • Creating a Workflow
      • Workflows as code
    • Blocks
    • Running a Workflow
    • Registering a Scaffolder template
      • Scaffolder advanced usage
    • Using a Workflow to sync in ArgoCD
    • Kicking off a Jenkins pipeline in a Workflow
    • Calling internal service endpoints in a Workflow
  • Plugins
    • Creating a plugin
      • Creating a plugin proxy
    • Migrating Backstage plugins to Cortex
  • Engineering homepage
  • Workspace Settings
    • Using GitOps for Cortex
      • GitOps logs
    • Managing users
      • Roles and permissions
        • Custom roles
        • Team ownership entity editing
      • Configuring SSO
        • Microsoft Entra ID
        • Google
        • Other OIDC providers
        • Okta
          • Okta SCIM
      • Configuring identity mappings
      • Onboarding management
    • API keys, secrets, and tokens
      • Secrets
      • Personal tokens
    • Audit logs
    • Entity settings
      • Data verification
      • Auto archiving entities
    • IP allowlist
    • Notifications
      • Notification logs
    • Customizing your workspace
    • Using search in Cortex
  • Cortex API
    • REST API operations
      • API Keys
      • Audit Logs
      • Catalog Entities
      • Custom Data
        • Custom Data (Advanced)
      • Custom Events
      • Custom Metrics
      • Dependencies
      • Deploys
      • Discovery Audit
      • Docs
      • Eng Intel: User Labels
      • Entity Relationship Types (Beta)
      • Entity Relationships (Beta)
      • Entity Types
      • GitOps Logs
      • Groups
      • Initiatives
      • Integrations APIs
        • Azure Active Directory (Entra ID) API
        • Azure Resources API
        • AWS API
        • Azure DevOps API
        • CircleCI API
        • Coralogix API
        • Datadog API
        • GitHub API
        • GitLab API
        • incident.io API
        • LaunchDarkly API
        • New Relic API
        • PagerDuty API
        • Prometheus API
        • SonarQube API
      • IP Allowlist
      • Notification Logs
      • On call
      • Packages
      • Plugins
      • Queries
      • SCIM
      • Scorecards
      • Secrets
      • Team Hierarchies
      • Teams
      • Workflows
Powered by GitBook
On this page

Was this helpful?

Export as PDF
  1. Cortex API
  2. REST API operations

Notification Logs

Last updated 2 months ago

Was this helpful?

Use these operations to interact with in Cortex.

Required permissions

Your API key must have the View notification logs permission.

Operations

notification logs

Retrieve notification logs

get

Retrieve notification logs based on the provided filters. API key must have the View Notification logs permission.

Authorizations
Query parameters
notificationRunIdsinteger · int64[]Optional

The unique identifier of the notification run that this log is associated with.

recipientEmailsstring[]Optional

The email address that this notification was sent to.

recipientEntityIdsinteger · int64[]Optional

The unique identifiers of the entities that the notifications were sent to.

recipientChannelsstring[]Optional

The channel in Slack or MS Teams where the notification was sent.

fromDatestring · date-timeOptional

The ISO date and time to start the search from.

Example: 2021-01-01T00:00:00
untilDatestring · date-timeOptional

The ISO date and time to end the search at.

Example: 2021-01-01T00:00:00
pageSizeinteger · int32Required

Number of results to return per page, between 1 and 1000. Default 250.

Default: 250
pageinteger · int32Required

Page number to return, 0-indexed. Default 0.

Default: 0
orderBystring · enumOptional

Sort the results ascending or descending.

Default: DESCPossible values:
Responses
200
Successfully retrieved notification logs
application/json
403
Forbidden
application/json
429
The client has exceeded the rate limit by performing too many requests in a short period. Retry the request after a delay.
application/problem+json
get
GET /api/v1/notifications/logs HTTP/1.1
Host: api.getcortexapp.com
Authorization: Bearer JWT
Accept: */*
{
  "logs": [
    {
      "dateCreated": "2025-05-20T07:14:29.528Z",
      "dateDelivered": "2025-05-20T07:14:29.528Z",
      "dateUpdated": "2025-05-20T07:14:29.528Z",
      "errorMessage": "text",
      "failedReason": "CHANNEL_NOT_FOUND",
      "id": 1,
      "ignoredReason": "USER_UNSUBSCRIBED",
      "medium": "SLACK",
      "recipientChannel": "#general",
      "recipientEmail": "text",
      "recipientEntityId": 1,
      "recipientType": "USER",
      "recipientUserId": 1,
      "runId": 1,
      "status": "READY",
      "type": "INITIATIVE_CREATION"
    }
  ],
  "page": 1,
  "total": 1,
  "totalPages": 1
}

Retrieve notification runs

get

Retrieve notification runs based on the provided filters. API key must have the View Notification logs permission.

Authorizations
Query parameters
searchQuerystringOptional

A search query to filter the results.

includeObjectsbooleanOptional

Whether to include the objects associated with the notification run.

Default: false
fromDatestring · date-timeOptional

The ISO date and time to start the search from.

Example: 2021-01-01T00:00:00
untilDatestring · date-timeOptional

The ISO date and time to end the search at.

Example: 2021-01-01T00:00:00
pageSizeinteger · int32Required

Number of results to return per page, between 1 and 1000. Default 250.

Default: 250
pageinteger · int32Required

Page number to return, 0-indexed. Default 0.

Default: 0
orderBystring · enumOptional

Sort the results ascending or descending.

Default: DESCPossible values:
Responses
200
Successfully retrieved notification runs
application/json
403
Forbidden
application/json
429
The client has exceeded the rate limit by performing too many requests in a short period. Retry the request after a delay.
application/problem+json
get
GET /api/v1/notifications/logs/run HTTP/1.1
Host: api.getcortexapp.com
Authorization: Bearer JWT
Accept: */*
{
  "page": 1,
  "runs": [
    {
      "dateCreated": "2025-05-20T07:14:29.528Z",
      "dateUpdated": "2025-05-20T07:14:29.528Z",
      "deliveredCount": 1,
      "errorMessage": "text",
      "failedReason": "PACKET_GENERATOR_ERROR",
      "id": 1,
      "ignoredReason": "SCORECARD_DISABLED",
      "medium": "SLACK",
      "notificationObjects": [
        {
          "cid": "en2da8159dbeefb974",
          "id": 1,
          "name": "text",
          "tag": "production-readiness-scorecard",
          "type": "ENTITY",
          "url": "text"
        }
      ],
      "notificationType": "INITIATIVE_CREATION",
      "originalRunId": 1,
      "seqNo": 1,
      "status": "CREATED",
      "summary": "text"
    }
  ],
  "total": 1,
  "totalPages": 1
}
  • Required permissions
  • Operations
  • GETRetrieve notification logs
  • GETRetrieve notification runs