로그인구매키 받기루첼라 ↗
목차

사용설명서

시작하기

쪽주소
홈https://apis.lucela.kr/
상품https://apis.lucela.kr/products
레퍼런스https://apis.lucela.kr/reference
문서https://apis.lucela.kr/docs
키https://apis.lucela.kr/keys
요금https://apis.lucela.kr/pricing
상태https://apis.lucela.kr/status
문의https://apis.lucela.kr/support

상품 갈래 8 · 공개 연산 218 · 서비스 메뉴 442

  1. 「상품」 · 「레퍼런스」에서 연산을 고르고 상태(시험 · 실제) · 필수 칸 · 회분을 확인합니다.
  2. 「키」에서 시험 키를 받아 시험 입력으로 부릅니다.
  3. 실제로 쓰려면 이용권을 사고 실제 키를 받습니다.
  4. 응답의 status · error.code · meta.request_id 를 함께 봅니다.

전체 주소https://apis.lucela.kr/v1경로/v1

전체 주소POST https://apis.lucela.kr/v1/fortune/chart경로POST /v1/fortune/chart

키는 환경 변수 LUCELA_API_KEY

curl -sS -X POST 'https://apis.lucela.kr/v1/fortune/chart' \
  -H "X-Lucela-API-Key: $LUCELA_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"birth": {"calendar": "solar", "date": "1990-01-15", "time": "09:30", "birth_place": {"tz": "Asia/Seoul", "longitude": 127.0}}, "options": {"jasi_method": "unified"}}'
import os, uuid, requests

r = requests.post(
    "https://apis.lucela.kr/v1/fortune/chart",
    headers={
        "X-Lucela-API-Key": os.environ["LUCELA_API_KEY"],
        "Idempotency-Key": str(uuid.uuid4()),   # 다시 보낼 때는 같은 값
    },
    json={
        "birth": {
            "calendar": "solar",
            "date": "1990-01-15",
            "time": "09:30",
            "birth_place": {
                "tz": "Asia/Seoul",
                "longitude": 127.0
            }
        },
        "options": {
            "jasi_method": "unified"
        }
    },
    timeout=10,
)
body = r.json()
if body["status"] != "ok":
    raise RuntimeError(body["error"]["code"])
print(body["data"]["pillars"])
const res = await fetch("https://apis.lucela.kr/v1/fortune/chart", {
  method: "POST",
  headers: {
    "X-Lucela-API-Key": process.env.LUCELA_API_KEY,
    "Idempotency-Key": crypto.randomUUID(),   // 다시 보낼 때는 같은 값
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "birth": {
      "calendar": "solar",
      "date": "1990-01-15",
      "time": "09:30",
      "birth_place": {
        "tz": "Asia/Seoul",
        "longitude": 127.0
      }
    },
    "options": {
      "jasi_method": "unified"
    }
  }),
});
const body = await res.json();
if (body.status !== "ok") throw new Error(body.error.code);
console.log(body.data.pillars);

키 발급

  1. 「키」 쪽에서 발급합니다. 키 원문은 발급할 때 한 번만 보입니다.
  2. 회전 — 새 키를 발급해 함께 쓰다가, 옮긴 뒤 옛 키를 회수합니다. 잃어버린 키도 같은 길로 바꿉니다.
  3. 노출이 의심되면 바로 회수합니다. 회수한 키는 다음 호출부터 401 invalid_credential 입니다.

키

키모양응답포함량
시험 키lcdb_test_…합성 자료에만 답합니다. 실제 입력은 422 sandbox_requires_fixture상품마다 1,000회분 한 번 · 다시 채우지 않음
실제 키lcdb_live_…이용권 범위 안에서 계량합니다. 이용권이 없으면 403 contract_required이용권 구간

인증

모든 요청에 머리말 X-Lucela-API-Key 하나를 붙입니다.

키는 서버에서만 씁니다. 주소·쿼리 문자열·브라우저 코드에 넣지 않습니다.

