## Quickstart

**Platform:** manage your account, keys and seconds. **API:** send session requests to `https://api.ikawn.com/v1`.

- Create an API key with a name and expiration: 1 day, 7 days, 30 days, 90 days, 1 year or Never. Custom date lets you choose an exact expiration time.
- Store it on your backend and create a session for your authenticated user.
- Return the session response to your browser SDK and connect a video source.

Choose `tryon` for reference-garment replacement or `video_edit` for an explicit edit. There is no duration or model parameter.



```
curl https://api.ikawn.com/v1/sessions \
  -H "Authorization: Bearer $IKAWN_API_KEY" \
  -H 'Content-Type: application/json' \
  -H 'Idempotency-Key: connection-unique-0001' \
  -d '{"capability":"tryon"}'
```



Reuse the same idempotency key when retrying the same connection. Use a new key for a deliberate new connection. The key must contain 8–128 letters, digits, underscores or hyphens.

**Keep your API key on your server.**Never ship it in browser code, a mobile app, a URL or analytics. Return the scoped session response only to the authenticated user who requested it. Do not cache or log that response.
