조직에 보낸 알림 메일 기록을 최신순으로 돌려줍니다
GET /v1/organizations/{org_id}/notifications
| 방식 | 허용 | 조건 |
|---|
API 키 (Authorization: Bearer xci_live_…) | 불가 | 콘솔 세션 전용, 키로 부르면 403 console_only |
| 콘솔 세션 쿠키 | 가능 | 조직 역할 owner, admin, developer |
- 소유자와 관리자는 모든 알림을, 개발자는 배정된 워크스페이스의 한도 알림과 그 워크스페이스 키의 알림만 봅니다
| 이름 | 위치 | 타입 | 필수 | 설명 |
|---|
org_id | 경로 | string | 필수 | 조직 ID, 형식 ^org_[A-Za-z0-9]+$ |
kind | 쿼리 | string | | 이 종류의 알림만 |
limit | 쿼리 | integer | | 한 페이지 크기, 최소 1, 최대 100, 기본 20 |
cursor | 쿼리 | string | | 이전 응답의 next_cursor |
| 필드 | 타입 | 항상 | 설명 |
|---|
data | array<object> | 항상 | 항목 배열 |
data[].id | string | 항상 | ntf_<번호> |
data[].kind | low_balance | credit_exhausted | workspace_limit | tier_limit | key_leaked | key_spike | 항상 | 알림 종류 |
data[].status | sending | sent | failed | suppressed | 항상 | sending, sent, failed, suppressed |
data[].created_at | timestamp | 항상 | 만든 시각 |
data[].sent_at | string | | 보낸 시각 |
data[].workspace_id | string | | 워크스페이스 ID, null 가능 |
data[].api_key_id | string | | API 키 ID, null 가능 |
data[].job_id | string | | 잡 ID, null 가능 |
data[].detail | object | | 종류별 숫자(기준, 금액), 수신 주소와 키 비밀 값은 없습니다 |
data[].recipients | integer | | 보낸 주소 수, 개발자에게는 null, null 가능 |
next_cursor | string | 항상 | 다음 페이지 커서, 마지막이면 null, null 가능 |
{
"data": [
{
"id": "id_1",
"kind": "low_balance",
"status": "sent",
"created_at": "2026-10-12T03:11:05Z",
"sent_at": "2026-10-12T03:11:05Z",
"workspace_id": null,
"api_key_id": null,
"job_id": null,
"detail": {
"threshold_micro_usd": 1188000,
"available_micro_usd": 950400
},
"recipients": 2
}
],
"next_cursor": "…"
}
| HTTP | 코드 | 다시 시도 | 뜻 |
|---|
| 400 | invalid_request | 아니오 | 본문이나 쿼리가 검증에 실패했습니다, error.details.fields에 문제 필드가 있습니다 |
| 401 | session_required | 아니오 | 콘솔 엔드포인트를 유효한 콘솔 세션 쿠키 없이 불렀습니다 |
| 403 | console_only | 아니오 | 콘솔 세션 전용 엔드포인트입니다, API 키로는 결제, 키, 멤버 관리를 할 수 없습니다 |
| 403 | insufficient_permission | 아니오 | 역할이나 키 권한(run/read)이 이 요청을 허용하지 않습니다 |
| 404 | not_found | 아니오 | 자원이 없거나 이 호출자에게 보이지 않습니다 |
| 429 | rate_limited | 가능 | 이 키 또는 조직의 요청이 너무 많습니다, retryafters만큼 기다리세요 |
| 500 | internal_error | 가능 | 예상하지 못한 오류입니다, 다시 시도하고 반복되면 request_id와 함께 알려 주세요 |
오류 봉투 모양과 전체 코드 표는 오류 코드에 있습니다
curl "https://xenoci.com/api/runner/v1/organizations/org_7Kq2m9ZtP3/notifications" \
--cookie "xci_console=$SESSION" \
-H "Origin: https://xenoci.com"
- 알림 설정 조회 GET /v1/organizations/{org_id}/notification-settings
- 알림 설정 변경 PUT /v1/organizations/{org_id}/notification-settings