v1

latestOpenAPI 3.0.0Proprietary2026-07-26316155742.7 KB
Repo Syncs

Export to code repository

Export translations from Phrase Strings to repository provider according to the .phrase.yml file within the code repository.

Export is done asynchronously and may take several seconds depending on the project size.

post/accounts/{account_id}/repo_syncs/{id}/export

Path parameters

account_idstring required

Account ID

idstring required

ID

Headers

X-PhraseApp-OTPstring

Two-Factor-Authentication token (optional)

Request body

pr_branchstring

Source branch to open a pull request from

branchstring

Strings branch to export from

Example request

{
  "pr_branch": "my-feature-branch",
  "branch": "my-strings-branch"
}

Response

OK

idstring
type'import' | 'export'
created_atstring date-time
status'running' | 'success' | 'failure'
pull_request_urlstring

URL of the pull request created on export

auto_importboolean

Whether the import was triggered by the repo push event

errorsstring[]

List of error messages, in case of failure

Example response

{
  "type": "import",
  "created_at": "2015-01-28T09:52:53Z",
  "status": "failure",
  "auto_import": true,
  "errors": [
    "Error message 1",
    "Error message 2"
  ]
}