v1

latestOpenAPI 3.0.0Proprietary2026-07-26316155742.7 KB
Repo Syncs

Import from code repository

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

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

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

Path parameters

account_idstring required

Account ID

idstring required

ID

Headers

X-PhraseApp-OTPstring

Two-Factor-Authentication token (optional)

Request body

repository_branchstring

Branch to import from

branchstring

Strings branch to import to

Example request

{
  "repository_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"
  ]
}