# Get a Stripe webhook endpoint

Connect Stripe to working handler code without separately arranging hosting, HTTPS, and request debugging. Tokay deploys the handler, gives it a webhook URL, and records the events that reach it.

## Go from handler code to a Stripe URL

You do not need to wrap working handler code in a platform specific webhook project. [Paste or push a full Express or Flask server, or a handler function](/getting-started), and Tokay detects the shape, packages, and environment variables it uses.

You provide the Stripe key and signing secret as encrypted Project secrets. After deployment, paste the returned HTTPS URL into the Stripe webhook settings. The random hostname can be regenerated if it is exposed.

## Verify the connection before real events matter

You can confirm the wiring before real payment events depend on it. Tokay shows **Connection Established!** when the first Stripe event reaches the endpoint and the handler processes it, while **Send Test Event** exercises the Service without waiting for Stripe.

Signature verification still belongs in the handler, using the signing secret supplied through the environment variable the code reads.

## Failed requests are easier to reproduce

Every request is recorded with its payload, so debugging starts from the exact event your code received. Open a failed request, inspect the body, fix the handler, and use Copy as cURL to send the same request again.

Incident email links to failing requests, followed by a recovery email when the endpoint succeeds again.

## Your AI agent can finish and verify the integration

A coding agent like Claude Code or Codex can deploy the handler through Tokay's GraphQL API, read the webhook URL, register it with Stripe, set the write only signing secret you provide, send a test event, and inspect the request log to confirm the handler processed it.

The same Service model works for GitHub, Shopify, Twilio, and other webhook senders. A database or scheduled job can run beside the handler in the same Project.

Point your agent to [app.tokay.io/llms.txt](https://app.tokay.io/llms.txt) for the deployment protocol.

Tokay has a very generous free tier with no credit card. See [webhooks](/use-cases/deploy-webhook) or [get started](/getting-started).
