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

# Quickstart

> Make your first request to the preezie API.

This quickstart will become the shortest path from receiving credentials to making a successful API request.

## 1. Select an environment

Choose the appropriate base URL from [Environments](/getting-started/environments).

## 2. Configure authentication

Follow the instructions in [Authentication](/getting-started/authentication).

## 3. Send a request

Use the operation token returned by the [widget SDK](https://www.npmjs.com/package/@preezie/widget-sdk) and your tenant identifier to call a Core Intent endpoint. The following example sends a product-search request:

```bash theme={null}
curl --no-buffer --request POST \
  "$PREEZIE_API_URL/api/operation/search" \
  --header "Authorization: Bearer $PREEZIE_OPERATION_TOKEN" \
  --header "Tenantid: $PREEZIE_TENANT_ID" \
  --header "Content-Type: application/json" \
  --data '{
    "sessionId": "session-123",
    "visitorId": "visitor-456",
    "content": "Show me lightweight black running shoes",
    "requestOrigin": "Operation",
    "pageSize": 12,
    "operationHideAiMessage": false,
    "operationReturnFullProductInfo": false,
    "chatMetadata": {
      "websiteUrl": "https://shop.example.com/collections/running"
    }
  }'
```

The response is streamed as `text/event-stream`, so read each `data:` line as an independent JSON message. See [Search for products](/api-reference/endpoints/search) for the request fields and response format.
