본문으로 건너뛰기

로그 목록

GET/v1/logs

워크스페이스의 잡 로그 항목과 API 요청 로그 항목을 최신순으로 돌려줍니다

API 키 권한 read 또는 콘솔 세션으로 부릅니다, 콘솔 세션은 조직 역할 owner, admin, developer만 됩니다

  • 잡 항목은 잡 표에서, 요청 항목은 서버가 API 키 요청마다 남긴 기록(시각, 키, 메서드, 경로, 상태, 지연, request_id)에서 옵니다, 요청 기록은 30일 보존됩니다
  • 콘솔 세션은 workspace_id를 꼭 보냅니다

Headers

  • Authorization: optional string
    Bearer xci_live_… 워크스페이스 API 키, 키 권한 read(run 키도 가능), 콘솔 세션 쿠키로 대신할 수 있습니다

Query Parameters

  • workspace_id: optional string
    콘솔 세션은 워크스페이스가 필요한 곳에서 필수, API 키는 생략하거나 키의 워크스페이스와 같아야 합니다
  • kind: optional "all" or "job" or "request"
    all, job, request
    기본값 "all"
  • status: optional string
    ok, error, 잡 상태 값(잡 항목만), 2xx부터 5xx 또는 정확한 HTTP 상태(요청 항목만)
  • from: optional string
    UTC 날짜(포함) 또는 RFC 3339 시각
  • to: optional string
    UTC 날짜(포함) 또는 RFC 3339 시각(미포함)
  • api_key_id: optional string
    이 키의 잡만
  • source: optional "cli" or "mcp" or "github_action" or "api" or "playground" or "batch"
    잡 항목만, 지정하면 요청 항목은 빠집니다
  • q: optional string
    잡 ID, 저장소, 오류 코드 또는 요청 ID, 경로의 대소문자 구분 없는 부분 문자열
    200자 이하
  • limit: optional integer
    한 페이지 크기
    기본값 20, 최소 1, 최대 100
  • cursor: optional string
    이전 응답의 next_cursor

Returns

200 application/json

  • LogList: object
    • data: array of LogEntry { id, kind, at, … }
      항목 배열
      • id: string
        잡 항목은 job_…, 요청 항목은 req_…
      • kind: "job" or "request"
        job 또는 request
      • at: string
        시각
        RFC 3339 UTC 시각
      • status: string
        잡은 잡 상태, 요청은 HTTP 상태 문자열
      • ok: boolean
        잡은 실패 계열이 아닌지, 요청은 HTTP 400 미만인지
      • workspace_id: string
        워크스페이스 ID
      • api_key_id: optional string or null
        API 키 ID
      • source: optional "cli" or "mcp" or "github_action" or "api" or "playground" or "batch" or null
        잡 항목만, 제출 경로
      • summary: string
        한 줄 요약
      • job: optional object { job_id, status, source_kind, … } or null
        잡 항목의 상세
        • job_id: optional string
          잡 ID
        • status: optional "queued" or "preparing" or "running" or "succeeded" or "failed" or "cancelled" or "credit_exhausted" or "platform_error" or "timed_out" or "stopped"
          queued(대기), preparing(VM 준비), running(실행 중), succeeded(성공), failed(실패), cancelled(취소), credit_exhausted(잔액 소진 중단), platform_error(플랫폼 오류), timed_out(제한 시간 초과)
        • source_kind: optional string
          제출 경로
        • repository: optional string or null
          owner/name
        • xcode: optional string or null
          Xcode 버전
        • batch_id: optional string or null
          배치 ID
        • recipe_id: optional string or null
          레시피 ID
        • created_at: optional string
          만든 시각
          RFC 3339 UTC 시각
        • started_at: optional string or null
          시작 시각
        • ended_at: optional string or null
          끝난 시각
        • run_seconds: optional integer or null
          실행 초
        • billed_minutes: optional integer or null
          과금 분
        • amount_micro_usd: optional integer
          금액(µUSD 정수)
          최소 0
        • amount_usd: optional string
          같은 금액의 USD 문자열(센트, 소수 2자리)
          형식 ^-?[0-9]+\.[0-9]{2}$
        • error_code: optional string or null
          오류 코드
        • exit_code: optional integer or null
          종료 코드
        • log_url: optional string
          로그 URL
        • commit_sha: optional string or null
          잡이 빌드한 커밋, 제출 때 보낸 값(16진수 7~64자, 소문자로 저장), 분쟁 증거
        • request_ip: optional string or null
          제출 요청의 클라이언트 주소(프록시 뒤에서는 실제 클라이언트), 분쟁 증거
        • user_agent: optional string or null
          제출 요청의 User-Agent(CLI, MCP, Action 버전), 분쟁 증거
        • end_reason: optional string or null
          succeeded, failed, cancelled, credit_exhausted, platform_error, timed_out 중 하나, 끝나기 전엔 null
      • request: optional object { request_id, method, path, … } or null
        요청 항목의 상세
        • request_id: optional string
          요청 ID
        • method: optional string
          결제 수단
        • path: optional string
          경로만, 쿼리 문자열은 저장하지 않습니다
        • http_status: optional integer
          HTTP 상태
        • latency_ms: optional integer
          지연(ms)
          최소 0
    • next_cursor: string or null
      다음 페이지 커서, 마지막이면 null
    • retention_days: integer
      요청 항목 보존 일수, 30

오류

  • invalid_request: HTTP 400
    본문이나 쿼리가 검증에 실패했습니다, error.details.fields에 문제 필드가 있습니다
  • api_key_required: HTTP 401
    API 키 엔드포인트에 Authorization: Bearer 헤더가 없습니다
  • api_key_revoked_leaked: HTTP 401
    공개 유출 신고로 자동 폐기된 키입니다, 새 키를 발급하세요
  • invalid_api_key: HTTP 401
    모르는 키이거나 폐기, 만료, 체크섬 불일치입니다(종료된 xeno_ 접두사 포함)
  • session_required: HTTP 401
    콘솔 엔드포인트를 유효한 콘솔 세션 쿠키 없이 불렀습니다
  • insufficient_permission: HTTP 403
    역할이나 키 권한(run/read)이 이 요청을 허용하지 않습니다
  • ip_not_allowed: HTTP 403
    요청 IP가 조직 또는 API 키의 IP 허용 목록 밖입니다, details.ip와 details.list(organization 또는 api_key)에 있습니다
  • organization_suspended: HTTP 403
    운영자가 조직을 정지했습니다, 키는 거부되고 실행 중인 잡은 멈춥니다
  • not_found: HTTP 404
    자원이 없거나 이 호출자에게 보이지 않습니다
  • rate_limited: HTTP 429, 다시 시도 가능
    이 키 또는 조직의 요청이 너무 많습니다, retry_after_s만큼 기다리세요
  • internal_error: HTTP 500, 다시 시도 가능
    예상하지 못한 오류입니다, 다시 시도하고 반복되면 request_id와 함께 알려 주세요

오류 봉투 모양과 전체 코드 표는 오류 코드에 있습니다

다음 단계