Changed in version 2.5.1.
Pootle provides a REST API for interacting with it using external tools, allowing those to retrieve data, for example translation stats, or save data to Pootle, e.g. translations. This reference document is written for those interested in:
Pootle API is disabled by default. To enable it just install
django-tastypie and put the following line on your custom settings:
POOTLE_ENABLE_API = True
If you are running Pootle using Apache with
mod_wsgi you will need to
WSGIPassAuthorization On as told in
Tastypie authentication docs.
In order to interact with Pootle API it is necessary to know how to use it and some of its particularities.
The Pootle API exposes a number of resources. Next you have a complete list of them with data about the accepted HTTP methods, result limits, authentication requirements or other constraints.
You might want to look at the Glossary to fully understand the resource names used in the API.