Stytch Event Log Streaming API

The Event Log Streaming API from Stytch — 4 operation(s) for event log streaming.

Operations 6

GET /pwa/v3/projects/:project_slug/environments/:environment_slug/event_log_streaming/:destination_type Get #
PUT /pwa/v3/projects/:project_slug/environments/:environment_slug/event_log_streaming/:destination_type Update #
DELETE /pwa/v3/projects/:project_slug/environments/:environment_slug/event_log_streaming/:destination_type Delete #
POST /pwa/v3/projects/:project_slug/environments/:environment_slug/event_log_streaming Create #
POST /pwa/v3/projects/:project_slug/environments/:environment_slug/event_log_streaming/:destination_type/enable Enable #
POST /pwa/v3/projects/:project_slug/environments/:environment_slug/event_log_streaming/:destination_type/disable Disable #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/stytch-event-log-streaming-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

stytch-event-log-streaming-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Stytch Management Event Log Streaming API
  description: Stytch's Management API for programmatic workspace actions — projects, environments, secrets, redirect URLs, RBAC policies, JWT templates, email templates, event log streaming, trusted token profiles, public tokens, and SDK configuration.
  version: 1.0.0
  contact:
    name: Stytch Support
    url: https://stytch.com/docs
    email: support@stytch.com
servers:
- url: https://management.stytch.com
  description: Production server
