Skip to main content
POST

Authorizations

Authorization
string
header
required

Use a Bearer token obtained from Phrase Platform authentication. See the Authentication guide for details on how to obtain a token.

Headers

Content-Type
string
required

Media type of the request body.

Example:

"application/json"

Body

application/json

Request to evaluate translation segments. Exactly one of qualityProfileUid or aiCheckUids must be provided. Supplying both or neither will result in a 400 Bad Request error.

segments
object[]
required

Segments to evaluate.

Required array length: 1 - 200 elements
sourceLocaleCode
string
required

Locale code compatible with Phrase locale format. Case-insensitive, supports both underscore and hyphen separators (e.g., en_us, en-US, de_de, fr_fr).

Example:

"en_us"

targetLocaleCode
string
required

Locale code compatible with Phrase locale format. Case-insensitive, supports both underscore and hyphen separators (e.g., en_us, en-US, de_de, fr_fr).

Example:

"en_us"

qualityProfileUid
string

UID of the Quality Profile to use for evaluation. Cannot be combined with aiCheckUids.

aiCheckUids
string[]

List of AI Check UIDs to evaluate against. Cannot be combined with qualityProfileUid. Maximum 3 items.

Maximum array length: 3

Response

Evaluation completed successfully. Returns evaluated segments with per-check results.

Evaluation results for v2 endpoint.

segments
object[]
required

Evaluated segments with all AI Check results nested per segment.

qualityProfileUid
string

UID of the Quality Profile used for evaluation. Null when evaluating by AI Check UIDs directly.