길머리말
RESTX-Lucela-API-Key
MCPX-Lucela-API-Key 또는 Authorization: Bearer
아틀리에 상품등록Authorization: Bearer lcpt_…(내 아틀리에에서 받은 상품등록 토큰) 또는 X-Lucela-API-Key(내 아틀리에 「상품등록 키」 · 메이더 범위 · 검수 · 발행은 토큰만)
다이렉트X-Lucela-API-Key(「다이렉트 키」 · 범위 direct.listings) 그리고 Authorization: Bearer lcdd.…(루첼라 다이렉트 「API 연결」에서 받은 연결 토큰)
쿼리 문자열받지 않습니다

서비스별 API

갈래꼬리표연산한 줄
아틀리에 상품등록등록25 (실제 25 · 시험 0)상품 초안 · 검수 · 공개 상품
디지털 콘텐츠 API구매8 (실제 8 · 시험 0)콘텐츠 목록 · 주문 · 보관함 · 받기
다이렉트 API매물17 (실제 17 · 시험 0)매물 초안 · 상품 내용 · 사진 · 일괄 등록 · 검토 요청
숨표AI계산23 (실제 12 · 시험 11)사주 · 운세 · 명리 API
DataBridge API데이터4 (실제 0 · 시험 4)숨표AI 시험셋 · 이용 조건 · 품질
결과 API조회2 (실제 2 · 시험 0)생활권 · 절기 달력
바이오링크 API반려9 (실제 5 · 시험 4)종 판별 · 돌봄 일정 · 안전 도감 · 응급 신호 · 관찰 기록 · 지식 카드 · 종 정보 · 돌봄 지침
루미엔 API업무130 (실제 0 · 시험 130)직무 · 서비스 · 문서 검토 · 의사결정 · 업무 분류 · 진행

레퍼런스MCP

디지털 콘텐츠 구매 · 받기

  1. 콘텐츠 목록 조회
    전체 주소GET https://apis.lucela.kr/v1/atelier/digital/products경로GET /v1/atelier/digital/products
  2. 콘텐츠 상세 조회
    전체 주소GET https://apis.lucela.kr/v1/atelier/digital/products/{product_id}경로GET /v1/atelier/digital/products/{product_id}
  3. 주문 생성
    전체 주소POST https://apis.lucela.kr/v1/atelier/digital/orders경로POST /v1/atelier/digital/orders
  4. 주문 조회
    전체 주소GET https://apis.lucela.kr/v1/atelier/digital/orders/{order_id}경로GET /v1/atelier/digital/orders/{order_id}
  5. 보관함 목록 조회
    전체 주소GET https://apis.lucela.kr/v1/atelier/digital/library경로GET /v1/atelier/digital/library
  6. 받기 주소 발급
    전체 주소POST https://apis.lucela.kr/v1/atelier/digital/library/{entitlement_id}/download경로POST /v1/atelier/digital/library/{entitlement_id}/download
  7. 라이선스 조회
    전체 주소GET https://apis.lucela.kr/v1/atelier/digital/library/{entitlement_id}/license경로GET /v1/atelier/digital/library/{entitlement_id}/license
  8. 주문 내역서 조회
    전체 주소GET https://apis.lucela.kr/v1/atelier/digital/orders/{order_id}/receipt경로GET /v1/atelier/digital/orders/{order_id}/receipt
칸값
인증목록 · 상세는 없음 · 그 밖은 Authorization: Bearer lcpt_… 또는 X-Lucela-API-Key(구매 범위)
결제주문 응답의 checkoutUrl 결제창에서 손님이 결제합니다
가격서버 값(본문의 가격 칸은 읽지 않습니다)
처음 받기ack: true — 제공 개시 뒤 청약철회가 제한됩니다
받기 주소5분 서명 주소 · 파일 sha256 을 함께 줍니다
curl -sS -X POST 'https://apis.lucela.kr/v1/atelier/digital/orders' \
  -H "Authorization: Bearer $LUCELA_PRODUCT_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"productIds":["25801"],"returnUrl":"/account/library"}'
import os, uuid, requests

