한국AI통신 공식 개발자 문서 · 운영사 팀러너스 주식회사 · koreaaitel.com

KAT Cloud(katcloud.kr)는 한국AI통신과 관계없는 별도 회사가 운영하는 서비스입니다. 공식 채널 안내

통화

발신 전화 생성

발신 전화 생성. POST /v1/accounts/{accountId}/calls. 한국AI통신(koreaaitel.com) API 레퍼런스.

Markdown으로 보기
POST
/v1/accounts/{accountId}/calls

아웃바운드 전화를 발신합니다. 일반 발신에는 계정에 등록된 From 번호가 필요합니다.

02·대표번호 표시: 보유한 번호를 통화 발신번호 표기에서 등록합니다. 통신가입증명원 심사를 통과한 표시 번호를 계정의 070에 연결하세요. API에서는 번호 수정의 presentationNumberId를 사용합니다. 외부 전화로 발신할 때 요청의 From에 그 070 번호를 보내면 연결된 번호가 수신자에게 표시됩니다.

전화 발신: To에 전화번호를 입력하면 일반 전화로 발신됩니다.

  • 예: "To": "01012345678"

매니지드 에이전트: AgentId를 지정하면 콘솔에서 만든 AI 에이전트가 통화를 처리합니다. 이때 CallContext로 이번 통화에만 적용되는 요구사항(Instruction)과 참조 데이터 (Variables)를 얹을 수 있습니다. 콘솔에 저장된 에이전트 설정은 바뀌지 않으므로 같은 에이전트로 동시에 거는 다른 통화에는 영향이 없습니다. AgentId 모드 전용이라 다른 모드와 함께 보내면 400으로 거절됩니다.

Agent SDK: Url, AgentId, CallFlowId를 모두 생략하면 From 번호에 연결된 Agent SDK로 통화가 연결됩니다. Agent가 연결되어 있지 않으면 409 에러를 반환합니다.

공용 010: 이용 권한이 있는 계정은 CallerIdMode: "shared-010"으로 국내 발신할 수 있습니다. SdkAgentId로 연결된 SDK 에이전트를 지정하거나 AgentId, Url, CallFlowId 중 하나로 통화를 처리하면 From을 생략할 수 있습니다. 번호 기반 SDK를 사용하면 기존 From으로 에이전트를 지정합니다. 실제로 발신에 사용한 010은 presentedFrom에 담깁니다. 공용 010 발신은 상대 단말의 벨이 울리기 시작한 시점부터 통화가 끝날 때까지 과금됩니다. 상대가 받지 않은 통화도 벨이 울린 시간만큼 과금됩니다.

Url, AgentId, CallFlowId는 서로 배타적입니다. 201 Created는 발신 요청이 큐에 들어갔다는 뜻이며 통화 연결 성공을 뜻하지 않습니다. 반환된 callId를 GET /v1/accounts/{accountId}/calls/{callId}로 조회해 최종 상태를 확인하세요.

AI Completion 모드는 종료되었습니다. AI 필드를 포함한 요청은 410으로 거절됩니다. Url(VoiceML), AgentId, CallFlowId 또는 Agent SDK를 사용하세요.

Authorization

BearerAuth
AuthorizationBearer <token>

API Key를 Bearer 토큰으로 전달

In: header

Path Parameters

accountId*string

계정 ID

Header Parameters

Idempotency-Key?string

선택. 같은 계정에서 같은 키로 다시 보낸 요청은 새 통화를 만들지 않고 처음 결과를 그대로 돌려줍니다 (IETF Idempotency-Key). UUID 같은 고유값을 따옴표로 감싸 보내는 것이 표준 형태이며("8e03978e-…") 따옴표 없는 값도 받습니다. 키는 24시간 유지됩니다. 재전송한 응답에는 Idempotent-Replayed: true 헤더가 붙습니다.

  • 처음 요청을 처리하는 중이면 409 idempotency_in_progress
  • 같은 키로 본문이 다른 요청을 보내면 422 idempotency_key_reused
  • 통화가 걸리지 않은 실패(요청 오류·권한·회선 부족 등)는 키를 남기지 않아 같은 키로 다시 시도할 수 있습니다.
Length1 <= length <= 257

