문서 목차

번역 작업 API

번역문 가져오기

POST/v1/translation/queryTexts

시스템에서 추출한 원문과 번역문을 일대일로 대응하여 JSON 형식으로 반환받습니다

전체 주소
https://otranslator.com/api/v1/translation/queryTexts
인증
Authorization 요청 헤더에 API Key를 전달해야 합니다
Content-Type
application/json
잘못된 형식
{ "error": "Invalid API key." }

주의사항

이 인터페이스는 번역 캐시의 구조화된 텍스트를 반환하며, 번역 수정, 2차 처리 또는 비즈니스 시스템 동기화에 적합합니다.

작업에서 아직 텍스트 캐시가 생성되지 않은 경우 texts와 revisedTexts는 빈 객체를 반환합니다.

예시

curl
1curl -X POST 'https://otranslator.com/api/v1/translation/queryTexts' \
2--header 'Authorization: [yourSecretKey]' \
3--header 'Content-Type: application/json' \
4--data '{
5  "taskId": "[string]"
6}'

요청 매개변수

매개변수유형기본값설명예시
*taskIdString-

번역 작업 ID

-

응답

매개변수유형기본값설명예시
taskIdString-

번역 작업 ID

-
textsJSON-

원문과 번역문에 대응하는 JSON

-
revisedTextsJSON-

수정된 원문과 번역문

-

일반적인 오류

401 Missing API key.

The Authorization request header is required.

401 Invalid API key.

The API key does not exist, has been deleted, or is no longer valid.

400 Missing required parameter: taskId.

Provide the taskId returned by the create translation task API.

404 Task not found.

The task does not exist, has been deleted, does not belong to the current API account, or was not created through the API.

번역 작업 API
번역 작업 삭제
번역 작업 API
번역문 수정