v1
latestOpenAPI 3.0.0Proprietary2026-07-26316155742.7 KBRepo Syncs
Create a Repo Sync
Create a new Repo Sync.
post/accounts/{account_id}/repo_syncs
Path parameters
account_idstring required
Account ID
Headers
X-PhraseApp-OTPstring
Two-Factor-Authentication token (optional)
Request body
Example request
{
"project_id": "abcd1234abcd1234abcd1234abcd1234",
"git_provider": "github",
"connection_type": "github_app",
"repo_name": "my-org/my-repo",
"base_branch": "main",
"pr_branch": "phrase-translations",
"access_token": "ghp_xxxxxxxxxxxxxxxxxxxx",
"custom_api_endpoint": "https://git.example.com/api/v4"
}Response
Created
Example response
{
"id": "abcd1234cdef1234abcd1234cdef1234",
"project": {
"id": "abcd1234cdef1234abcd1234cdef1234",
"name": "My Android Project",
"main_format": "xml",
"created_at": "2015-01-28T09:52:53Z",
"updated_at": "2015-01-28T09:52:53Z"
},
"provider": "github",
"enabled": true,
"auto_import": true,
"repo_name": "organization/repo",
"created_at": "2015-01-28T09:52:53Z",
"last_import_at": "2015-01-28T09:52:53Z",
"last_export_at": "2015-01-28T09:52:53Z"
}