> ## Documentation index
> Fetch the complete documentation index at: https://workover.io/docs/llms.txt

# Import WordPress posts

POST`/project/doc/{projectId}/wp-import`

Import a connected site's existing posts, across post types, into a project as linked documents.

## Path Parameters

`projectId`

stringrequired

## Response

201

**cURL**

```bash
curl --request POST \
  --url 'https://api.workover.io/project/doc/{projectId}/wp-import'
```

**JavaScript**

```javascript
const options = {
  method: 'POST'
};

fetch('https://api.workover.io/project/doc/{projectId}/wp-import', options)
  .then(res => res.json())
  .then(res => console.log(res))
  .catch(err => console.error(err));
```

**Python**

```python
import requests

url = "https://api.workover.io/project/doc/{projectId}/wp-import"

response = requests.post(url)

print(response.text)
```
