---
title: "Handle Stytch Webhook"
method: POST
path: "/webhooks/stytch"
---

# Handle Stytch Webhook

`POST /webhooks/stytch`

## Request

- Base URL: `https://stardrift.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://stardrift.ai/webhooks/stytch`
- Auth: none declared

Webhook endpoint for handling Stytch events.

## Request body

- StytchWebhookRequest: Stytch webhook payload with support for multiple formats
  - `event_id` string, required
  - `timestamp` string, required
  - `event_type` string, nullable
  - `data` object, nullable
  - `project_id` string, nullable
  - `action` string, nullable
  - `object_type` string, nullable
  - `source` string, nullable
  - `id` string, nullable
  - `user` StytchUser: User object in Stytch webhook payload
    - `user_id` string, nullable
    - `emails` StytchUserEmail[]
      - `email` string, required
      - `verified` boolean, nullable
      - `primary` boolean, nullable
    - `name` StytchUserName: Name object in Stytch user data
      - `first_name` string, nullable
      - `middle_name` string, nullable
      - `last_name` string, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/stardrift/apis/stardrift-api.md) - [All operations](https://skmtc.dev/stardrift/apis/stardrift-api/llms.txt) - [OpenAPI document](https://skmtc.dev/stardrift/apis/stardrift-api/revisions/be9ed1e6c38a?raw)
