API v2 Documentation

Connect your software to the POEditor localization platform using this simple REST API

Overview

To perform an action using the POEditor API, send a request to the API endpoint and a response will then be sent back to you.

The POEditor API consists of a set of callable methods.

The request should be POST.
The API supports two content types for encoding form data:
- application/x-www-form-urlencoded
- multipart/form-data (required for projects/upload method)

Some parameters take their value as JSON. The JSON is sent as a plain string, as the value of that one form field - not as a form array (tags[]=...) and not as a JSON request body.
Here's an example of a properly formatted JSON, for a request to export to Android Strings with unquoted strings using the «options» parameter:

[{"unquoted": 1}]

Here’s an example of a request containing this JSON - in single quotes, so the shell sends it as one string:

curl -X POST https://api.poeditor.com/v2/projects/export \
     -d api_token="a9824103d8729b923fbe1d268ec69ef9" \
     -d id="7717" \
     -d language="fr" \
     -d type="android_strings" \
     -d fallback_language="en" \
     -d options='[{"unquoted":1}]'

The response you'll get will be a JSON encoded object.
If the response is not successful, the JSON object will contain an error code and a message. You can find the full list of POEditor API errors here.

Authentication

All requests to the POEditor API must contain the parameter api_token. You can get your POEditor API key from your POEditor account. You'll find it in Account or Organization Settings > API Access.

Please take care of your token.

If you think the key has been compromised, you can reset it by clicking the Regenerate API Token button, or you can delete the API Access using the Remove API Token button.

OpenAPI

POEditor's API has an OpenAPI specification. You can find the document on SwaggerHub or download POEditor's Swagger file, which can "translate" our API for your specific needs. Request examples included for the following: C sharp, Go, Java, jaxrs-cxf-client, kotlin-client, PHP, Python, Scala, Swift3, Swift4, Swift5, typescript-angular, typescript-fetch.

METHODS

Projects

List Projects

https://api.poeditor.com/v2/projects/list

Returns the list of localization projects owned by the user.

Argument Value  
api_token required Get token readonly accepted
curl -X POST https://api.poeditor.com/v2/projects/list \
     -d api_token="a9824103d8729b923fbe1d268ec69ef9"
{
    "response": {
        "status": "success",
        "code": "200",
        "message": "OK"
    },
    "result": {
        "projects": [
            {
                "id": 4886,
                "name": "Twentytwelve",
                "public": 0,
                "open": 0,
                "created": "2013-04-12T09:24:42+0000"
            },
            {
                "id": 4537,
                "name": "contact form",
                "public": 0,
                "open": 0,
                "created": "2013-04-02T23:00:06+0000"
            },
            {
                "id": 6639,
                "name": "POEditor WP plugin",
                "public": 0,
                "open": 0,
                "created": "2013-06-05T17:41:25+0000"
            },
            {
                "id": 6268,
                "name": "Test Project",
                "public": 0,
                "open": 0,
                "created": "2013-05-23T14:26:34+0000"
            }
        ]
    }
}

View Project Details

https://api.poeditor.com/v2/projects/view

Returns the localization project's details.

Argument Value  
api_token required Get token readonly accepted
id required <integer> The id of project
curl -X POST https://api.poeditor.com/v2/projects/view \
     -d api_token="a9824103d8729b923fbe1d268ec69ef9" \
     -d id="7717"
{
    "response": {
        "status": "success",
        "code": "200",
        "message": "OK"
    },
    "result": {
        "project": {
            "id": 7717,
            "name": "Automobile",
            "description": "Automobile",
            "public": 0,
            "open": 0,
            "reference_language": "fr",
            "fallback_language": "",
            "terms": 783,
            "terms_last_added": "2024-02-25T11:49:13+0000",
            "terms_last_updated": "2024-02-25T11:51:05+0000",
            "created": "2013-07-04T17:44:37+0000"
        }
    }
}

Add Project

https://api.poeditor.com/v2/projects/add

Creates a new localization project.
Returns the project details (if successful).

