/
Contact usSee pricingStart building

    Management

    API keys
    Redirect urls
    Dashboard roles & permissions
    Webhooks
    Stytch MCP server

    Event logs

    Overview
    Event log streaming

    Programmatic Workspace Actions

    Overview
    Limits
    Country code allowlists
      Country code allowlist object
      Get allowed country codes
      Set allowed country codes
    Email templates
      Email template object
      Sender information object
      Prebuilt customization object
      Custom HTML customization object
      Create email template
      Get email template
      Get all email templates
      Update email template
      Delete email template
    Event log streaming
      Destination config object
      Create event log streaming
      Get event log streaming
      Update event log streaming
      Delete event log streaming
      Enable event log streaming
      Disable event log streaming
    JWT templates
      JWT template object
      Get JWT templates
      Set JWT templates
    Password strength config
      Password strength config object
      Get password strength config
      Set password strength config
    Projects
      Project object
      Create project
      Get project
      Get all projects
      Update project
      Delete project
    Project metrics
      Metrics object
      Get project metrics
    Public tokens
      Public token object
      Create public token
      Get all public tokens
      Delete public tokens
    RBAC policy
      Policy object
      Role object
      Permission object
      Resource object
      Get RBAC policy
      Set RBAC policy
    Redirect URLs
      Redirect URL object
      URL type object
      Create redirect URL
      Get redirect URL
      Get all redirect URLs
      Update redirect URL
      Delete redirect URL
    SDK config
      SMSAutofillMetadata object
      ConsumerSDKBasicConfig object
      ConsumerSDKSessionsConfig object
      ConsumerSDKMagicLinksConfig object
      ConsumerSDKOTPsConfig object
      ConsumerSDKOAuthConfig object
      ConsumerSDKTOTPsConfig object
      ConsumerSDKWebauthnConfig object
      ConsumerSDKCryptoWalletsConfig object
      ConsumerSDKDFPPAConfig object
      ConsumerSDKBiometricsConfig object
      ConsumerSDPasswordsConfig object
      ConsumerConfig object
      B2BSDKBasicConfig object
      B2BSDKSessionsConfig object
      B2BSDKMagicLinksConfig object
      B2BSDKOTPsConfig object
      B2BSDKOAuthConfig object
      B2BSDKTOTPsConfig object
      B2BSDKSSOConfig object
      B2BSDKPasswordsConfig object
      B2BConfig object
      Get Consumer SDK config
      Set Consumer SDK config
      Get B2B SDK config
      Set B2B SDK config
    Secrets
      Secret object
      CreatedSecret object
      Create secret
      Get secret
      Get all secrets
      Delete secret
Get support on SlackVisit our developer forum

Contact us

Home

/

Workspace management

/

Programmatic Workspace Actions

/

Event log streaming

/

Create event log streaming

Create event log streaming configuration

POST
https://management.stytch.com/v1/projects/{project_id}/event_log_streaming

Creates a new event log streaming configuration given the project and delivery method. This does not enable streaming. For that, see the Enable endpoint.

Limitations

  • Only one destination per project

Path parameters


project_id* string

The project_id the event log streaming configuration belongs to.


Body parameters


destination_type* string

The type of destination to configure for streaming. This is either DATADOG or GRAFANA_LOKI.


destination_config object

The configuration for a destination. Only one of datadog or grafana_loki is needed, depending on the destination type.

datadog object

The configuration for a Datadog destination. Required if streaming to Datadog, otherwise must be omitted. All fields are required.

api_key* string

The API key for the Datadog destination.

site* string

The site for the Datadog destination. One of US, US3, US5, EU, or AP1

grafana_loki object

The configuration for a Grafana Loki destination. Required if streaming to Grafana Loki, otherwise must be omitted. All fields are required.

hostname* string

The hostname of the Grafana Loki destination. For example, prod-01.grafana.net

username* string

The username of the Grafana Loki destination using basic auth.

password* string

The password of the Grafana Loki destination using basic auth.


Response fields


request_id string

Globally unique UUID that is returned with every API call. This value is important to log for debugging purposes; we may ask for this value to help identify a specific API call when helping you debug an issue.


status_code int

The HTTP status code of the response. Stytch follows standard HTTP response status code patterns, e.g. 2XX values equate to success, 3XX values are redirects, 4XX are client errors, and 5XX are server errors.


event_log_streaming_config object

The configuration for event log streaming for the project.

destination_config object

The configuration for a destination. Only one of datadog or grafana_loki is returned, depending on the destination type.

datadog object

The configuration for the Datadog destination.

api_key string

The API key for the Datadog destination.

site string

The site for the Datadog destination. One of US, US3, US5, EU, or AP1

grafana_loki object

The configuration for the Grafana Loki destination.

hostname string

The hostname of the Grafana Loki destination. For example, prod-01.grafana.net

username string

The username of the Grafana Loki destination using basic auth.

password string

The password of the Grafana Loki destination using basic auth.

destination_type string

The type of destination event log streaming is configured to send to. This is either DATADOG or GRAFANA_LOKI.

project_id string

The ID of the project for which the event log streaming configuration is retrieved

streaming_status string

The status of event log streaming for the project. This is either ACTIVE or DISABLED.