Request Body

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/v1/accounts/AC1a2b3c4d/calls" \  -H "Idempotency-Key: "8e03978e-40d5-43e8-bc93-6894a57f9324"" \  -H "Content-Type: application/json" \  -d '{    "To": "01012345678",    "From": "string"  }'
{
  "callId": "CAabcdef1234567890",
  "status": "queued",
  "to": "01012345678",
  "from": "07052358010",
  "presentedFrom": "string",
  "direction": "outbound",
  "duration": 30,
  "accountId": "AC1a2b3c4d",
  "answeredBy": "human",
  "forwardedFrom": "string",
  "callerIdRestricted": false,
  "parentCallId": "CA0123456789abcdef",
  "batchId": "clx1a2b3c4d5e",
  "recordingUrl": "/v1/accounts/AC1a2b3c4d/recordings/CAabcdef1234567890",
  "recording": true,
  "hangupCause": "invalid_number",
  "hangupCauseQ850": 1,
  "sipResponseCode": 404,
  "hangupSource": "carrier",
  "transferTo": "01012345678",
  "transferStatus": "completed",
  "transferDuration": 60,
  "transferHangupCauseQ850": 16,
  "transferSipResponseCode": 500,
  "transferReasonText": "CS_NORMAL_RELEASE",
  "transfers": [
    {
      "sequence": 0,
      "to": "string",
      "mode": "string",
      "destinationType": "string",
      "status": "string",
      "duration": 0,
      "billable": true,
      "billableDuration": 0,
      "hangupCauseQ850": 0,
      "sipResponseCode": 0,
      "reasonText": "string",
      "startedAt": "2019-08-24T14:15:22Z",
      "answeredAt": "2019-08-24T14:15:22Z",
      "connectedAt": "2019-08-24T14:15:22Z",
      "endedAt": "2019-08-24T14:15:22Z",
      "timeout": 0
    }
  ],
  "dateCreated": "2019-08-24T14:15:22Z",
  "dateUpdated": "2019-08-24T14:15:22Z"
}
{
  "error": "string",
  "code": "recipient_blocked",
  "callId": "CA1a2b3c4d5e6f",
  "ip": "52.79.213.41",
  "processedAt": "2026-10-21T04:10:34.303Z",
  "blockers": [
    {
      "number": "07012340002",
      "code": "number_not_carrier_issued",
      "message": "이용증명원은 한국AI통신이 개통한 070·대표번호만 발급됩니다."
    }
  ],
  "numbers": [
    "07012345678"
  ]
}
{
  "error": "string",
  "code": "recipient_blocked",
  "callId": "CA1a2b3c4d5e6f",
  "ip": "52.79.213.41",
  "processedAt": "2026-10-21T04:10:34.303Z",
  "blockers": [
    {
      "number": "07012340002",
      "code": "number_not_carrier_issued",
      "message": "이용증명원은 한국AI통신이 개통한 070·대표번호만 발급됩니다."
    }
  ],
  "numbers": [
    "07012345678"
  ]
}
{
  "error": "string",
  "code": "recipient_blocked",
  "callId": "CA1a2b3c4d5e6f",
  "ip": "52.79.213.41",
  "processedAt": "2026-10-21T04:10:34.303Z",
  "blockers": [
    {
      "number": "07012340002",
      "code": "number_not_carrier_issued",
      "message": "이용증명원은 한국AI통신이 개통한 070·대표번호만 발급됩니다."
    }
  ],
  "numbers": [
    "07012345678"
  ]
}
{
  "error": "string",
  "code": "recipient_blocked",
  "callId": "CA1a2b3c4d5e6f",
  "ip": "52.79.213.41",
  "processedAt": "2026-10-21T04:10:34.303Z",
  "blockers": [
    {
      "number": "07012340002",
      "code": "number_not_carrier_issued",
      "message": "이용증명원은 한국AI통신이 개통한 070·대표번호만 발급됩니다."
    }
  ],
  "numbers": [
    "07012345678"
  ]
}
{
  "error": "string",
  "code": "recipient_blocked",
  "callId": "CA1a2b3c4d5e6f",
  "ip": "52.79.213.41",
  "processedAt": "2026-10-21T04:10:34.303Z",
  "blockers": [
    {
      "number": "07012340002",
      "code": "number_not_carrier_issued",
      "message": "이용증명원은 한국AI통신이 개통한 070·대표번호만 발급됩니다."
    }
  ],
  "numbers": [
    "07012345678"
  ]
}
{
  "error": "string",
  "code": "recipient_blocked",
  "callId": "CA1a2b3c4d5e6f",
  "ip": "52.79.213.41",
  "processedAt": "2026-10-21T04:10:34.303Z",
  "blockers": [
    {
      "number": "07012340002",
      "code": "number_not_carrier_issued",
      "message": "이용증명원은 한국AI통신이 개통한 070·대표번호만 발급됩니다."
    }
  ],
  "numbers": [
    "07012345678"
  ]
}
{
  "error": "string",
  "code": "recipient_blocked",
  "callId": "CA1a2b3c4d5e6f",
  "ip": "52.79.213.41",
  "processedAt": "2026-10-21T04:10:34.303Z",
  "blockers": [
    {
      "number": "07012340002",
      "code": "number_not_carrier_issued",
      "message": "이용증명원은 한국AI통신이 개통한 070·대표번호만 발급됩니다."
    }
  ],
  "numbers": [
    "07012345678"
  ]
}
{
  "error": "string",
  "code": "recipient_blocked",
  "callId": "CA1a2b3c4d5e6f",
  "ip": "52.79.213.41",
  "processedAt": "2026-10-21T04:10:34.303Z",
  "blockers": [
    {
      "number": "07012340002",
      "code": "number_not_carrier_issued",
      "message": "이용증명원은 한국AI통신이 개통한 070·대표번호만 발급됩니다."
    }
  ],
  "numbers": [
    "07012345678"
  ]
}
{
  "error": "string",
  "code": "recipient_blocked",
  "callId": "CA1a2b3c4d5e6f",
  "ip": "52.79.213.41",
  "processedAt": "2026-10-21T04:10:34.303Z",
  "blockers": [
    {
      "number": "07012340002",
      "code": "number_not_carrier_issued",
      "message": "이용증명원은 한국AI통신이 개통한 070·대표번호만 발급됩니다."
    }
  ],
  "numbers": [
    "07012345678"
  ]
}
{
  "error": "string",
  "code": "recipient_blocked",
  "callId": "CA1a2b3c4d5e6f",
  "ip": "52.79.213.41",
  "processedAt": "2026-10-21T04:10:34.303Z",
  "blockers": [
    {
      "number": "07012340002",
      "code": "number_not_carrier_issued",
      "message": "이용증명원은 한국AI통신이 개통한 070·대표번호만 발급됩니다."
    }
  ],
  "numbers": [
    "07012345678"
  ]
}