r = requests.request(
    "POST", "https://apis.lucela.kr/v1/atelier/digital/orders",
    headers={
        "Authorization": "Bearer " + os.environ["LUCELA_PRODUCT_TOKEN"],
        "Idempotency-Key": str(uuid.uuid4()),   # 다시 보낼 때는 같은 값
    },
    json={
        "productIds": [
            "25801",
        ],
        "returnUrl": "/account/library",
    },
    timeout=20,
)
body = r.json()
print(body["status"], body["data"] if body["status"] == "ok" else body["error"])
const res = await fetch("https://apis.lucela.kr/v1/atelier/digital/orders", {
  method: "POST",
  headers: {
    "Authorization": `Bearer ${process.env.LUCELA_PRODUCT_TOKEN}`,
    "Idempotency-Key": crypto.randomUUID(),   // 다시 보낼 때는 같은 값
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "productIds": [
      "25801"
    ],
    "returnUrl": "/account/library"
  }),
});
const body = await res.json();
console.log(body.status, body.status === "ok" ? body.data : body.error);
curl -sS -X POST 'https://apis.lucela.kr/mcp/atelier-product' \
  -H "Authorization: Bearer $LUCELA_PRODUCT_TOKEN" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"atelier_digital.create_order","arguments":{"productIds":["25801"],"returnUrl":"/account/library"}}}'
curl -sS -X POST 'https://apis.lucela.kr/v1/atelier/digital/library/41207/download' \
  -H "Authorization: Bearer $LUCELA_PRODUCT_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"ack":true}'
import os, uuid, requests

r = requests.request(
    "POST", "https://apis.lucela.kr/v1/atelier/digital/library/41207/download",
    headers={
        "Authorization": "Bearer " + os.environ["LUCELA_PRODUCT_TOKEN"],
        "Idempotency-Key": str(uuid.uuid4()),   # 다시 보낼 때는 같은 값
    },
    json={
        "ack": True,
    },
    timeout=20,
)
body = r.json()
print(body["status"], body["data"] if body["status"] == "ok" else body["error"])
const res = await fetch("https://apis.lucela.kr/v1/atelier/digital/library/41207/download", {
  method: "POST",
  headers: {
    "Authorization": `Bearer ${process.env.LUCELA_PRODUCT_TOKEN}`,
    "Idempotency-Key": crypto.randomUUID(),   // 다시 보낼 때는 같은 값
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "ack": true
  }),
});
const body = await res.json();
console.log(body.status, body.status === "ok" ? body.data : body.error);
curl -sS -X POST 'https://apis.lucela.kr/mcp/atelier-product' \
  -H "Authorization: Bearer $LUCELA_PRODUCT_TOKEN" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"atelier_digital.get_download","arguments":{"entitlement_id":"41207","ack":true}}}'

요금 · 한도

시험 키
상품마다 1,000회분 · 한 번
이용권 기간
구매일부터 365일
과금하지 않는 것
4xx · 5xx 응답 · 같은 멱등 키의 재시도
연산한 번에
통합 지혜 리포트 생성10회분
하늘무늬 계산3회분
종 후보 판별5회분

요금한도

오류

HTTPcode조치
400malformed_request레퍼런스의 필수 칸 · 형식대로 고쳐 보냅니다
401invalid_credential키 · 토큰을 확인합니다. 회수된 키는 새 키로 바꿉니다
403scope_required그 상품 · 범위가 담긴 키로 부릅니다(다이렉트 API 는 「다이렉트 키」 · 범위 direct.listings)
403contract_required이용권을 사거나 시험 키로 부릅니다
403environment_mismatch시험 키 · 실제 키 중 그 연산이 받는 쪽으로 부릅니다
403not_owner내 주문 · 보관함 번호인지 확인합니다
404resource_not_found주소 · 번호를 확인합니다
409idempotency_conflict본문이 바뀌었으면 새 Idempotency-Key 로 보냅니다
409state_conflict지금 상태(주문 · 결제 · 권한)를 조회한 뒤 다시 보냅니다
400provision_ack_required제공 개시 확인(ack: true)을 붙여 다시 보냅니다
422sandbox_requires_fixture시험 키는 문서의 시험 입력만 보냅니다
429rate_limitedRetry-After 만큼 기다린 뒤 보냅니다
429quota_exhausted이용권을 더 삽니다
503dependency_unavailable상태 쪽을 확인하고 같은 Idempotency-Key 로 다시 보냅니다

