Skip to main content
POST
/
accounts
/
{account_id}
/
repo_syncs
/
{id}
/
export
cURL
curl "https://api.phrase.com/v2/accounts/ab12cd34/repo_syncs/45ef6789/export"\
  -u USERNAME_OR_ACCESS_TOKEN \
  -X POST \
  -H 'Content-Type: application/json'
{
  "type": "import",
  "created_at": "2015-01-28T09:52:53Z",
  "status": "failure",
  "auto_import": true,
  "errors": [
    "Error message 1",
    "Error message 2"
  ]
}

Authorizations

Authorization
string
header
required

Enter your token in the format token TOKEN

Headers

X-PhraseApp-OTP
string

Two-Factor-Authentication token (optional)

Path Parameters

account_id
string
required

Account ID

id
string
required

ID

Response

OK

id
string
type
enum<string>
Available options:
import,
export
created_at
string<date-time>
status
enum<string>
Available options:
running,
success,
failure
pull_request_url
string

URL of the pull request created on export

auto_import
boolean

Whether the import was triggered by the repo push event

errors
string[]

List of error messages, in case of failure