> ## Documentation Index
> Fetch the complete documentation index at: https://docs.brello.app/llms.txt
> Use this file to discover all available pages before exploring further.

# Quickstart

> Verify a project key and send a sample usage event.

See the [TypeScript quickstart](https://docs.brello.app/sdk/typescript/quickstart.md) or [Python quickstart](https://docs.brello.app/sdk/python/quickstart.md) for OpenAI, Anthropic, Google AI Studio, and Vertex AI.

You need a Brello project ingestion key and a shell with `curl`. These examples use the hosted API. If you run Brello yourself, substitute your deployment's origin and keep `/v1`.

**1. Set your environment**

Run these commands in Bash or Zsh. Use a test project key for the sample event.

```bash theme={null}
export BRELLO_API_KEY="YOUR_PROJECT_API_KEY"
```

**2. Verify your key**

```bash theme={null}
curl --silent --show-error --output /dev/null --write-out '%{http_code}\n' \
  --header "Authorization: Bearer $BRELLO_API_KEY" \
  "https://api.brello.app/v1/config"
```

A `200` response verifies the project key. This example prints only the status because the response can include a project identity secret. See [configuration](https://docs.brello.app/sdk/api-reference/config.md) for the available fields.

**3. Send one sample event**

Replace the timestamp with the completed-attempt time and generate a fresh UUID for every new event.

```bash theme={null}
curl "https://api.brello.app/v1/events" \
  --request POST \
  --header "Authorization: Bearer $BRELLO_API_KEY" \
  --header "Content-Type: application/json" \
  --data '{
    "schemaVersion": "1",
    "sdk": { "name": "http-example", "version": "1.0.0" },
    "events": [{
      "id": "019a9000-0000-7000-8000-000000000001",
      "type": "llm.request",
      "occurredAt": "2026-11-19T12:00:00Z",
      "durationMs": 850,
      "provider": "openai",
      "model": "gpt-4o-mini",
      "status": "success",
      "feature": "summarize",
      "endUser": { "id": "user_123" },
      "usage": { "inputTokens": 1200, "outputTokens": 300 }
    }]
  }'
```

**4. Check the receipt**

```json theme={null}
{
  "data": {
    "requestId": "request-uuid",
    "receivedAt": "2026-11-19T12:00:01Z",
    "acceptedCount": 1,
    "rejectedCount": 0,
    "rejected": []
  }
}
```

A `202` response means valid events reached the queue. Inspect `data.rejected` for failed items. Processing and cost calculation happen later.

See [event fields](https://docs.brello.app/sdk/guides/events.md) to adapt the payload to your application and [delivery and retries](https://docs.brello.app/sdk/guides/errors.md) to handle partial acceptance and network failures.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.