---
updatedAt: 2026-09-30T13:48:00.000Z
agentTools:
  projectIndex: https://developers.localizejs.com/llms.txt
---

# Import a File using cURL

```curl cURL
curl -XPOST 'https://api.localizejs.com/v2.0/projects/YOUR_PROJECT_KEY/resources' \
  -H 'Authorization: Bearer YOUR_PRIVATE_API_KEY' \
  -F 'language=fr' \
  -F 'format=CSV' \
  -F 'type=phrase' \
  -F 'content=@/path/to/the/file/resource.yaml' \
  -H 'Content-Type: multipart/form-data'
```

```json Response Example
{"success":true}
```

# Install cURL



Find the relevant cURL package or installer for your type of computer and install it.

# Create Import File



The next step is to create your import file using one of the supported formats as detailed in our help docs:
* <a href="https://help.localizejs.com/docs/import-export#supported-file-formats" target="_blank">Localize For Web</a> projects
* <a href="https://help.localizejs.com/docs/import-export-for-mobile#supported-file-formats" target="_blank">Localize For Mobile</a> projects

Make sure this file is accessible from your computer.

# Open a Terminal Window



Open a terminal window
* Use the Terminal app on a Mac
* Windows Terminal on Windows

# Use cURL to import your file

<!-- curl@1-7 -->

Call the "Import content" endpoint using cURL by entering the sample code in your terminal window.

You'll need to provide the following:
* Your Project Key
* Your API Key
* The language code for the content you are importing.
* The format of file being uploaded (case-sensitive).
* The path to the file on your local computer.

# Results



A success or failure message will be displayed in the terminal.