Argument Value  
api_token required Get token
name required <string> The name of the project
description optional <string> The description of the project
curl -X POST https://api.poeditor.com/v2/projects/add \
     -d api_token="a9824103d8729b923fbe1d268ec69ef9" \
     -d name="Automobile"
{
    "response": {
        "status": "success",
        "code": "200",
        "message": "Project created."
    },
    "result": {
        "project": {
            "id": 7717,
            "name": "Automobile",
            "description": "",
            "public": 0,
            "open": 0,
            "reference_language": "",
            "fallback_language": "",
            "terms": 0,
            "created": "2014-08-13T09:39:32+0000"
        }
    }
}

Update Project Settings

https://api.poeditor.com/v2/projects/update

Updates the project settings (name, description, reference language, fallback language, proofreading).
If optional parameters are not sent, their respective fields will not be updated.

Argument Value  
api_token required Get token
id required <integer> The id of project
name optional <string> The name of the project
description optional <string> The description of the project
reference_language optional <string> The language code
fallback_language optional <string> The code of the language from which you want to export empty translations.
proofreading optional 0 | 1 Set it to 1 to enable the proofreading feature in the project
lock_proofread optional 0 | 1 Set it to 1 to stop the contributors without proofreading rights from editing or deleting the translations flagged as proofread. It applies only while the proofreading feature is enabled.
curl -X POST https://api.poeditor.com/v2/projects/update \
     -d api_token="a9824103d8729b923fbe1d268ec69ef9" \
     -d id="7717" \
     -d name="Automobile" \
     -d reference_language="fr" \
     -d fallback_language="en" \
     -d proofreading="1" \
     -d lock_proofread="1"
{
    "response": {
        "status": "success",
        "code": "200",
        "message": "OK"
    },
    "result": {
        "project": {
            "id": 7717,
            "name": "Automobile",
            "description": "",
            "public": 1,
            "open": 0,
            "reference_language": "en",
            "fallback_language": "fr",
            "terms": 184,
            "created": "2014-08-13T09:39:32+0000"
        }
    }
}

Delete Project

https://api.poeditor.com/v2/projects/delete

Deletes the localization project from the account.
You must be the owner of the project.

Argument Value  
api_token required Get token
id required <integer> The id of project
curl -X POST https://api.poeditor.com/v2/projects/delete \
     -d api_token="a9824103d8729b923fbe1d268ec69ef9" \
     -d id="7717"
{
    "response": {
        "status": "success",
        "code": "200",
        "message": "Project was deleted: Automobile [7717]"
    }
}

Upload

https://api.poeditor.com/v2/projects/upload

Uploads terms and/or translations. No more than one request every 20 seconds.

Argument Value  
api_token required Get token
id required <integer> The id of project
updating required terms | terms_translations | translations
file required <file> The uploaded file (.po, .xls or any of the supported file formats)
language optional <string> The language code (required only if updating is terms_translations or translations)
When using terms_translations with .xcstrings file format, leave it empty to import all the languages in the file.
overwrite optional 0 | 1 Set it to 1 if you want to overwrite translations
sync_terms optional 0 | 1 Set it to 1 if you want to sync your terms (terms that are not found in the uploaded file will be deleted from the project and the new ones will be added). Ignored if updating = translations.
tags optional <string> Adds tags to the project terms; available when updating terms or terms_translations; you can use the following filters: "all" - for the all the imported terms, "new" - for the terms which aren't already in the project, "obsolete" - for the terms which are in the project but not in the imported file and "overwritten_translations" - for the terms for which translations change (example)
read_from_source optional 0 | 1 For .xliff format only - set it to 1 if you want to import translations from the source tag
fuzzy_trigger optional 0 | 1 Set it to 1 to mark corresponding translations from the other languages as fuzzy for the updated values
type optional <string> Forces the parser to process the file as the specified file type, overriding auto-detection. It can be or one of the following:
arb [Flutter ARB], csv [CSV], ini [INI], key_value_json [Key-Value JSON], i18next [i18next JSON], json [JSON], po [Gettext PO], pot [Gettext POT], properties [Java Properties], resw [.NET RESW], resx [.NET RESX], ts [Qt TS], apple_strings [iOS Strings], xliff [iOS XLIFF], xcstrings [iOS Xcstrings], stringsdict [iOS Stringsdict], xlf [Angular XLIFF], xmb [Angular XMB], xtb