한국AI통신(koreaaitel.com)은 팀러너스 주식회사가 운영합니다.

KAT Cloud(katcloud.kr)는 한국에이아이통신 주식회사가 운영하는 별개 서비스입니다. 공식 채널 안내

기타

API 키 발급 (관리 키)

API 키 발급 (관리 키): 관리 키로 일반 API 키를 발급합니다. 관리 키는 콘솔의 API 키 화면에서 조직 소유자가 발급하며, 허용 IP 에서만 쓸 수 있습니다. POST https://api.koreaaitel.com/v1/accounts/{accountId}/api-keys · 한국AI통신(koreaaitel.com) API

Markdown으로 보기
POST
/v1/accounts/{accountId}/api-keys

관리 키로 일반 API 키를 발급합니다. 관리 키는 콘솔의 API 키 화면에서 조직 소유자가 발급하며, 허용 IP 에서만 쓸 수 있습니다.

  • 권한(scopes)을 한 개 이상 지정해야 합니다. 전체 권한 키와 관리 키는 발급할 수 없습니다.
  • 통화 번호(allowedCallNumbers)를 지정하면 그 번호의 통화만 다루는 키가 되고, 통화·녹음·전사 권한만 줄 수 있습니다.
  • 키 원문(secret)은 이 응답에만 한 번 포함됩니다.
  • 일반 키로 호출하면 403 admin_key_required 입니다.

Authorization

BearerAuth
AuthorizationBearer <token>

API Key를 Bearer 토큰으로 전달. 권한이나 통화 번호를 지정해 발급한 키는 허용되지 않은 기능에 403 api_key_scope_denied, 지정 번호 밖의 발신에 403 number_not_in_key_scope, 지정 번호 밖의 통화 조회에 404 를 받습니다(문서 /docs/api-keys).

In: header

Path Parameters

accountId*string

계정 ID

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/v1/accounts/AC1a2b3c4d/api-keys" \  -H "Content-Type: application/json" \  -d '{    "name": "직원 PC · 07012345678",    "scopes": [      "write:calls",      "read:calls",      "read:recordings",      "read:transcripts"    ],    "allowedCallNumbers": [      "07012345678"    ]  }'
{
  "id": "cmh1key0000001",
  "name": "직원 PC · 07012345678",
  "prefix": "sk_abcdefgh",
  "secret": "sk_abcdefgh0000000000000000000000000",
  "createdAt": "2019-08-24T14:15:22Z",
  "expiresAt": "2019-08-24T14:15:22Z",
  "expiryDate": "2019-08-24",
  "allowedIps": [
    "string"
  ],
  "scopes": [
    "string"
  ],
  "allowedCallNumbers": [
    "string"
  ]
}
{
  "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"
  ]
}