security:
- basicAuth: []
tags:
- name: Event Log Streaming
paths:
  /pwa/v3/projects/:project_slug/environments/:environment_slug/event_log_streaming/:destination_type:
    get:
      summary: Get
      operationId: pwa_event_log_streaming_v3_Get
      tags:
      - Event Log Streaming
      description: Get retrieves an event log streaming config for an environment.
      parameters:
      - name: project_slug
        in: path
        required: true
        schema:
          type: string
      - name: environment_slug
        in: path
        required: true
        schema:
          type: string
      - name: destination_type
        in: path
        required: true
        schema:
          $ref: '#/components/schemas/pwa_event_log_streaming_v3_DestinationType'
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/pwa_event_log_streaming_v3_GetResponse'
        '400':
          description: Bad request
        '401':
          description: Unauthorized
          content:
            application/json:
              example:
                status_code: 401
                request_id: request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141
                error_type: unauthorized_credentials
                error_message: Unauthorized credentials.
                error_url: https://stytch.com/docs/api/errors/401
        '429':
          description: Too Many Requests
          content:
            application/json:
              example:
                status_code: 429
                request_id: request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141
                error_type: too_many_requests
                error_message: Too many requests have been made.
                error_url: https://stytch.com/docs/api/errors/429
        '500':
          description: Internal server error
          content:
            application/json:
              example:
                status_code: 500
                request_id: request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141
                error_type: internal_server_error
                error_message: Oops, something seems to have gone wrong, please reach out to support@stytch.com to let us know what went wrong.
                error_url: https://stytch.com/docs/api/errors/500
    put:
      summary: Update
      operationId: pwa_event_log_streaming_v3_Update
      tags:
      - Event Log Streaming
      description: Update updates an event log streaming config for an environment.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/pwa_event_log_streaming_v3_UpdateRequest'
      parameters:
      - name: project_slug
        in: path
        required: true
        schema:
          type: string
      - name: environment_slug
        in: path
        required: true
        schema:
          type: string
      - name: destination_type
        in: path
        required: true
        schema:
          $ref: '#/components/schemas/pwa_event_log_streaming_v3_DestinationType'
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/pwa_event_log_streaming_v3_UpdateResponse'
        '400':
          description: Bad request
        '401':
          description: Unauthorized
          content:
            application/json:
              example:
                status_code: 401
                request_id: request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141
                error_type: unauthorized_credentials
                error_message: Unauthorized credentials.
                error_url: https://stytch.com/docs/api/errors/401
        '429':
          description: Too Many Requests
          content:
            application/json:
              example:
                status_code: 429
                request_id: request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141
                error_type: too_many_requests
                error_message: Too many requests have been made.
                error_url: https://stytch.com/docs/api/errors/429
        '500':
          description: Internal server error
          content:
            application/json:
              example:
                status_code: 500
                request_id: request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141
                error_type: internal_server_error
                error_message: Oops, something seems to have gone wrong, please reach out to support@stytch.com to let us know what went wrong.
                error_url: https://stytch.com/docs/api/errors/500
    delete:
      summary: Delete
      operationId: pwa_event_log_streaming_v3_Delete
      tags:
      - Event Log Streaming
      description: Delete deletes an event log streaming config for an environment.
      parameters:
      - name: project_slug
        in: path
        required: true
        schema:
          type: string
      - name: environment_slug
        in: path
        required: true
        schema:
          type: string
      - name: destination_type
        in: path
        required: true
        schema:
          $ref: '#/components/schemas/pwa_event_log_streaming_v3_DestinationType'
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/pwa_event_log_streaming_v3_DeleteResponse'
        '400':
          description: Bad request
        '401':
          description: Unauthorized
          content:
            application/json:
              example:
                status_code: 401
                request_id: request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141
                error_type: unauthorized_credentials
                error_message: Unauthorized credentials.
                error_url: https://stytch.com/docs/api/errors/401
        '429':
          description: Too Many Requests
          content:
            application/json:
              example:
                status_code: 429
                request_id: request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141
                error_type: too_many_requests
                error_message: Too many requests have been made.
                error_url: https://stytch.com/docs/api/errors/429
        '500':
          description: Internal server error
          content:
            application/json:
              example:
                status_code: 500
                request_id: request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141
                error_type: internal_server_error
                error_message: Oops, something seems to have gone wrong, please reach out to support@stytch.com to let us know what went wrong.
                error_url: https://stytch.com/docs/api/errors/500
  /pwa/v3/projects/:project_slug/environments/:environment_slug/event_log_streaming:
    post:
      summary: Create
      operationId: pwa_event_log_streaming_v3_Create
      tags:
      - Event Log Streaming
      description: Create creates an event log streaming config for an environment.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/pwa_event_log_streaming_v3_CreateRequest'
      parameters:
      - name: project_slug
        in: path
        required: true
        schema:
          type: string
      - name: environment_slug
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/pwa_event_log_streaming_v3_CreateResponse'
        '400':
          description: Bad request
        '401':
          description: Unauthorized
          content:
            application/json:
              example:
                status_code: 401
                request_id: request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141
                error_type: unauthorized_credentials
                error_message: Unauthorized credentials.
                error_url: https://stytch.com/docs/api/errors/401
        '429':
          description: Too Many Requests
          content:
            application/json:
              example:
                status_code: 429
                request_id: request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141
                error_type: too_many_requests
                error_message: Too many requests have been made.
                error_url: https://stytch.com/docs/api/errors/429
        '500':
          description: Internal server error
          content:
            application/json:
              example:
                status_code: 500
                request_id: request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141
                error_type: internal_server_error
                error_message: Oops, something seems to have gone wrong, please reach out to support@stytch.com to let us know what went wrong.
                error_url: https://stytch.com/docs/api/errors/500
  /pwa/v3/projects/:project_slug/environments/:environment_slug/event_log_streaming/:destination_type/enable:
    post:
      summary: Enable
      operationId: pwa_event_log_streaming_v3_Enable
      tags:
      - Event Log Streaming
      description: Enable starts streaming event logs for an environment to a destination.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/pwa_event_log_streaming_v3_EnableRequest'
      parameters:
      - name: project_slug
        in: path
        required: true
        schema:
          type: string
      - name: environment_slug
        in: path
        required: true
        schema:
          type: string
      - name: destination_type
        in: path
        required: true
        schema:
          $ref: '#/components/schemas/pwa_event_log_streaming_v3_DestinationType'
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/pwa_event_log_streaming_v3_EnableResponse'
        '400':
          description: Bad request
        '401':
          description: Unauthorized
          content:
            application/json:
              example:
                status_code: 401
                request_id: request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141
                error_type: unauthorized_credentials
                error_message: Unauthorized credentials.
                error_url: https://stytch.com/docs/api/errors/401
        '429':
          description: Too Many Requests
          content:
            application/json:
              example:
                status_code: 429
                request_id: request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141
                error_type: too_many_requests
                error_message: Too many requests have been made.
                error_url: https://stytch.com/docs/api/errors/429
        '500':
          description: Internal server error
          content:
            application/json:
              example:
                status_code: 500
                request_id: request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141
                error_type: internal_server_error
                error_message: Oops, something seems to have gone wrong, please reach out to support@stytch.com to let us know what went wrong.
                error_url: https://stytch.com/docs/api/errors/500
  /pwa/v3/projects/:project_slug/environments/:environment_slug/event_log_streaming/:destination_type/disable:
    post:
      summary: Disable
      operationId: pwa_event_log_streaming_v3_Disable
      tags:
      - Event Log Streaming
      description: Disable stops streaming event logs for an environment to a destination.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/pwa_event_log_streaming_v3_DisableRequest'
      parameters:
      - name: project_slug
        in: path
        required: true
        schema:
          type: string
      - name: environment_slug
        in: path
        required: true
        schema:
          type: string
      - name: destination_type
        in: path
        required: true
        schema:
          $ref: '#/components/schemas/pwa_event_log_streaming_v3_DestinationType'
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/pwa_event_log_streaming_v3_DisableResponse'
        '400':
          description: Bad request
        '401':
          description: Unauthorized
          content:
            application/json:
              example:
                status_code: 401
                request_id: request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141
                error_type: unauthorized_credentials
                error_message: Unauthorized credentials.
                error_url: https://stytch.com/docs/api/errors/401
        '429':
          description: Too Many Requests
          content:
            application/json:
              example:
                status_code: 429
                request_id: request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141
                error_type: too_many_requests
                error_message: Too many requests have been made.
                error_url: https://stytch.com/docs/api/errors/429
        '500':
          description: Internal server error
          content:
            application/json:
              example:
                status_code: 500
                request_id: request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141
                error_type: internal_server_error
                error_message: Oops, something seems to have gone wrong, please reach out to support@stytch.com to let us know what went wrong.
                error_url: https://stytch.com/docs/api/errors/500
