Quick Start - API

Learn how to get started with Localazy API quickly.

You can upload strings and download translations using our API in a few simple steps

1. Visit the Localazy Developer Portal and create a new token for your project.

2. Call /projects endpoint and retrieve your project id.

curl --request GET \
  --url 'https://api.localazy.com/projects' \
  --header 'Authorization: Bearer <project-token>'

3. With your project id, you can import content as following:

curl --request POST \
  --url 'https://api.localazy.com/projects/<project-id>/import' \
  --header 'Authorization: Bearer <project-token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "files": [
    {
      "name": "file.json",
      "content": {
        "en": {
          "hello_world": "Hello World!"
        },
        "fr": {
          "hello_world": "Salut tout le monde!"
        }
      }
    }
  ]
}'

For more import options, check the API Import article.

Learn how to download your files in the API Files article.