Versions / History

GET /v2/projects/:project_id/translations/:translation_id/versions

List all versions for the given translation.

This endpoint is paginated.

Example Request

curl "https://api.phraseapp.com/api/v2/projects/:project_id/translations/:translation_id/versions" \
  -u USERNAME_OR_ACCESS_TOKEN
phraseapp versions list <project_id> <translation_id>

Response

Status: 200
[ { "id": "abcd1234cdef1234abcd1234cdef1234", "content": "My translation", "plural_suffix": "", "key": { "id": "abcd1234cdef1234abcd1234cdef1234", "name": "home.index.headline", "plural": false }, "locale": { "id": "abcd1234cdef1234abcd1234cdef1234", "name": "en", "code": "en-GB" }, "created_at": "2015-01-28T09:52:53Z", "updated_at": "2015-01-28T09:52:53Z", "changed_at": "2015-01-28T09:52:53Z" }, { "id": "abcd1234cdef1234abcd1234cdef1234", "content": "My translation", "plural_suffix": "", "key": { "id": "abcd1234cdef1234abcd1234cdef1234", "name": "home.index.headline", "plural": false }, "locale": { "id": "abcd1234cdef1234abcd1234cdef1234", "name": "en", "code": "en-GB" }, "created_at": "2015-01-28T09:52:53Z", "updated_at": "2015-01-28T09:52:53Z", "changed_at": "2015-01-28T09:52:53Z" } ]

GET /v2/projects/:project_id/translations/:translation_id/versions/:id

Get details on a single version.

Example Request

curl "https://api.phraseapp.com/api/v2/projects/:project_id/translations/:translation_id/versions/:id" \
  -u USERNAME_OR_ACCESS_TOKEN
phraseapp version show <project_id> <translation_id> <id>

Response

Status: 200
{ "id": "abcd1234cdef1234abcd1234cdef1234", "content": "My translation", "plural_suffix": "", "key": { "id": "abcd1234cdef1234abcd1234cdef1234", "name": "home.index.headline", "plural": false }, "locale": { "id": "abcd1234cdef1234abcd1234cdef1234", "name": "en", "code": "en-GB" }, "created_at": "2015-01-28T09:52:53Z", "updated_at": "2015-01-28T09:52:53Z", "changed_at": "2015-01-28T09:52:53Z", "user": { "id": "abcd1234cdef1234abcd1234cdef1234", "username": "joe.doe", "name": "Joe Doe" } }