
## Get a storage

`GET /v1/storages/:id`

Returns a single Bitrix24 Drive storage by identifier.

## Parameters

| Parameter | Type | Required | Description |
|----------|-----|:--------:|---------|
| `id` (path) | number | yes | Storage identifier |

## Examples

### curl — personal key

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

### curl — OAuth application

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

const { success, data } = await res.json()
console.log('Storage:', data.name, '—', data.entityType)
```

### JavaScript — OAuth application

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

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

## Response fields

| Field | Type | Description |
|------|-----|---------|
| `success` | boolean | Always `true` on success |
| `data.id` | number | Storage identifier |
| `data.name` | string | Storage name |
| `data.code` | string \| null | Symbolic code. `null` on the Bitrix24 accounts checked |
| `data.module` | string | Owner module of the storage, `disk` for Drive |
| `data.entityType` | string | Owner type: `user`, `group`, `common` |
| `data.entityId` | string | Owner identifier. A string, non-numeric for the shared drive, for example `shared_files_s1` |
| `data.rootFolderId` | number | Identifier of the storage root folder |

## Response example

```json
{
  "success": true,
  "data": {
    "id": 1,
    "name": "John Smith",
    "code": null,
    "module": "disk",
    "entityType": "user",
    "entityId": "1",
    "rootFolderId": 1
  }
}
```

## Error response example

404 — storage not found:

```json
{
  "success": false,
  "error": {
    "code": "ENTITY_NOT_FOUND",
    "message": "Could not find entity with id '999999'."
  }
}
```

## Errors

| HTTP | Code | Description |
|------|-----|---------|
| 404 | `ENTITY_NOT_FOUND` | No storage with the given `id` exists or it is not accessible to the user |
| 403 | `SCOPE_DENIED` | The API key does not have the `disk` scope |
| 401 | `TOKEN_MISSING` | The API key has no configured tokens |

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

## See also

- [List storages](/docs/entities/storages/list) — fetch several storages with filters
- [Storage fields](/docs/entities/storages/fields) — the field schema
- [Folders](/docs/entities/folders) — storage content
- [Limits and optimization](/docs/optimization) — rate limits
