# Python server

> Sending events and errors to Clearlook from a Python server (Django, Flask, FastAPI).

- **Events:** `POST https://app.clearlook.dev/v1/b?key=pk_…` with JSON `{"sent_at": "<ISO time>", "events": [{"id": "<uuid4>", "event": "Invoice paid", "timestamp": "<ISO time>", "user_id": "<the app's user id>", "properties": {}}]}`, sent from a background task or queue, with a short timeout, so requests never wait on analytics.
- **Ids:** the same user id the browser passes to `identify`.
- **Errors:** `sentry-sdk` with the project DSN (`sentry_sdk.init(dsn=..., release=...)`); the Django, Flask and FastAPI integrations work unchanged.