components:
  schemas:
    pwa_event_log_streaming_v3_DatadogConfigMasked:
      type: object
      properties:
        api_key_last_four:
          type: string
        site:
          $ref: '#/components/schemas/pwa_event_log_streaming_v3_DatadogSite'
      required:
      - api_key_last_four
    pwa_event_log_streaming_v3_StreamingStatus:
      type: string
      enum:
      - ACTIVE
      - DISABLED
      - PENDING
    pwa_event_log_streaming_v3_DestinationConfig:
      type: object
      properties:
        datadog:
          $ref: '#/components/schemas/pwa_event_log_streaming_v3_DatadogConfig'
        grafana_loki:
          $ref: '#/components/schemas/pwa_event_log_streaming_v3_GrafanaLokiConfig'
    pwa_event_log_streaming_v3_DestinationType:
      type: string
      enum:
      - DATADOG
      - GRAFANA_LOKI
    pwa_event_log_streaming_v3_EventLogStreaming:
      type: object
      properties:
        destination_type:
          $ref: '#/components/schemas/pwa_event_log_streaming_v3_DestinationType'
        destination_config:
          $ref: '#/components/schemas/pwa_event_log_streaming_v3_DestinationConfig'
        streaming_status:
          $ref: '#/components/schemas/pwa_event_log_streaming_v3_StreamingStatus'
    pwa_event_log_streaming_v3_DisableRequest:
      type: object
      properties: {}
      description: Request type
    pwa_event_log_streaming_v3_DatadogConfig:
      type: object
      properties:
        api_key:
          type: string
        site:
          $ref: '#/components/schemas/pwa_event_log_streaming_v3_DatadogSite'
      required:
      - api_key
    pwa_event_log_streaming_v3_GrafanaLokiConfigMasked:
      type: object
      properties:
        hostname:
          type: string
        username:
          type: string
        password_last_four:
          type: string
      required:
      - hostname
      - username
      - password_last_four
    pwa_event_log_streaming_v3_EnableResponse:
      type: object
      properties:
        request_id:
          type: string
        status_code:
          type: integer
          format: int32
      description: Response type
      required:
      - request_id
      - status_code
    pwa_event_log_streaming_v3_EventLogStreamingMasked:
      type: object
      properties:
        destination_type:
          $ref: '#/components/schemas/pwa_event_log_streaming_v3_DestinationType'
        destination_config:
          $ref: '#/components/schemas/pwa_event_log_streaming_v3_DestinationConfigMasked'
        streaming_status:
          $ref: '#/components/schemas/pwa_event_log_streaming_v3_StreamingStatus'
    pwa_event_log_streaming_v3_DisableResponse:
      type: object
      properties:
        request_id:
          type: string
        status_code:
          type: integer
          format: int32
      description: Response type
      required:
      - request_id
      - status_code
    pwa_event_log_streaming_v3_EnableRequest:
      type: object
      properties: {}
      description: Request type
    pwa_event_log_streaming_v3_UpdateRequest:
      type: object
      properties:
        destination_config:
          $ref: '#/components/schemas/pwa_event_log_streaming_v3_DestinationConfig'
      description: Request type
    pwa_event_log_streaming_v3_UpdateResponse:
      type: object
      properties:
        request_id:
          type: string
        event_log_streaming_config:
          $ref: '#/components/schemas/pwa_event_log_streaming_v3_EventLogStreaming'
        status_code:
          type: integer
          format: int32
      description: Response type
      required:
      - request_id
      - event_log_streaming_config
      - status_code
    pwa_event_log_streaming_v3_DeleteResponse:
      type: object
      properties:
        request_id:
          type: string
        status_code:
          type: integer
          format: int32
      description: Response type
      required:
      - request_id
      - status_code
    pwa_event_log_streaming_v3_GrafanaLokiConfig:
      type: object
      properties:
        hostname:
          type: string
        username:
          type: string
        password:
          type: string
      required:
      - hostname
      - username
      - password
    pwa_event_log_streaming_v3_DatadogSite:
      type: string
      enum:
      - US
      - US3
      - US5
      - EU
      - AP1
    pwa_event_log_streaming_v3_GetResponse:
      type: object
      properties:
        request_id:
          type: string
        event_log_streaming_config:
          $ref: '#/components/schemas/pwa_event_log_streaming_v3_EventLogStreamingMasked'
        status_code:
          type: integer
          format: int32
      description: Response type
      required:
      - request_id
      - event_log_streaming_config
      - status_code
    pwa_event_log_streaming_v3_DestinationConfigMasked:
      type: object
      properties:
        datadog:
          $ref: '#/components/schemas/pwa_event_log_streaming_v3_DatadogConfigMasked'
        grafana_loki:
          $ref: '#/components/schemas/pwa_event_log_streaming_v3_GrafanaLokiConfigMasked'
    pwa_event_log_streaming_v3_CreateResponse:
      type: object
      properties:
        request_id:
          type: string
        event_log_streaming_config:
          $ref: '#/components/schemas/pwa_event_log_streaming_v3_EventLogStreaming'
        status_code:
          type: integer
          format: int32
      description: Response type
      required:
      - request_id
      - event_log_streaming_config
      - status_code
    pwa_event_log_streaming_v3_CreateRequest:
      type: object
      properties:
        destination_type:
          $ref: '#/components/schemas/pwa_event_log_streaming_v3_DestinationType'
        destination_config:
          $ref: '#/components/schemas/pwa_event_log_streaming_v3_DestinationConfig'
      description: Request type
  securitySchemes:
    basicAuth:
      type: http
      scheme: basic