# Import a document into AI knowledge.

`POST /api/plugins/docs/documents/{id}/knowledge/import`

Authentication: no security requirement declared for this operation.

Parameters:

- `id` (path, string, required)
  Type: string

Responses:

- 200: Document queued (or already in knowledge).

- 409: Not indexable / not READY.

## Examples

### cURL

```bash
curl -X POST 'http://localhost:3000/api/plugins/docs/documents/string/knowledge/import'
```

### JavaScript

```javascript
const response = await fetch('http://localhost:3000/api/plugins/docs/documents/string/knowledge/import', {
  method: 'POST',
});

const data = await response.text();
```

### Python

```python
import requests

response = requests.post('http://localhost:3000/api/plugins/docs/documents/string/knowledge/import')
print(response.text)
```
