v1
latestOpenAPI 3.0.0Proprietary2026-07-26316155742.7 KBRepo 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
Example request
{
"repository_branch": "my-feature-branch",
"branch": "my-strings-branch"
}Response
OK
Example response
{
"type": "import",
"created_at": "2015-01-28T09:52:53Z",
"status": "failure",
"auto_import": true,
"errors": [
"Error message 1",
"Error message 2"
]
}