> For the complete documentation index, see [llms.txt](https://readme.directual.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://readme.directual.com/data/import-and-export/import-api.md).

# Import API

### Import <a href="#restapi-import" id="restapi-import"></a>

API method accepts POST-request with CSV / XLS (**multipart/form-data**)

<mark style="color:green;">`POST`</mark> `https://api.directual.com/good/api/v3/struct/structureName/import?appID=appID&appSecret=appSecret`

#### Path Parameters

| Name          | Type   | Description                                  |
| ------------- | ------ | -------------------------------------------- |
| structureName | string | Structure system name                        |
| appID         | string | App ID (go to API section, API keys)         |
| appSecret     | string | API key secret (go to API section, API keys) |

{% tabs %}
{% tab title="200 " %}

```
{
  "result": {
    "insert": 10,
    "update": 1,
    "lastObjectID": "3d00ccc3-eb6a-403e-8846-961e38341b49"
  },
  "status": "OK"
}
```

{% endtab %}
{% endtabs %}

{% hint style="info" %}
Tip: Export the file, check its format, then prepare it for import.
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://readme.directual.com/data/import-and-export/import-api.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
