기타

API 키 목록

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

폐기하지 않은 API 키를 최근 발급 순으로 돌려줍니다. 키 원문은 포함되지 않습니다.

발신번호 범위를 지정한 API 키로 호출하면 그 키만 보입니다.

Authorization

BearerAuth
AuthorizationBearer <token>

API Key를 Bearer 토큰으로 전달

In: header

Path Parameters

accountId*string

계정 ID

Query Parameters

limit?integer

한 번에 돌려줄 개수

Default50
Range1 <= value <= 100
cursor?string

이전 응답의 meta.nextCursor

Response Body

application/json

application/json

application/json

curl -X GET "https://example.com/v1/accounts/AC1a2b3c4d/api-keys?limit=50&cursor=cmh1key0000001"
{
  "data": [
    {
      "id": "cmh1key0000001",
      "name": "운영 서버",
      "prefix": "sk_a1b2c3d4",
      "lastUsedAt": "2026-11-03T01:20:00.000Z",
      "createdAt": "2026-10-01T02:00:00.000Z",
      "expiresAt": "2027-10-01T14:59:59.999Z",
      "allowedIps": [
        "203.0.113.10"
      ],
      "allowedSenderNumbers": [
        "07012345678"
      ]
    }
  ],
  "meta": {
    "nextCursor": "cmh1key0000001"
  }
}
{
  "error": "string",
  "code": "recipient_blocked",
  "ip": "52.79.213.41",
  "processedAt": "2026-10-21T04:10:34.303Z",
  "blockers": [
    {
      "number": "07012340002",
      "code": "number_not_carrier_issued",
      "message": "이용증명원은 한국AI통신이 개통한 070·대표번호만 발급됩니다."
    }
  ]
}
{
  "error": "string",
  "code": "recipient_blocked",
  "ip": "52.79.213.41",
  "processedAt": "2026-10-21T04:10:34.303Z",
  "blockers": [
    {
      "number": "07012340002",
      "code": "number_not_carrier_issued",
      "message": "이용증명원은 한국AI통신이 개통한 070·대표번호만 발급됩니다."
    }
  ]
}