# Vercel Drains (/docs/integrations/vercel-drains)



How it works [#how-it-works]

This guide uses the service insert API at `https://api.rawtree.com` for
RawTree Cloud and RawTree BYOC.

Vercel Drains forward project observability data to a custom HTTPS endpoint with `POST` requests.
The service receives those events through the table ingest API and writes them to RawTree.
Vercel can send events directly to the service HTTP API without a connector or middleware.

Features [#features]

* Direct ingest from Vercel to RawTree
* No connector, agent, or proxy required
* Works with Vercel custom HTTPS drains
* Supports real-time event ingestion
* Compatible with the service HTTP ingest API
* Query Vercel events immediately after they arrive

Quick Start [#quick-start]

In Vercel, create a new Drain and choose a custom HTTPS endpoint.
Use the URL below with your table name.
You do not need to create the table manually.

```text
https://api.rawtree.com/v1/tables/<your_table_name>
```

Add these headers:

```text
Content-Type: application/json
Authorization: Bearer <your_api_key>
```

Query your data [#query-your-data]

Use the `rtree` CLI, Query API, or dashboard to query your data as it gets ingested.

```sql
SELECT *
FROM <your_table_name>
ORDER BY timestamp DESC
LIMIT 100
```
