
## List quotes

`GET /v1/quotes`

Returns a list of CRM quotes with support for filtering, sorting, and auto-pagination.

## Parameters

| Parameter | Type | Default | Description |
|----------|-----|-----------|---------|
| `limit` | number | `50` | Number of records (up to 5000). When `limit > 50`, Vibecode automatically requests several pages from Bitrix24 |
| `offset` | number | `0` | Skip N records. When `offset > 0`, `limit <= 500` is recommended |
| `select` | string | — | Field selection: `?select=id,title,amount` |
| `order` | object | — | Sorting: `?order[createdTime]=desc` |
| `filter` | object | — | Filtering by `GET /v1/quotes/fields` fields.<br>[Filter syntax](/docs/filtering). Example: `?filter[stageId]=DRAFT` |

## Examples

### curl — personal key

```bash
curl "https://vibecode.bitrix24.com/v1/quotes?limit=10&order[amount]=desc&filter[stageId]=DRAFT" \
  -H "X-Api-Key: YOUR_API_KEY"
```

### curl — OAuth app

```bash
curl "https://vibecode.bitrix24.com/v1/quotes?limit=10&order[amount]=desc&filter[stageId]=DRAFT" \
  -H "X-Api-Key: YOUR_APP_KEY" \
  -H "Authorization: Bearer USER_SESSION_TOKEN"
```

### JavaScript — personal key

```javascript
const res = await fetch('https://vibecode.bitrix24.com/v1/quotes?limit=10&order[amount]=desc&filter[stageId]=DRAFT', {
  headers: {
    'X-Api-Key': 'YOUR_API_KEY',
  },
})

const { success, data, meta } = await res.json()
console.log(`Found ${meta.total} quotes`)
```

### JavaScript — OAuth app

```javascript
const res = await fetch('https://vibecode.bitrix24.com/v1/quotes?limit=10&order[amount]=desc&filter[stageId]=DRAFT', {
  headers: {
    'X-Api-Key': 'YOUR_APP_KEY',
    'Authorization': 'Bearer USER_SESSION_TOKEN',
  },
})

const { success, data, meta } = await res.json()
```

## Response fields

| Field | Type | Description |
|------|-----|---------|
| `data` | array | Array of quotes (each contains all fields — see [Fields](/docs/entities/quotes/fields)) |
| `meta.total` | number | Total number of records matching the filter |
| `meta.hasMore` | boolean | Whether there are more records beyond `limit` |

The URL of any quote card from the `data` array is its `id`:

```
https://<portal>.bitrix24.com/crm/type/7/details/<id>/
```

`7` — the `entityTypeId` of a quote in Bitrix24. `<portal>` — the Bitrix24 account domain. Access is restricted by the employee's permissions in Bitrix24.

## Response example

```json
{
  "success": true,
  "data": [
    {
      "id": 412,
      "title": "Quote for server hardware",
      "amount": 150000,
      "currency": "USD",
      "stageId": "DRAFT",
      "dealId": 741,
      "assignedById": 1,
      "createdTime": "2026-04-15T10:30:00.000Z",
      "contactId": 71,
      "companyId": 15
    }
  ],
  "meta": {
    "total": 48,
    "hasMore": true
  }
}
```

## Error response example

403 — no scope:

```json
{
  "success": false,
  "error": {
    "code": "SCOPE_DENIED",
    "message": "This endpoint requires 'crm' scope"
  }
}
```

## Errors

| HTTP | Code | Description |
|------|-----|---------|
| 403 | `SCOPE_DENIED` | The API key lacks the `crm` scope |
| 401 | `TOKEN_MISSING` | The API key has no configured tokens |

Full list of common API errors — [Errors](/docs/errors).

## Known specifics

**Auto-pagination:** when `limit > 50`, Vibecode automatically requests several pages from Bitrix24 and returns all records in a single response.

**Offset limit:** when `offset >= 2500`, Bitrix24 may return `INTERNAL_ERROR`. Use `limit <= 500` with large offsets.

**When to use search instead of list:** for complex filters with many conditions, `POST /v1/quotes/search` is more convenient — parameters are passed in the body rather than the query string. Search also supports [windowed search by dates](/docs/batch) for large selections. See [Search quotes](/docs/entities/quotes/search).

## See also

- [Search quotes](/docs/entities/quotes/search) — POST request for complex filters
- [Create a quote](/docs/entities/quotes/create) — creating a new one
- [Filter syntax](/docs/filtering)
- [Entity API](/docs/entity-api) — select, order, pagination
- [Batch](/docs/batch) — combining several list requests
- [Limits and optimization](/docs/optimization) — rate limits