문의할 때는 meta.request_id(머리말 X-Request-ID)를 적습니다. 키 원문은 적지 않습니다.

오류 코드

자주 묻는 질문

요청 {"birth": {…}, "options": {…}} — 출생 칸은 birth 아래, 계산 기준은 options 아래에 둡니다.

학파 options.jasi_method — split(야자시 · 자정에 날이 바뀜 · 기본) · unified(통자시 · 23시에 날이 바뀜). 응답 data.meta.jasi_method 에 쓴 값을 돌려줍니다. 23시대 출생은 두 학파의 일주가 갈려 data.meta.jasi 에 다른 학파의 일주 · 시주(alt)와 확신도(갈림)를 함께 싣습니다.

음력 기준 options.lunar_basis — kasi(한국천문연구원 · 기본) · china(UTC+8 합삭). 응답 data.meta.lunar_basis 가 실제로 쓴 기준이며 기본이 아니면 lunar_basis_is_default 가 false 입니다. 두 기준은 1900~2100년 중 174개 달에서 하루씩 다릅니다. 음력 입력은 birth.is_leap_month 가 필요합니다.

출생지 birth.birth_place 는 필수이며 세 모양 중 하나입니다.

  1. tz(IANA) + longitude(−180~180)
  2. city_code — 내장 도시 표의 이름(예: 「서울 종로구」)
  3. 없음 → 422 birth_place_required · 둘 다 → 422 ambiguous_birth_place

출생지가 없으면 오류입니다. 다른 지역으로 대신 계산하지 않습니다.

시각(birth.time)이 없으면 시주는 null 입니다. 시계에 없던 시각은 422 time_nonexistent 입니다.

숨표AI 응답의 글(달력 · 대운 · 운세 · 지혜 리포트 · 하늘무늬 · 마음 척도 · 관상 · 손금)은 options 로 호칭과 어조를 고릅니다. options 를 보내지 않으면 2인칭 없이 읽히는 글(숨표 톤)입니다.

칸값뜻
options.addresseenone 기본호칭 없음 — 「당신은 뱀띠예요」가 「뱀띠예요」로 나옵니다
customer「고객님」
name「○○님」 — options.addressee_name 이 필요합니다
options.addressee_name20자 이하addressee 가 name 일 때만. 한글·영문 글자로 시작하고 끝나며 숫자·기호(가운뎃점·하이픈·마침표 제외)는 받지 않습니다. 끝의 「님」은 떼고 씁니다
options.tonewarm 기본숨표 톤 — 「~해요」
neutral보고서체 — 「~입니다」. 단정·의료·보장 금지는 같습니다

응답 meta.addressee · meta.tone 에 쓴 값을 돌려줍니다. 이름은 돌려주지 않습니다.

모르는 값은 422 unsupported_capability, 이름 칸 모양이 틀리면 400 malformed_request 입니다(error.field 에 칸 이름). 과금하지 않습니다.

이름은 고객사가 고른 표시용 문자열입니다. 계산에 쓰지 않고 저장하지 않으며, 그 요청의 응답 글에만 들어갑니다.

{
  "date": "2026-10-21",
  "birth": {
    "…": "…"
  },
  "options": {
    "addressee": "name",
    "addressee_name": "민준",
    "tone": "neutral"
  }
}

보낸 출생 정보는 저장하지 않고 계산을 마치면 버립니다. 계산 결과도 보관하지 않습니다.

이용 기관은 위탁자, 루첼라는 수탁자입니다. 이용자에게 위탁 사실을 알리고 필요한 동의를 받는 일은 이용 기관이 합니다.

이름·연락처·주소·회원 번호는 보내지 않습니다. 호칭용 표시 문자열 options.addressee_name 만 예외이며, 계산에 쓰지 않고 저장하지 않습니다.

OpenAPIOpenAPI YAMLPostmanTypeScript SDKPython SDKAsyncAPI

문의상태