
## Get a quote

`GET /v1/quotes/:id`

Returns a quote by ID with all fields, including user fields (`ufCrm_*`).

## Parameters

| Parameter | Type | Required | Description |
|----------|-----|:-----:|---------|
| `id` (path) | number | yes | Quote ID |

## Examples

### curl — personal key

```bash
curl "https://vibecode.bitrix24.com/v1/quotes/412" \
  -H "X-Api-Key: YOUR_API_KEY"
```

### curl — OAuth app

```bash
curl "https://vibecode.bitrix24.com/v1/quotes/412" \
  -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/412', {
  headers: {
    'X-Api-Key': 'YOUR_API_KEY',
  },
})

const { success, data } = await res.json()
console.log('Quote:', data.title, '—', data.amount, data.currency)
```

### JavaScript — OAuth app

```javascript
const res = await fetch('https://vibecode.bitrix24.com/v1/quotes/412', {
  headers: {
    'X-Api-Key': 'YOUR_APP_KEY',
    'Authorization': 'Bearer USER_SESSION_TOKEN',
  },
})

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

More about include: [Related data](/docs/includes).

## Response fields

The quote object with all fields — see [Quote fields](/docs/entities/quotes/fields).

## Related data

Retrieve related entities together with the quote — the `include` parameter in a GET request:

```
GET /v1/quotes/412?include=deal,contact,company
```

Available include: `deal`, `contact`, `company`. The result is in the `_included` field:

```json
{
  "success": true,
  "data": {
    "id": 412,
    "title": "Quote for server hardware",
    "_included": {
      "deal": { "id": 741, "title": "Equipment delivery", "amount": 50000 },
      "contact": { "id": 71, "name": "John Brown" },
      "company": { "id": 15, "title": "Acme LLC" }
    }
  }
}
```

More about include: [Related data](/docs/includes).

## Response example

```json
{
  "success": true,
  "data": {
    "id": 412,
    "title": "Quote for server hardware",
    "amount": 150000,
    "currency": "USD",
    "stageId": "SENT",
    "dealId": 741,
    "contactId": 71,
    "companyId": 15,
    "assignedById": 29,
    "createdBy": 1,
    "comments": "",
    "beginDate": "2026-04-15T00:00:00.000Z",
    "closeDate": "2026-05-15T00:00:00.000Z",
    "createdTime": "2026-04-15T10:30:00.000Z",
    "updatedTime": "2026-04-15T14:22:00.000Z",
    "_included": {
      "deal": { "id": 741, "title": "Equipment delivery", "amount": 50000 },
      "contact": { "id": 71, "name": "John Brown" },
      "company": { "id": 15, "title": "Acme LLC" }
    }
  }
}
```


## Error response example

404 — quote not found:

```json
{
  "success": false,
  "error": {
    "code": "ENTITY_NOT_FOUND",
    "message": "Item not found"
  }
}
```

More about include: [Related data](/docs/includes).

## Errors

| HTTP | Code | Description |
|------|-----|---------|
| 404 | `ENTITY_NOT_FOUND` | A quote with this ID was not found |
| 403 | `ACCESS_DENIED` | No access to the quote |
| 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).

## See also

- [Working with files in CRM fields](/docs/recipes/crm-files)
- [Update a quote](/docs/entities/quotes/update) — modifying fields
- [List quotes](/docs/entities/quotes/list) — search with filters
- [Quote fields](/docs/entities/quotes/fields) — description of all fields
- [Limits and optimization](/docs/optimization) — rate limits
