---
title: "Stitch Visitor"
method: POST
path: "/api/v1/analytics/stitch"
---

# Stitch Visitor

`POST /api/v1/analytics/stitch`

## Request

- Base URL: `https://api.ascendkit.dev` (the document declares no server; this is the origin it was published from)
- URL: `https://api.ascendkit.dev/api/v1/analytics/stitch`
- Auth: one of:
  - API key in header `X-AscendKit-Secret-Key`
  - API key in header `X-AscendKit-Public-Key` and HTTP bearer

Link an anonymous visitor to an authenticated user by email.

Used by apps that handle auth independently (not via the AscendKit SDK)
but still want identity stitching for analytics.

## Request body

- StitchRequest
  - `visitorId` string, required
  - `email` string, required

## Response `200`

Successful Response

- object

## Other responses

- `422`: Validation Error

---

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