# Quickstart: sell a ticket from your own site

Section: Get started
Page: https://docs.konec.to/quickstart

Get keys, show ticket availability and send a buyer to Konecto checkout.

This guide sells a ticket from a site you host anywhere.

## 1. Get your keys
In the organiser app open Settings, Developers. You get:
- a publishable key (pk_live_…) for the browser, limited to the origins you allow;
- a secret key (sk_live_…) for your server. Never put it in client code.

Add your site's origin (for example https://acmesummit.com) to Allowed origins.

## 2. Drop in the ticket component
``html
<script src="https://cdn.konec.to/components.js" defer></script>
<konecto-tickets event="acme-summit" key="pk_live_..."></konecto-tickets>
`
The component shows live ticket types and availability and opens Konecto checkout.

## 3. Or use the SDK
`ts
import { Konecto } from '@konecto/sdk';

const konecto = new Konecto({ publishableKey: 'pk_live_...' });
const event = await konecto.events.get('acme-summit');
const { url } = await konecto.checkout.create({
  event: 'acme-summit',
  items: [{ ticketType: 'standard', quantity: 2 }],
  successUrl: 'https://acmesummit.com/thanks',
});
window.location.href = url;
`

## 4. Listen for orders
Add a webhook endpoint in Settings, Developers, Webhooks and handle order.paid`. See Webhooks (/api/webhooks).

Buyers receive their ticket email from Konecto, and their ticket appears at me.konec.to.
