Skip to content

빙고 카드 API 참고 자료

빙고 카드: 이 문서는 API와 공통인 등록 정보와 입력 계약에서 모드, 페이지별 설정, 형식, 필드를 읽습니다.

요청 예시

curl -X POST https://puzzlegenio.com/api/v1/puzzles \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Idempotency-Key: task-000000000001' \
  -H 'Content-Type: application/json' \
  -d '{ "type": "bingo", "title": "Party bingo", "input": { "words": [ "APPLE", "BANANA", "CHERRY", "DATE", "FIG", "GRAPE", "KIWI", "LEMON", "MANGO" ] }, "options": { "gridSize": 3, "cardCount": 1 } }'

모드

classic · signature · number · blank

페이지별 설정

브라우저 내보내기 형식

pdf · caller-pdf

내보내기 형식은 퍼즐 설정과 계정 요금제에 따라 달라집니다. viewUrl과 exportPageUrl은 브라우저에서 내려받는 페이지입니다. 응답에 PDF, PNG, STL 파일 데이터는 들어 있지 않습니다. 내보내기 권한은 공개할 때 확정하고 다시 공개할 때 재검사합니다.

공통 요청 필드

필드허용 값필수
preset문자열아니요
mode문자열아니요
locale다음 중 하나; en | zh | es | de | fr | pt | it | id | ja | ko아니요
contentLanguage다음 중 하나; en | zh | es | de | fr | pt | it | id | ja | ko아니요
title문자열예
retentionDays숫자; 정수아니요
appearance.themeColor문자열아니요
appearance.title.fontFamily다음 중 하나; sans | serif | handwriting | playful | mono아니요
appearance.title.fontWeight다음 중 하나; normal | medium | semibold | bold | extrabold아니요
appearance.title.color문자열아니요
appearance.title.align다음 중 하나; left | center | right아니요
appearance.title.maxFontSize숫자; 최소 6; 최대 120아니요
appearance.grid.shape다음 중 하나; square | circle아니요
appearance.grid.corners다음 중 하나; sharp | sm | md | lg아니요
appearance.grid.gap다음 중 하나; none | sm | md | lg아니요
appearance.grid.colorMode다음 중 하나; mono | checker아니요
appearance.grid.bg다음 중 하나; 문자열 | transparent | object아니요
appearance.grid.textFontFamily다음 중 하나; sans | serif | handwriting | playful | mono아니요
appearance.grid.textFontWeight다음 중 하나; normal | medium | semibold | bold | extrabold아니요
appearance.grid.textColor문자열아니요
appearance.grid.borderWidth숫자; 정수; 최소 0; 최대 3아니요
appearance.grid.borderColor문자열아니요
appearance.grid.borderStyle다음 중 하나; solid | dashed | dotted아니요
appearance.card.bgColor다음 중 하나; 문자열 | transparent | object아니요
appearance.card.borderRadius다음 중 하나; sharp | rounded아니요
appearance.card.borderWidth숫자; 정수; 최소 0; 최대 3아니요
appearance.card.borderColor문자열아니요
appearance.header.bgColor다음 중 하나; 문자열 | transparent | object아니요
appearance.header.fontFamily다음 중 하나; sans | serif | handwriting | playful | mono아니요
appearance.header.fontWeight다음 중 하나; normal | medium | semibold | bold | extrabold아니요
appearance.header.color문자열아니요
appearance.header.maxFontSize숫자; 최소 6; 최대 120아니요
appearance.footer.enabled참/거짓아니요
appearance.footer.text문자열; 최대 200아니요
appearance.footer.fontFamily다음 중 하나; sans | serif | handwriting | playful | mono아니요
appearance.footer.fontWeight다음 중 하나; normal | medium | semibold | bold | extrabold아니요
appearance.footer.color문자열아니요
appearance.footer.align다음 중 하나; left | center | right아니요
appearance.footer.maxFontSize숫자; 최소 6; 최대 120아니요
appearance.columnHeaders배열; 최대 5아니요
appearance.columnHeaders[]문자열; 최소 1; 최대 8아니요
appearance.showColumnHeaders참/거짓아니요
appearance.randomization다음 중 하나; full | column아니요
appearance.freeSpaceLabel문자열; 최대 40아니요
appearance.signatureLines참/거짓아니요
appearance.fontFamily다음 중 하나; sans | serif | handwriting | playful | mono아니요
appearance.fontSize다음 중 하나; small | medium | large아니요
appearance.headerBgColor문자열아니요
appearance.showGridLines참/거짓아니요
appearance.outerBorder참/거짓아니요
appearance.borderStyle다음 중 하나; solid | dashed | dotted아니요
export.paperSize다음 중 하나; A3 | A4 | A4-landscape | A5 | B5 | Letter | Letter-landscape | Legal | Half-Letter | Tabloid | custom아니요
export.widthMm숫자; 최소 50; 최대 2000아니요
export.heightMm숫자; 최소 50; 최대 2000아니요
export.unit다음 중 하나; mm | cm | in | px아니요
export.quality다음 중 하나; standard | high | print아니요
export.layout다음 중 하나; 1x1 | 1x2 | 2x2 | 2x4아니요
input.words배열; 최소 1; 최대 200아니요
input.words[]문자열; 최소 1; 최대 50아니요
input.numbers배열아니요
input.numbers[]숫자; 정수; 최소 0; 최대 9999아니요
options.seed숫자; 정수; 최소 0; 최대 2147483647아니요
options.gridSize다음 중 하나; 3 | 4 | 5아니요
options.cardCount숫자; 정수; 최소 1; 최대 100아니요
options.freeSpace참/거짓아니요
options.minNumber숫자; 정수; 최소 0; 최대 9999아니요
options.maxNumber숫자; 정수; 최소 0; 최대 9999아니요
options.ballCount다음 중 하나; 30 | 75 | 80아니요
options.signatureLine참/거짓아니요

틀과 주제

현재 이용 가능한 틀의 식별자, 주제, 계정 한도는 /api/v1/capabilities에서 확인하세요. 틀로 만든 결과도 저장 공간 한 칸을 사용합니다.

이미지와 파일

이미지 입력에는 같은 계정에서 미리 올리거나 가져온 assetId를 씁니다. 내려받기는 브라우저의 결과 페이지에서 진행합니다. 결과 페이지 주소는 파일 직접 링크가 아닙니다.

실패 사례

알 수 없는 필드나 서로 맞지 않는 type, mode, preset 조합은 422를 반환합니다. 완성할 수 없는 입력도 422입니다. 사용 가능한 형식은 설정과 계정 권한에 따라 달라집니다.

빙고 카드 API 참고 자료