O!PLANET 스튜디오

개발 문서 / 출력

출력 기록 목록 조회

GET /v1/api/print

출력 기록을 최신순으로 봅니다. 기간, 프린터, 결과로 거르고 cursor 로 다음 쪽을 봅니다.

요청 칸

요청에 넣는 칸입니다.

이름위치형뜻
Authorization머리문자열필수. Bearer 뒤에 라이선스 키(인증). 예: Bearer OPL-XXXXX-XXXXX-XXXXX-XXXXX.
from쿼리문자열선택. 기간 시작(한국 날짜, 그날 포함). 예: 2026-11-01.
to쿼리문자열선택. 기간 끝(한국 날짜, 그날 포함). 예: 2026-11-30.
printer쿼리문자열선택. 이 프린터만. 예: 10001400142.
result쿼리문자열선택. 이 결과만. 값: completed, failed, unknown.
limit쿼리숫자선택. 한 쪽 줄 수(기본 50). 범위 1~200.
cursor쿼리문자열선택. 앞 응답의 nextCursor. 없으면 첫 쪽.

요청 예시

Bash
curl -s "https://studio.oplanet.net/v1/api/print?from=2026-11-01&to=2026-11-30&printer=10001400142&result=completed&limit=20" \
  -H "Authorization: Bearer $OPLANET_LICENSE_KEY"

응답 예시

상태 200. 칸은 값이 없어도 빠지지 않고 null로 나옵니다.

JSON
{
  "ok": true,
  "items": [
    {
      "printId": "J20261105-000008",
      "printerSerial": "10001400142",
      "source": "cli",
      "state": "finished",
      "stage": "printing",
      "result": {
        "result": "completed",
        "reason": null,
        "reasonText": null,
        "cardsUsed": 1,
        "discardedCards": 0,
        "durationMs": 75000
      },
      "createdAt": "2026-11-05T14:53:35.000Z",
      "startedAt": "2026-11-05T14:53:40.000Z",
      "finishedAt": "2026-11-05T14:54:55.000Z",
      "duplex": false,
      "frameName": null,
      "designName": null,
      "stopReasons": [],
      "blockedCount": 0
    }
  ],
  "nextCursor": null
}

응답 칸의 형과 뜻입니다.

칸형뜻
oktrue, false성공하면 늘 true. 늘 true.
items[]배열출력.
items[].printId문자열출력 번호. 예: J20261105-000008.
items[].printerSerial문자열프린터 시리얼. 예: 10001400142.
items[].source문자열어디서 출력했는지. 값: cli 명령어, web 웹 출력 화면.
items[].state문자열지금 어디인지: waiting(시작 전), printing(보내는, 찍는 중), recovering(막혔다가 이어서 진행 중), needs_action(막힘, 사람이 봐야 함), finished(끝남, 결과는 result). 값: waiting, printing, recovering, needs_action, finished.
items[].stage문자열마지막 진행 단계. null 가능.
items[].result객체결과(끝났을 때만, 아니면 null). null 가능.
items[].result.result문자열최종 결과. 값: completed, failed, unknown.
items[].result.reason문자열실패, 모름의 이유 code. null 가능.
items[].result.reasonText문자열이유 문장(화면에 그대로). 끝까지 나왔으면 null. null 가능.
items[].result.cardsUsed숫자쓴 카드 수. null 가능.
items[].result.discardedCards숫자버린 카드 수(끝까지 나왔으면 쓴 카드 − 카드 수, 실패면 쓴 카드 전부, 모르면 null). null 가능.
items[].result.durationMs숫자걸린 시간(ms). null 가능.
items[].createdAt문자열만든 시각. 예: 2026-11-06T03:00:00.000Z.
items[].startedAt문자열인쇄를 시작한 시각. null 가능. 예: 2026-11-06T03:00:00.000Z.
items[].finishedAt문자열끝난 시각. null 가능. 예: 2026-11-06T03:00:00.000Z.
items[].duplextrue, false양면인지.
items[].frameName문자열옛 칸: 프레임 칸을 없앤 서버 0.8.1 전의 출력 기록에만 프레임 이름이 있습니다. 새 출력은 늘 null. null 가능.
items[].stopReasons[]배열인쇄 중 멈춘 이유(처음 나온 순서).
items[].blockedCount숫자막힌 횟수. 단위 번. 예: 0.
items[].designName문자열디자인으로 출력했으면 그 이름(없으면 null). null 가능.
nextCursor문자열다음 쪽 cursor. 마지막 쪽이면 null. null 가능.

오류 code

이 요청이 돌려줄 수 있는 오류 code입니다.

HTTP 상태code뜻
400invalid_request요청 형식이 틀렸습니다
401license_key_invalid라이선스 키가 없거나 올바르지 않습니다(재발급 전 키 포함)
404printer_not_found이 계정의 프린터가 아닙니다
429api_capacity_exceededAPI 전체 호출이 오늘 한도에 닿았습니다
429api_rate_daily_exceeded오늘 쓸 수 있는 API 호출 수(고객마다, 매일 오전 9시 한국 시간에 초기화)에 닿았습니다
429rate_limited1분 한도를 넘었습니다(API 호출은 고객마다 1분 60번, AI 이미지 만들기는 웹, 프로그램 합쳐 고객마다 1분 10건). Retry-After 머리의 초만큼 기다린 뒤 다시 보냅니다
500internal_error서버 오류입니다

오류 모양(ok, code, message, action)과 전체 code는 공통 규칙에 있습니다.