curl --request POST 'https://api.voicecheap.ai/v1/actions/segment_actions_cancel' \
--header "x-api-key: $VOICECHEAP_API_KEY" \
--header 'Content-Type: application/json' \
--data '{"projectId":"project_launch_2026","jobId":"41321bda-e243-4b6f-96a4-622cd047c991","requestId":"c6d1fec6-bf7d-40aa-91e7-e4b0676d6020"}'
const input = {
projectId: 'project_launch_2026',
jobId: '41321bda-e243-4b6f-96a4-622cd047c991',
requestId: 'c6d1fec6-bf7d-40aa-91e7-e4b0676d6020',
};
const response = await fetch('https://api.voicecheap.ai/v1/actions/segment_actions_cancel', {
method: 'POST',
headers: {
'x-api-key': process.env.VOICECHEAP_API_KEY,
'Content-Type': 'application/json',
},
body: JSON.stringify(input),
});
const body = await response.json();
if (!response.ok) throw new Error(body.code + ': ' + body.message);
console.log(body);
import os
import requests
response = requests.post(
"https://api.voicecheap.ai/v1/actions/segment_actions_cancel",
headers={"x-api-key": os.environ["VOICECHEAP_API_KEY"]},
json={"projectId": "project_launch_2026", "jobId": "41321bda-e243-4b6f-96a4-622cd047c991", "requestId": "c6d1fec6-bf7d-40aa-91e7-e4b0676d6020"},
timeout=120,
)
body = response.json()
if not response.ok:
raise RuntimeError(f"{body.get('code')}: {body.get('message')}")
print(body)
{
"data": {
"projectId": "project_launch_2026",
"revision": 2,
"items": [
{
"id": "41321bda-e243-4b6f-96a4-622cd047c991",
"action": {
"type": "text",
"segmentIndex": 0,
"source": "original"
},
"status": "cancelled",
"createdAt": 1792152000000,
"finishedAt": 1792152002000
}
]
},
"requestId": "c6d1fec6-bf7d-40aa-91e7-e4b0676d6020"
}
{
"data": {
"requestId": "c6d1fec6-bf7d-40aa-91e7-e4b0676d6020",
"operation": "segment_actions_cancel",
"createdAt": 1792144800000,
"updatedAt": 1792144820000,
"status": "running",
"pollAfterSeconds": 5
},
"requestId": "c6d1fec6-bf7d-40aa-91e7-e4b0676d6020"
}
{
"data": {
"requestId": "c6d1fec6-bf7d-40aa-91e7-e4b0676d6020",
"operation": "segment_actions_cancel",
"createdAt": 1792144800000,
"updatedAt": 1792144820000,
"status": "completed",
"resultStored": false,
"message": "The action completed. Retrieve its output from the corresponding history or resource action."
},
"requestId": "c6d1fec6-bf7d-40aa-91e7-e4b0676d6020"
}
전사문 및 편집
대기 중인 세그먼트 액션 취소
본인의 대기 중인 세그먼트 액션을 취소합니다. 이미 실행 중인 액션은 취소할 수 없습니다.
POST
/
v1
/
actions
/
segment_actions_cancel
curl --request POST 'https://api.voicecheap.ai/v1/actions/segment_actions_cancel' \
--header "x-api-key: $VOICECHEAP_API_KEY" \
--header 'Content-Type: application/json' \
--data '{"projectId":"project_launch_2026","jobId":"41321bda-e243-4b6f-96a4-622cd047c991","requestId":"c6d1fec6-bf7d-40aa-91e7-e4b0676d6020"}'
const input = {
projectId: 'project_launch_2026',
jobId: '41321bda-e243-4b6f-96a4-622cd047c991',
requestId: 'c6d1fec6-bf7d-40aa-91e7-e4b0676d6020',
};
const response = await fetch('https://api.voicecheap.ai/v1/actions/segment_actions_cancel', {
method: 'POST',
headers: {
'x-api-key': process.env.VOICECHEAP_API_KEY,
'Content-Type': 'application/json',
},
body: JSON.stringify(input),
});
const body = await response.json();
if (!response.ok) throw new Error(body.code + ': ' + body.message);
console.log(body);
import os
import requests
response = requests.post(
"https://api.voicecheap.ai/v1/actions/segment_actions_cancel",
headers={"x-api-key": os.environ["VOICECHEAP_API_KEY"]},
json={"projectId": "project_launch_2026", "jobId": "41321bda-e243-4b6f-96a4-622cd047c991", "requestId": "c6d1fec6-bf7d-40aa-91e7-e4b0676d6020"},
timeout=120,
)
body = response.json()
if not response.ok:
raise RuntimeError(f"{body.get('code')}: {body.get('message')}")
print(body)
{
"data": {
"projectId": "project_launch_2026",
"revision": 2,
"items": [
{
"id": "41321bda-e243-4b6f-96a4-622cd047c991",
"action": {
"type": "text",
"segmentIndex": 0,
"source": "original"
},
"status": "cancelled",
"createdAt": 1792152000000,
"finishedAt": 1792152002000
}
]
},
"requestId": "c6d1fec6-bf7d-40aa-91e7-e4b0676d6020"
}
{
"data": {
"requestId": "c6d1fec6-bf7d-40aa-91e7-e4b0676d6020",
"operation": "segment_actions_cancel",
"createdAt": 1792144800000,
"updatedAt": 1792144820000,
"status": "running",
"pollAfterSeconds": 5
},
"requestId": "c6d1fec6-bf7d-40aa-91e7-e4b0676d6020"
}
{
"data": {
"requestId": "c6d1fec6-bf7d-40aa-91e7-e4b0676d6020",
"operation": "segment_actions_cancel",
"createdAt": 1792144800000,
"updatedAt": 1792144820000,
"status": "completed",
"resultStored": false,
"message": "The action completed. Retrieve its output from the corresponding history or resource action."
},
"requestId": "c6d1fec6-bf7d-40aa-91e7-e4b0676d6020"
}
본인의 대기 중인 세그먼트 액션을 취소합니다. 이미 실행 중인 액션은 취소할 수 없습니다.
필요한 권한:
POST https://api.voicecheap.ai/v1/actions/segment_actions_cancel
인증 및 권한
string
필수
이 헤더에 VoiceCheap API 키를 전달하세요. 동일한 API 키를 사용하는 Authorization: Bearer도 지원합니다. OAuth 액세스 토큰은 MCP에서만 허용되며, 이
REST 엔드포인트에서는 사용할 수 없습니다.
translations:write.
활성 유료 구독이 필요합니다. 권한은 팀 역할, 리소스 소유권, 미디어 크레딧 또는 요금제 한도를 변경하지 않습니다.
매개변수
string
필수
텍스트 값입니다.최소 길이: 1. 최대 길이: 200. 패턴:
^[^/\\]+$.string
필수
텍스트 값입니다.형식: “uuid”. 패턴:
^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$.string
전송 계층에서는 선택 사항입니다. 생략하면 서버가 유효성 검사 전에 식별자를 추가합니다. 응답이 유실된 경우 안전하게 복구할 수 있도록 고정된 UUID v4를 직접 제공하세요.형식: “uuid”. 패턴:
^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-4[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$.전체 입력 스키마
전체 입력 스키마
아래 JSON Schema는 검색을 통해 제공되는 정확한 필드 이름, 중첩 유형, 기본값, 범위 및 허용값을 유지합니다. 추가적인 필드 간 규칙은 작업 참고 사항에 나와 있습니다.
{
"type": "object",
"properties": {
"projectId": {
"type": "string",
"minLength": 1,
"maxLength": 200,
"pattern": "^[^/\\\\]+$"
},
"jobId": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
"requestId": {
"type": "string",
"format": "uuid",
"pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-4[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$",
"description": "UUID v4 for this action. Reuse the same ID with identical arguments on retries."
}
},
"required": ["projectId", "jobId"],
"additionalProperties": false
}
멱등성
각 변경 작업에 대해 requestId 또는 Idempotency-Key HTTP 헤더에 UUID v4를 사용하세요. 네트워크 오류 후에는 동일한 식별자와 동일한 인수를 재사용하세요. 둘 다 제공하는 경우 값이 일치해야 합니다. 저장된 요청을 재전송해도 작업이 반복되거나 월간 호출이 추가로 차감되지 않습니다. 실패하거나 중단된 요청은 자동으로 다시 시작되지 않습니다. 첫 실행이 일반적으로 동기식인 경우에도, 재시도 시 동일한 요청이 아직 실행 중이면 모든 변경 작업에서 HTTP 202를 반환할 수 있습니다. 실행은 완료되었지만 resultStored가 false이면, 재시도 시 원래 결과 대신 저장된 요청 상태를 HTTP 200으로 반환합니다. 해당 영역의 기록, 결과 또는 다운로드 액션으로 출력을 조회하세요.요청 예제
예제의 리소스 식별자와 미디어 키를 계정에서 반환된 값으로 바꾸세요. 동일한 변경 작업을 재시도할 때는 요청 식별자를 유지하세요.curl --request POST 'https://api.voicecheap.ai/v1/actions/segment_actions_cancel' \
--header "x-api-key: $VOICECHEAP_API_KEY" \
--header 'Content-Type: application/json' \
--data '{"projectId":"project_launch_2026","jobId":"41321bda-e243-4b6f-96a4-622cd047c991","requestId":"c6d1fec6-bf7d-40aa-91e7-e4b0676d6020"}'
const input = {
projectId: 'project_launch_2026',
jobId: '41321bda-e243-4b6f-96a4-622cd047c991',
requestId: 'c6d1fec6-bf7d-40aa-91e7-e4b0676d6020',
};
const response = await fetch('https://api.voicecheap.ai/v1/actions/segment_actions_cancel', {
method: 'POST',
headers: {
'x-api-key': process.env.VOICECHEAP_API_KEY,
'Content-Type': 'application/json',
},
body: JSON.stringify(input),
});
const body = await response.json();
if (!response.ok) throw new Error(body.code + ': ' + body.message);
console.log(body);
import os
import requests
response = requests.post(
"https://api.voicecheap.ai/v1/actions/segment_actions_cancel",
headers={"x-api-key": os.environ["VOICECHEAP_API_KEY"]},
json={"projectId": "project_launch_2026", "jobId": "41321bda-e243-4b6f-96a4-622cd047c991", "requestId": "c6d1fec6-bf7d-40aa-91e7-e4b0676d6020"},
timeout=120,
)
body = response.json()
if not response.ok:
raise RuntimeError(f"{body.get('code')}: {body.get('message')}")
print(body)
응답
성공한 첫 실행은 작업 결과를 data 아래에 포함하여 HTTP 200을 반환합니다. 재전송 시에는 저장된 요청 상태를 대신 반환할 수 있습니다. 예제는 지원되는 응답 중 하나를 보여주며 모든 선택 필드를 포함하지는 않습니다. 아직 대기 중인 액션을 취소한 후 업데이트된 전체 큐 스냅샷을 반환합니다.{
"data": {
"projectId": "project_launch_2026",
"revision": 2,
"items": [
{
"id": "41321bda-e243-4b6f-96a4-622cd047c991",
"action": {
"type": "text",
"segmentIndex": 0,
"source": "original"
},
"status": "cancelled",
"createdAt": 1792152000000,
"finishedAt": 1792152002000
}
]
},
"requestId": "c6d1fec6-bf7d-40aa-91e7-e4b0676d6020"
}
{
"data": {
"requestId": "c6d1fec6-bf7d-40aa-91e7-e4b0676d6020",
"operation": "segment_actions_cancel",
"createdAt": 1792144800000,
"updatedAt": 1792144820000,
"status": "running",
"pollAfterSeconds": 5
},
"requestId": "c6d1fec6-bf7d-40aa-91e7-e4b0676d6020"
}
{
"data": {
"requestId": "c6d1fec6-bf7d-40aa-91e7-e4b0676d6020",
"operation": "segment_actions_cancel",
"createdAt": 1792144800000,
"updatedAt": 1792144820000,
"status": "completed",
"resultStored": false,
"message": "The action completed. Retrieve its output from the corresponding history or resource action."
},
"requestId": "c6d1fec6-bf7d-40aa-91e7-e4b0676d6020"
}
결과 필드
| 필드 | 설명 |
|---|---|
data.projectId | 상위 프로젝트 식별자입니다. |
data.revision | 대기열 스냅샷 리비전입니다. projects_get.segmentStructureRevision과는 독립적입니다. |
data.items | 프로젝트 작업 진행 상황: 작업 식별자, 작업 메타데이터, 상태, 타임스탬프 및 선택적 공개 errorCode. |
data.items[].id | 작업 식별자이며 최초 대기열 제출의 requestId와 같습니다. |
data.items[].action | 작업 메타데이터만 포함합니다: type, segmentIndex 및 선택적 workId, translatedVersionId, source. 제출한 텍스트, 시간 값 및 재생성 지침은 반환되지 않습니다. |
data.items[].status | queued, running, completed, failed 또는 cancelled입니다. |
data.items[].createdAt | Unix 밀리초로 표시한 큐 항목 생성 시각입니다. |
data.items[].startedAt | 선택 사항인 최초 시작 시각으로, Unix 밀리초 단위입니다. |
data.items[].finishedAt | 선택 사항인 종료 시각으로, Unix 밀리초 단위입니다. |
data.items[].errorCode | 선택적 공개 오류 코드입니다. 분류되지 않은 실패에는 ACTION_FAILED를 사용합니다. |
data.items[].seenAt | 인증된 조회자 본인에게만 해당하는 선택적인 확인 시점입니다. |
이 요청 복구 및 폴링
연결이 끊어진 후에도 동일한 식별자를 사용하세요. resultStored가 false이면 해당 기록, 결과 또는 다운로드 액션을 통해 출력을 조회하세요. 진행 상황을 확인하기 위해 두 번째 생성을 시작하지 마세요.curl --request POST 'https://api.voicecheap.ai/v1/actions/action_request_get' \
--header "x-api-key: $VOICECHEAP_API_KEY" \
--header 'Content-Type: application/json' \
--data '{"requestId":"c6d1fec6-bf7d-40aa-91e7-e4b0676d6020","operation":"segment_actions_cancel"}'
HTTP 200
{
"data": {
"requestId": "c6d1fec6-bf7d-40aa-91e7-e4b0676d6020",
"operation": "segment_actions_cancel",
"status": "completed",
"createdAt": 1792144800000,
"updatedAt": 1792144820000,
"resultStored": true,
"result": {
"projectId": "project_launch_2026",
"revision": 2,
"items": [
{
"id": "41321bda-e243-4b6f-96a4-622cd047c991",
"action": {
"type": "text",
"segmentIndex": 0,
"source": "original"
},
"status": "cancelled",
"createdAt": 1792152000000,
"finishedAt": 1792152002000
}
]
}
}
}
작업 참고 사항
- jobId는 취소할 큐 항목을 식별합니다. requestId는 취소 요청에 사용하는 별개의 고정 UUID v4입니다.
- queued 항목만 cancelled로 바뀔 수 있습니다. Running, completed 및 failed 항목은 취소할 수 없습니다. 이미 cancelled인 항목을 취소하면 현재 스냅샷을 반환합니다.
- 핸들러는 projectId, revision 및 items를 직접 반환합니다. success 불리언이나 중첩된 queue 필드는 없습니다.
- 취소해도 완료된 생성은 환불되지 않으며 이미 실행 중인 미디어 작업도 중단되지 않습니다.
- 제출, 취소, 폴링 및 재실행을 포함한 대기열 응답에는 작업 메타데이터만 포함됩니다. 전사 내용은 필수 transcription:read 권한으로 transcripts_get을 사용해 읽으세요.
사용량
성공한 호출마다 월간 API/MCP 호출 1회가 차감됩니다. 미디어 크레딧과 해당 작업의 생성 허용량도 적용됩니다.오류
| HTTP 상태 | 코드 | 의미 또는 복구 방법 |
|---|---|---|
| 400 | CREDENTIAL_IN_QUERY | 자격 증명이 access_token 또는 api_key 쿼리 매개변수로 제공되었습니다. 자격 증명은 헤더로 보내세요. |
| 400 | IDEMPOTENCY_CONFLICT | Idempotency-Key 헤더와 본문의 requestId 필드가 일치해야 합니다. |
| 400 | INVALID_REQUEST_ID | UUID v4인 requestId 또는 Idempotency-Key를 제공하세요. |
| 400 | VALIDATION_ERROR | 스키마에 따라 입력을 수정하세요. 유효하지 않거나 일관되지 않은 값은 실행 전에 거부됩니다. |
| 401 | API_KEY_EXPIRED | API 키가 만료되었습니다. |
| 401 | INVALID_API_KEY | 유효하고 만료되지 않은 API 키를 제공하세요. |
| 401 | INVALID_CREDENTIAL | Authorization 헤더의 형식이 잘못되었거나 x-api-key와 충돌합니다. |
| 401 | MISSING_CREDENTIAL | 사용 가능한 헤더 자격 증명이 전달되지 않았거나 4096자를 초과했습니다. |
| 401 | USER_NOT_FOUND | 이 자격 증명에 연결된 계정이 더 이상 존재하지 않습니다. |
| 403 | ACCOUNT_UNAVAILABLE | 작업을 수행하는 계정 또는 결제 계정을 사용할 수 없거나 해당 계정이 삭제 중입니다. |
| 403 | AMBIGUOUS_TEAM_API_KEY | 이 자격 증명의 사용자가 둘 이상의 팀에 속해 있어 청구 컨텍스트가 모호합니다. |
| 403 | FORBIDDEN | 인증된 작업 수행자가 이 프로젝트에 접근할 수 없습니다. |
| 403 | INSUFFICIENT_SCOPE | 필요한 모든 권한을 부여하거나 다른 자격 증명을 사용하세요. |
| 403 | INTEGRATION_PLAN_UNSUPPORTED | 계정의 통합 한도를 확인할 수 없습니다. |
| 403 | SUBSCRIPTION_REQUIRED | 활성 유료 구독을 사용하세요. |
| 403 | TEAM_OWNER_NOT_FOUND | 실제로 적용되는 팀 소유자 계정을 찾을 수 없습니다. |
| 404 | NOT_FOUND | 프로젝트에 이 jobId를 가진 큐 항목이 없습니다. |
| 404 | PROJECT_NOT_FOUND | 접근 가능한 계정에 프로젝트가 없습니다. |
| 409 | CONCURRENT_ACTION_LIMIT_REACHED | 이 계정에서는 이미 10개의 연동 액션이 실행 중입니다. 새 액션을 시작하기 전에 기존 요청을 폴링하세요. |
| 409 | CONFLICT | 대기 중인 액션만 취소할 수 있습니다. 항목이 이미 시작되었거나 완료되었습니다. |
| 409 | IDEMPOTENCY_CONFLICT | 동일한 작업과 인수에 대해서만 식별자를 재사용하세요. |
| 429 | INTEGRATION_MONTHLY_LIMIT_REACHED | 월간 한도가 초기화될 때까지 기다리거나 요금제를 변경하세요. |
| 429 | INTEGRATION_RATE_LIMIT_REACHED | Retry-After가 있으면 지정된 시간만큼 기다리고 백오프를 적용하세요. |
| 500 | INTERNAL_ERROR | 변경 작업을 재시도하기로 결정하기 전에 저장된 요청 상태와 리소스 기록을 확인하세요. |
| 503 | ACTION_RESULT_UNAVAILABLE | 액션은 실행되었지만 결과를 저장할 수 없습니다. 새 생성을 시작하기 전에 저장된 요청 상태와 리소스 기록을 확인하세요. |
| 503 | SERVER_RESTARTING | 서버가 다시 시작 중입니다. 잠시 후 재시도하고, 변경 작업의 경우 동일한 요청 식별자를 유지하세요. |
{
"code": "INSUFFICIENT_SCOPE",
"message": "This credential does not permit the requested action.",
"status": 403,
"details": {
"requiredScopes": ["translations:write"]
}
}
이 페이지가 도움이 되었나요?

