{
 "openapi": "3.1.1",
 "info": {
  "title": "루첼라 API — 바이오링크 API",
  "version": "2026-10-21",
  "description": "바이오링크 API. 인증은 머리말 X-Lucela-API-Key 하나, 성공·오류는 같은 네 칸 봉투(status · data · error · meta)."
 },
 "servers": [
  {
   "url": "https://apis.lucela.kr"
  }
 ],
 "tags": [
  {
   "name": "바이오링크 API",
   "description": "종 판별 · 돌봄 일정 · 안전 도감 · 응급 신호 · 관찰 기록 · 지식 카드 · 종 정보 · 돌봄 지침"
  }
 ],
 "paths": {
  "/v1/biolinc/species/candidates": {
   "post": {
    "tags": [
     "바이오링크 API"
    ],
    "summary": "종 후보 판별",
    "description": "사진 한 장 → 갈래 후보(확정 아님)",
    "operationId": "post_v1_biolinc_species_candidates",
    "x-lucela-mcp-tool": "biolinc_identify_species",
    "security": [
     {
      "ApiKey": []
     }
    ],
    "x-implementation-status": "SANDBOX_ONLY",
    "x-lucela-billing-unit": "성공 계산 5 · 1회 = 5회분",
    "x-lucela-unit-weight": 5,
    "x-lucela-response-fields": "data(identified · kind · kind_name · kind_confidence · species_candidate · alternatives[] · limitations[] · confirmed) · meta(request_id · environment · synthetic · schema_version · warnings · engine_version · reference_only · notice · client_reference(보냈을 때) · fixture_id(시험 키일 때))",
    "responses": {
     "200": {
      "description": "성공 — 봉투 한 모양",
      "content": {
       "application/json": {
        "schema": {
         "allOf": [
          {
           "$ref": "#/components/schemas/Envelope"
          },
          {
           "type": "object",
           "properties": {
            "data": {
             "type": "object",
             "properties": {
              "identified": {},
              "kind": {},
              "kind_name": {},
              "kind_confidence": {},
              "species_candidate": {},
              "alternatives": {
               "type": "array",
               "items": {}
              },
              "limitations": {
               "type": "array",
               "items": {}
              },
              "confirmed": {}
             },
             "required": [
              "identified",
              "kind",
              "kind_name",
              "kind_confidence",
              "species_candidate",
              "alternatives",
              "limitations",
              "confirmed"
             ]
            },
            "meta": {
             "type": "object",
             "properties": {
              "request_id": {},
              "environment": {},
              "synthetic": {},
              "schema_version": {},
              "warnings": {},
              "engine_version": {},
              "reference_only": {},
              "notice": {},
              "client_reference": {},
              "fixture_id": {}
             },
             "required": [
              "request_id",
              "environment",
              "synthetic",
              "schema_version",
              "warnings",
              "engine_version",
              "reference_only",
              "notice"
             ]
            }
           }
          }
         ]
        }
       }
      }
     },
     "400": {
      "$ref": "#/components/responses/E400"
     },
     "401": {
      "$ref": "#/components/responses/E401"
     },
     "403": {
      "$ref": "#/components/responses/E403"
     },
     "409": {
      "$ref": "#/components/responses/E409"
     },
     "413": {
      "$ref": "#/components/responses/E413"
     },
     "422": {
      "$ref": "#/components/responses/E422"
     },
     "429": {
      "$ref": "#/components/responses/E429"
     },
     "502": {
      "$ref": "#/components/responses/E502"
     },
     "503": {
      "$ref": "#/components/responses/E503"
     }
    },
    "parameters": [
     {
      "name": "Idempotency-Key",
      "in": "header",
      "required": true,
      "schema": {
       "type": "string",
       "pattern": "^[A-Za-z0-9_-]{16,128}$"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "type": "object",
        "properties": {
         "image_b64": {
          "description": "JPEG · PNG · WebP · 디코드 1MiB 이하"
         },
         "client_reference": {
          "description": "64자 이하 · 개인정보 금지"
         },
         "fixture_id": {
          "description": "시험 키 전용 — 시험 키는 이 칸과 client_reference 만 받는다"
         }
        },
        "required": [
         "image_b64"
        ],
        "additionalProperties": false
       },
       "example": {
        "fixture_id": "fx_species_pet"
       }
      }
     }
    }
   }
  },
  "/v1/biolinc/care/templates": {
   "get": {
    "tags": [
     "바이오링크 API"
    ],
    "summary": "돌봄 일정 템플릿 조회",
    "description": "갈래별 돌봄 일정 출발점(제목 · 주기)",
    "operationId": "get_v1_biolinc_care_templates",
    "x-lucela-mcp-tool": "biolinc_list_care_templates",
    "security": [
     {
      "ApiKey": []
     }
    ],
    "x-implementation-status": "AVAILABLE",
    "x-lucela-billing-unit": "성공 응답 1",
    "x-lucela-unit-weight": 1,
    "x-lucela-response-fields": "data(templates[](kind · kind_name · tasks[](title · every_days))) · meta(request_id · environment · synthetic · schema_version · warnings · engine_version · reference_only · notice · basis)",
    "responses": {
     "200": {
      "description": "성공 — 봉투 한 모양",
      "content": {
       "application/json": {
        "schema": {
         "allOf": [
          {
           "$ref": "#/components/schemas/Envelope"
          },
          {
           "type": "object",
           "properties": {
            "data": {
             "type": "object",
             "properties": {
              "templates": {
               "type": "array",
               "items": {
                "type": "object",
                "properties": {
                 "kind": {},
                 "kind_name": {},
                 "tasks": {
                  "type": "array",
                  "items": {
                   "type": "object",
                   "properties": {
                    "title": {},
                    "every_days": {}
                   },
                   "required": [
                    "title",
                    "every_days"
                   ]
                  }
                 }
                },
                "required": [
                 "kind",
                 "kind_name",
                 "tasks"
                ]
               }
              }
             },
             "required": [
              "templates"
             ]
            },
            "meta": {
             "type": "object",
             "properties": {
              "request_id": {},
              "environment": {},
              "synthetic": {},
              "schema_version": {},
              "warnings": {},
              "engine_version": {},
              "reference_only": {},
              "notice": {},
              "basis": {}
             },
             "required": [
              "request_id",
              "environment",
              "synthetic",
              "schema_version",
              "warnings",
              "engine_version",
              "reference_only",
              "notice",
              "basis"
             ]
            }
           }
          }
         ]
        }
       }
      }
     },
     "400": {
      "$ref": "#/components/responses/E400"
     },
     "401": {
      "$ref": "#/components/responses/E401"
     },
     "403": {
      "$ref": "#/components/responses/E403"
     },
     "429": {
      "$ref": "#/components/responses/E429"
     },
     "503": {
      "$ref": "#/components/responses/E503"
     }
    },
    "parameters": [
     {
      "name": "kind",
      "in": "query",
      "required": false,
      "schema": {
       "type": "string"
      },
      "description": "plant · insect · pet · reptile — 없으면 넷 모두"
     }
    ]
   }
  },
  "/v1/biolinc/safety/entries": {
   "get": {
    "tags": [
     "바이오링크 API"
    ],
    "summary": "안전 도감 찾기",
    "description": "독성 식물 · 위험 음식의 위험 단계",
    "operationId": "get_v1_biolinc_safety_entries",
    "x-lucela-mcp-tool": "biolinc_search_safety_entries",
    "security": [
     {
      "ApiKey": []
     }
    ],
    "x-implementation-status": "SANDBOX_ONLY",
    "x-lucela-billing-unit": "성공 응답 1",
    "x-lucela-unit-weight": 1,
    "x-lucela-response-fields": "data(total · items[](name · category · level · level_name · who · applies_to[] · note)) · meta(request_id · environment · synthetic · schema_version · warnings · engine_version · reference_only · notice · basis)",
    "responses": {
     "200": {
      "description": "성공 — 봉투 한 모양",
      "content": {
       "application/json": {
        "schema": {
         "allOf": [
          {
           "$ref": "#/components/schemas/Envelope"
          },
          {
           "type": "object",
           "properties": {
            "data": {
             "type": "object",
             "properties": {
              "total": {},
              "items": {
               "type": "array",
               "items": {
                "type": "object",
                "properties": {
                 "name": {},
                 "category": {},
                 "level": {},
                 "level_name": {},
                 "who": {},
                 "applies_to": {
                  "type": "array",
                  "items": {}
                 },
                 "note": {}
                },
                "required": [
                 "name",
                 "category",
                 "level",
                 "level_name",
                 "who",
                 "applies_to",
                 "note"
                ]
               }
              }
             },
             "required": [
              "total",
              "items"
             ]
            },
            "meta": {
             "type": "object",
             "properties": {
              "request_id": {},
              "environment": {},
              "synthetic": {},
              "schema_version": {},
              "warnings": {},
              "engine_version": {},
              "reference_only": {},
              "notice": {},
              "basis": {}
             },
             "required": [
              "request_id",
              "environment",
              "synthetic",
              "schema_version",
              "warnings",
              "engine_version",
              "reference_only",
              "notice",
              "basis"
             ]
            }
           }
          }
         ]
        }
       }
      }
     },
     "400": {
      "$ref": "#/components/responses/E400"
     },
     "401": {
      "$ref": "#/components/responses/E401"
     },
     "403": {
      "$ref": "#/components/responses/E403"
     },
     "429": {
      "$ref": "#/components/responses/E429"
     },
     "503": {
      "$ref": "#/components/responses/E503"
     }
    },
    "parameters": [
     {
      "name": "q",
      "in": "query",
      "required": false,
      "schema": {
       "type": "string"
      },
      "description": "이름 일부 · 2~40자"
     },
     {
      "name": "category",
      "in": "query",
      "required": false,
      "schema": {
       "type": "string"
      },
      "description": "plant · food"
     },
     {
      "name": "level",
      "in": "query",
      "required": false,
      "schema": {
       "type": "string"
      },
      "description": "danger · caution · safe"
     },
     {
      "name": "species",
      "in": "query",
      "required": false,
      "schema": {
       "type": "string"
      },
      "description": "dog · cat · bird · small_pet"
     },
     {
      "name": "limit",
      "in": "query",
      "required": false,
      "schema": {
       "type": "integer",
       "minimum": 1,
       "maximum": 50
      },
      "description": "정수 1~50 · 기본 50"
     }
    ]
   }
  },
  "/v1/biolinc/emergency/triage": {
   "post": {
    "tags": [
     "바이오링크 API"
    ],
    "summary": "응급 신호 판정",
    "description": "문장 → 응급 · 관찰 · 일상 단계와 연락 안내",
    "operationId": "post_v1_biolinc_emergency_triage",
    "x-lucela-mcp-tool": "biolinc_triage_emergency",
    "security": [
     {
      "ApiKey": []
     }
    ],
    "x-implementation-status": "SANDBOX_ONLY",
    "x-lucela-billing-unit": "성공 계산 1",
    "x-lucela-unit-weight": 1,
    "x-lucela-response-fields": "data(level(emergency · watch · routine 중 하나) · signals[](code · label · contact) · confirm · guidance[]) · meta(request_id · environment · synthetic · schema_version · warnings · engine_version · reference_only · notice · client_reference(보냈을 때) · fixture_id(시험 키일 때))",
    "responses": {
     "200": {
      "description": "성공 — 봉투 한 모양",
      "content": {
       "application/json": {
        "schema": {
         "allOf": [
          {
           "$ref": "#/components/schemas/Envelope"
          },
          {
           "type": "object",
           "properties": {
            "data": {
             "type": "object",
             "properties": {
              "level": {
               "enum": [
                "emergency",
                "watch",
                "routine"
               ]
              },
              "signals": {
               "type": "array",
               "items": {
                "type": "object",
                "properties": {
                 "code": {},
                 "label": {},
                 "contact": {}
                },
                "required": [
                 "code",
                 "label",
                 "contact"
                ]
               }
              },
              "confirm": {},
              "guidance": {
               "type": "array",
               "items": {}
              }
             },
             "required": [
              "level",
              "signals",
              "confirm",
              "guidance"
             ]
            },
            "meta": {
             "type": "object",
             "properties": {
              "request_id": {},
              "environment": {},
              "synthetic": {},
              "schema_version": {},
              "warnings": {},
              "engine_version": {},
              "reference_only": {},
              "notice": {},
              "client_reference": {},
              "fixture_id": {}
             },
             "required": [
              "request_id",
              "environment",
              "synthetic",
              "schema_version",
              "warnings",
              "engine_version",
              "reference_only",
              "notice"
             ]
            }
           }
          }
         ]
        }
       }
      }
     },
     "400": {
      "$ref": "#/components/responses/E400"
     },
     "401": {
      "$ref": "#/components/responses/E401"
     },
     "403": {
      "$ref": "#/components/responses/E403"
     },
     "409": {
      "$ref": "#/components/responses/E409"
     },
     "413": {
      "$ref": "#/components/responses/E413"
     },
     "422": {
      "$ref": "#/components/responses/E422"
     },
     "429": {
      "$ref": "#/components/responses/E429"
     },
     "502": {
      "$ref": "#/components/responses/E502"
     },
     "503": {
      "$ref": "#/components/responses/E503"
     }
    },
    "parameters": [
     {
      "name": "Idempotency-Key",
      "in": "header",
      "required": true,
      "schema": {
       "type": "string",
       "pattern": "^[A-Za-z0-9_-]{16,128}$"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "type": "object",
        "properties": {
         "text": {
          "description": "500자 이하"
         },
         "client_reference": {
          "description": "64자 이하 · 개인정보 금지"
         },
         "fixture_id": {
          "description": "시험 키 전용 — 시험 키는 이 칸과 client_reference 만 받는다"
         }
        },
        "required": [
         "text"
        ],
        "additionalProperties": false
       },
       "example": {
        "fixture_id": "fx_triage_toxin"
       }
      }
     }
    }
   }
  },
  "/v1/biolinc/observations/summary": {
   "post": {
    "tags": [
     "바이오링크 API"
    ],
    "summary": "관찰 기록 요약",
    "description": "보낸 기록 → 지표별 처음 · 마지막 · 변화 · 빈 날",
    "operationId": "post_v1_biolinc_observations_summary",
    "x-lucela-mcp-tool": "biolinc_summarize_observations",
    "security": [
     {
      "ApiKey": []
     }
    ],
    "x-implementation-status": "SANDBOX_ONLY",
    "x-lucela-billing-unit": "성공 계산 1",
    "x-lucela-unit-weight": 1,
    "x-lucela-response-fields": "data(kind · kind_name · period(from · to · days · records) · metrics[](id · count · first · last · min · max · mean · change · change_pct) · gaps(missing_days · longest_gap_days) · special_days[]) · meta(request_id · environment · synthetic · schema_version · warnings · engine_version · reference_only · notice · client_reference(보냈을 때) · fixture_id(시험 키일 때))",
    "responses": {
     "200": {
      "description": "성공 — 봉투 한 모양",
      "content": {
       "application/json": {
        "schema": {
         "allOf": [
          {
           "$ref": "#/components/schemas/Envelope"
          },
          {
           "type": "object",
           "properties": {
            "data": {
             "type": "object",
             "properties": {
              "kind": {},
              "kind_name": {},
              "period": {
               "type": "object",
               "properties": {
                "from": {},
                "to": {},
                "days": {},
                "records": {}
               },
               "required": [
                "from",
                "to",
                "days",
                "records"
               ]
              },
              "metrics": {
               "type": "array",
               "items": {
                "type": "object",
                "properties": {
                 "id": {},
                 "count": {},
                 "first": {},
                 "last": {},
                 "min": {},
                 "max": {},
                 "mean": {},
                 "change": {},
                 "change_pct": {}
                },
                "required": [
                 "id",
                 "count",
                 "first",
                 "last",
                 "min",
                 "max",
                 "mean",
                 "change",
                 "change_pct"
                ]
               }
              },
              "gaps": {
               "type": "object",
               "properties": {
                "missing_days": {},
                "longest_gap_days": {}
               },
               "required": [
                "missing_days",
                "longest_gap_days"
               ]
              },
              "special_days": {
               "type": "array",
               "items": {}
              }
             },
             "required": [
              "kind",
              "kind_name",
              "period",
              "metrics",
              "gaps",
              "special_days"
             ]
            },
            "meta": {
             "type": "object",
             "properties": {
              "request_id": {},
              "environment": {},
              "synthetic": {},
              "schema_version": {},
              "warnings": {},
              "engine_version": {},
              "reference_only": {},
              "notice": {},
              "client_reference": {},
              "fixture_id": {}
             },
             "required": [
              "request_id",
              "environment",
              "synthetic",
              "schema_version",
              "warnings",
              "engine_version",
              "reference_only",
              "notice"
             ]
            }
           }
          }
         ]
        }
       }
      }
     },
     "400": {
      "$ref": "#/components/responses/E400"
     },
     "401": {
      "$ref": "#/components/responses/E401"
     },
     "403": {
      "$ref": "#/components/responses/E403"
     },
     "409": {
      "$ref": "#/components/responses/E409"
     },
     "413": {
      "$ref": "#/components/responses/E413"
     },
     "422": {
      "$ref": "#/components/responses/E422"
     },
     "429": {
      "$ref": "#/components/responses/E429"
     },
     "502": {
      "$ref": "#/components/responses/E502"
     },
     "503": {
      "$ref": "#/components/responses/E503"
     }
    },
    "parameters": [
     {
      "name": "Idempotency-Key",
      "in": "header",
      "required": true,
      "schema": {
       "type": "string",
       "pattern": "^[A-Za-z0-9_-]{16,128}$"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "type": "object",
        "properties": {
         "kind": {
          "description": "plant · insect · pet · reptile"
         },
         "records": {
          "description": "1~60건 · 한 건 = date(YYYY-MM-DD) · values(지표 번호 → 숫자 1~14개) · special(특별한 날 표시)"
         },
         "client_reference": {
          "description": "64자 이하 · 개인정보 금지"
         },
         "fixture_id": {
          "description": "시험 키 전용 — 시험 키는 이 칸과 client_reference 만 받는다"
         }
        },
        "required": [
         "kind",
         "records"
        ],
        "additionalProperties": false
       },
       "example": {
        "fixture_id": "fx_summary_plant"
       }
      }
     }
    }
   }
  },
  "/v1/biolinc/knowledge/cards": {
   "get": {
    "tags": [
     "바이오링크 API"
    ],
    "summary": "지식 카드 찾기",
    "description": "갈래 · 주제별 돌봄 카드 목록(글은 상세에서)",
    "operationId": "get_v1_biolinc_knowledge_cards",
    "x-lucela-mcp-tool": "biolinc_search_knowledge_cards",
    "security": [
     {
      "ApiKey": []
     }
    ],
    "x-implementation-status": "AVAILABLE",
    "x-lucela-billing-unit": "성공 응답 1",
    "x-lucela-unit-weight": 1,
    "x-lucela-response-fields": "data(total · items[](id · group · group_name · topic · topic_name · title · risk · mode)) · meta(request_id · environment · synthetic · schema_version · warnings · engine_version · reference_only · notice · basis · knowledge_version)",
    "responses": {
     "200": {
      "description": "성공 — 봉투 한 모양",
      "content": {
       "application/json": {
        "schema": {
         "allOf": [
          {
           "$ref": "#/components/schemas/Envelope"
          },
          {
           "type": "object",
           "properties": {
            "data": {
             "type": "object",
             "properties": {
              "total": {},
              "items": {
               "type": "array",
               "items": {
                "type": "object",
                "properties": {
                 "id": {},
                 "group": {},
                 "group_name": {},
                 "topic": {},
                 "topic_name": {},
                 "title": {},
                 "risk": {},
                 "mode": {}
                },
                "required": [
                 "id",
                 "group",
                 "group_name",
                 "topic",
                 "topic_name",
                 "title",
                 "risk",
                 "mode"
                ]
               }
              }
             },
             "required": [
              "total",
              "items"
             ]
            },
            "meta": {
             "type": "object",
             "properties": {
              "request_id": {},
              "environment": {},
              "synthetic": {},
              "schema_version": {},
              "warnings": {},
              "engine_version": {},
              "reference_only": {},
              "notice": {},
              "basis": {},
              "knowledge_version": {}
             },
             "required": [
              "request_id",
              "environment",
              "synthetic",
              "schema_version",
              "warnings",
              "engine_version",
              "reference_only",
              "notice",
              "basis",
              "knowledge_version"
             ]
            }
           }
          }
         ]
        }
       }
      }
     },
     "400": {
      "$ref": "#/components/responses/E400"
     },
     "401": {
      "$ref": "#/components/responses/E401"
     },
     "403": {
      "$ref": "#/components/responses/E403"
     },
     "429": {
      "$ref": "#/components/responses/E429"
     },
     "503": {
      "$ref": "#/components/responses/E503"
     }
    },
    "parameters": [
     {
      "name": "q",
      "in": "query",
      "required": false,
      "schema": {
       "type": "string"
      },
      "description": "제목 · 글 일부 · 2~40자"
     },
     {
      "name": "group",
      "in": "query",
      "required": false,
      "schema": {
       "type": "string"
      },
      "description": "dog · cat · fish · bird · reptile · amphibian · small_pet · plant · insect · snail"
     },
     {
      "name": "topic",
      "in": "query",
      "required": false,
      "schema": {
       "type": "string"
      },
      "description": "food · environment · season · hazard · signs · daily · reference"
     },
     {
      "name": "mode",
      "in": "query",
      "required": false,
      "schema": {
       "type": "string"
      },
      "description": "own · link"
     },
     {
      "name": "risk",
      "in": "query",
      "required": false,
      "schema": {
       "type": "string"
      },
      "description": "safety_critical · care · info"
     },
     {
      "name": "limit",
      "in": "query",
      "required": false,
      "schema": {
       "type": "integer",
       "minimum": 1,
       "maximum": 50
      },
      "description": "정수 1~50 · 기본 50"
     }
    ]
   }
  },
  "/v1/biolinc/knowledge/cards/{card_id}": {
   "get": {
    "tags": [
     "바이오링크 API"
    ],
    "summary": "지식 카드 조회",
    "description": "카드 하나 — 루첼라가 쓴 글과 출처 링크(링크만 카드는 글 없이 링크)",
    "operationId": "get_v1_biolinc_knowledge_cards_card_id",
    "x-lucela-mcp-tool": "biolinc_get_knowledge_card",
    "security": [
     {
      "ApiKey": []
     }
    ],
    "x-implementation-status": "AVAILABLE",
    "x-lucela-billing-unit": "성공 응답 1",
    "x-lucela-unit-weight": 1,
    "x-lucela-response-fields": "data(id · group · group_name · topic · topic_name · title · risk · mode · points[] · sources[](provider · title · url · license · reuse · last_checked)) · meta(request_id · environment · synthetic · schema_version · warnings · engine_version · reference_only · notice · basis · knowledge_version)",
    "responses": {
     "200": {
      "description": "성공 — 봉투 한 모양",
      "content": {
       "application/json": {
        "schema": {
         "allOf": [
          {
           "$ref": "#/components/schemas/Envelope"
          },
          {
           "type": "object",
           "properties": {
            "data": {
             "type": "object",
             "properties": {
              "id": {},
              "group": {},
              "group_name": {},
              "topic": {},
              "topic_name": {},
              "title": {},
              "risk": {},
              "mode": {},
              "points": {
               "type": "array",
               "items": {}
              },
              "sources": {
               "type": "array",
               "items": {
                "type": "object",
                "properties": {
                 "provider": {},
                 "title": {},
                 "url": {},
                 "license": {},
                 "reuse": {},
                 "last_checked": {}
                },
                "required": [
                 "provider",
                 "title",
                 "url",
                 "license",
                 "reuse",
                 "last_checked"
                ]
               }
              }
             },
             "required": [
              "id",
              "group",
              "group_name",
              "topic",
              "topic_name",
              "title",
              "risk",
              "mode",
              "points",
              "sources"
             ]
            },
            "meta": {
             "type": "object",
             "properties": {
              "request_id": {},
              "environment": {},
              "synthetic": {},
              "schema_version": {},
              "warnings": {},
              "engine_version": {},
              "reference_only": {},
              "notice": {},
              "basis": {},
              "knowledge_version": {}
             },
             "required": [
              "request_id",
              "environment",
              "synthetic",
              "schema_version",
              "warnings",
              "engine_version",
              "reference_only",
              "notice",
              "basis",
              "knowledge_version"
             ]
            }
           }
          }
         ]
        }
       }
      }
     },
     "400": {
      "$ref": "#/components/responses/E400"
     },
     "401": {
      "$ref": "#/components/responses/E401"
     },
     "403": {
      "$ref": "#/components/responses/E403"
     },
     "404": {
      "$ref": "#/components/responses/E404"
     },
     "429": {
      "$ref": "#/components/responses/E429"
     },
     "503": {
      "$ref": "#/components/responses/E503"
     }
    },
    "parameters": [
     {
      "name": "card_id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string"
      },
      "description": "영소문자 · 숫자 · - 2~64자"
     }
    ]
   }
  },
  "/v1/biolinc/species/info": {
   "get": {
    "tags": [
     "바이오링크 API"
    ],
    "summary": "종 정보 찾기",
    "description": "국명 · 학명 · 과 · 목과 원문 상세 링크(국가생물종목록)",
    "operationId": "get_v1_biolinc_species_info",
    "x-lucela-mcp-tool": "biolinc_search_species_info",
    "security": [
     {
      "ApiKey": []
     }
    ],
    "x-implementation-status": "AVAILABLE",
    "x-lucela-billing-unit": "성공 응답 1",
    "x-lucela-unit-weight": 1,
    "x-lucela-response-fields": "data(total · items[](name_ko · scientific_name · family · order · taxon_sheet · guide_group · detail_url)) · meta(request_id · environment · synthetic · schema_version · warnings · engine_version · reference_only · notice · basis · attribution(name · version · publisher · license · url · detail_link_license))",
    "responses": {
     "200": {
      "description": "성공 — 봉투 한 모양",
      "content": {
       "application/json": {
        "schema": {
         "allOf": [
          {
           "$ref": "#/components/schemas/Envelope"
          },
          {
           "type": "object",
           "properties": {
            "data": {
             "type": "object",
             "properties": {
              "total": {},
              "items": {
               "type": "array",
               "items": {
                "type": "object",
                "properties": {
                 "name_ko": {},
                 "scientific_name": {},
                 "family": {},
                 "order": {},
                 "taxon_sheet": {},
                 "guide_group": {},
                 "detail_url": {}
                },
                "required": [
                 "name_ko",
                 "scientific_name",
                 "family",
                 "order",
                 "taxon_sheet",
                 "guide_group",
                 "detail_url"
                ]
               }
              }
             },
             "required": [
              "total",
              "items"
             ]
            },
            "meta": {
             "type": "object",
             "properties": {
              "request_id": {},
              "environment": {},
              "synthetic": {},
              "schema_version": {},
              "warnings": {},
              "engine_version": {},
              "reference_only": {},
              "notice": {},
              "basis": {},
              "attribution": {
               "type": "object",
               "properties": {
                "name": {},
                "version": {},
                "publisher": {},
                "license": {},
                "url": {},
                "detail_link_license": {}
               },
               "required": [
                "name",
                "version",
                "publisher",
                "license",
                "url",
                "detail_link_license"
               ]
              }
             },
             "required": [
              "request_id",
              "environment",
              "synthetic",
              "schema_version",
              "warnings",
              "engine_version",
              "reference_only",
              "notice",
              "basis",
              "attribution"
             ]
            }
           }
          }
         ]
        }
       }
      }
     },
     "400": {
      "$ref": "#/components/responses/E400"
     },
     "401": {
      "$ref": "#/components/responses/E401"
     },
     "403": {
      "$ref": "#/components/responses/E403"
     },
     "429": {
      "$ref": "#/components/responses/E429"
     },
     "503": {
      "$ref": "#/components/responses/E503"
     }
    },
    "parameters": [
     {
      "name": "q",
      "in": "query",
      "required": false,
      "schema": {
       "type": "string"
      },
      "description": "국명 · 학명 일부 · 2~40자"
     },
     {
      "name": "group",
      "in": "query",
      "required": false,
      "schema": {
       "type": "string"
      },
      "description": "dog · cat · fish · bird · reptile · amphibian · small_pet · plant · insect · snail"
     },
     {
      "name": "limit",
      "in": "query",
      "required": false,
      "schema": {
       "type": "integer",
       "minimum": 1,
       "maximum": 50
      },
      "description": "정수 1~50 · 기본 50"
     }
    ]
   }
  },
  "/v1/biolinc/care/guides": {
   "get": {
    "tags": [
     "바이오링크 API"
    ],
    "summary": "갈래별 돌봄 지침 조회",
    "description": "갈래 하나의 먹이 · 환경 · 계절 · 위험 · 이상 신호 · 일상 돌봄 카드",
    "operationId": "get_v1_biolinc_care_guides",
    "x-lucela-mcp-tool": "biolinc_list_care_guides",
    "security": [
     {
      "ApiKey": []
     }
    ],
    "x-implementation-status": "AVAILABLE",
    "x-lucela-billing-unit": "성공 응답 1",
    "x-lucela-unit-weight": 1,
    "x-lucela-response-fields": "data(group · group_name · topics[](topic · topic_name · cards[](id · title · risk · mode · points[] · sources[](provider · title · url)))) · meta(request_id · environment · synthetic · schema_version · warnings · engine_version · reference_only · notice · basis · knowledge_version)",
    "responses": {
     "200": {
      "description": "성공 — 봉투 한 모양",
      "content": {
       "application/json": {
        "schema": {
         "allOf": [
          {
           "$ref": "#/components/schemas/Envelope"
          },
          {
           "type": "object",
           "properties": {
            "data": {
             "type": "object",
             "properties": {
              "group": {},
              "group_name": {},
              "topics": {
               "type": "array",
               "items": {
                "type": "object",
                "properties": {
                 "topic": {},
                 "topic_name": {},
                 "cards": {
                  "type": "array",
                  "items": {
                   "type": "object",
                   "properties": {
                    "id": {},
                    "title": {},
                    "risk": {},
                    "mode": {},
                    "points": {
                     "type": "array",
                     "items": {}
                    },
                    "sources": {
                     "type": "array",
                     "items": {
                      "type": "object",
                      "properties": {
                       "provider": {},
                       "title": {},
                       "url": {}
                      },
                      "required": [
                       "provider",
                       "title",
                       "url"
                      ]
                     }
                    }
                   },
                   "required": [
                    "id",
                    "title",
                    "risk",
                    "mode",
                    "points",
                    "sources"
                   ]
                  }
                 }
                },
                "required": [
                 "topic",
                 "topic_name",
                 "cards"
                ]
               }
              }
             },
             "required": [
              "group",
              "group_name",
              "topics"
             ]
            },
            "meta": {
             "type": "object",
             "properties": {
              "request_id": {},
              "environment": {},
              "synthetic": {},
              "schema_version": {},
              "warnings": {},
              "engine_version": {},
              "reference_only": {},
              "notice": {},
              "basis": {},
              "knowledge_version": {}
             },
             "required": [
              "request_id",
              "environment",
              "synthetic",
              "schema_version",
              "warnings",
              "engine_version",
              "reference_only",
              "notice",
              "basis",
              "knowledge_version"
             ]
            }
           }
          }
         ]
        }
       }
      }
     },
     "400": {
      "$ref": "#/components/responses/E400"
     },
     "401": {
      "$ref": "#/components/responses/E401"
     },
     "403": {
      "$ref": "#/components/responses/E403"
     },
     "429": {
      "$ref": "#/components/responses/E429"
     },
     "503": {
      "$ref": "#/components/responses/E503"
     }
    },
    "parameters": [
     {
      "name": "group",
      "in": "query",
      "required": true,
      "schema": {
       "type": "string"
      },
      "description": "dog · cat · fish · bird · reptile · amphibian · small_pet · plant · insect · snail"
     },
     {
      "name": "topic",
      "in": "query",
      "required": false,
      "schema": {
       "type": "string"
      },
      "description": "food · environment · season · hazard · signs · daily · reference"
     }
    ]
   }
  }
 },
 "components": {
  "securitySchemes": {
   "ApiKey": {
    "type": "apiKey",
    "in": "header",
    "name": "X-Lucela-API-Key"
   },
   "LucelaDelegation": {
    "type": "oauth2",
    "description": "손님 위임 토큰 — 인가 코드 + PKCE(S256). 개인 자료는 이 토큰으로만 엽니다.",
    "flows": {
     "authorizationCode": {
      "authorizationUrl": "https://auth.lucela.kr/realms/lucela/protocol/openid-connect/auth",
      "tokenUrl": "https://auth.lucela.kr/realms/lucela/protocol/openid-connect/token",
      "refreshUrl": "https://auth.lucela.kr/realms/lucela/protocol/openid-connect/token",
      "scopes": {
       "openid": "회원번호(이 앱 전용)",
       "lucela.name.read": "이름",
       "email": "이메일",
       "soompyo.birth.read": "출생 연월일 · 태어난 시 · 양력/음력 · 성별"
      }
     }
    }
   },
   "AtelierProductToken": {
    "type": "http",
    "scheme": "bearer",
    "bearerFormat": "lcpt_",
    "description": "아틀리에 상품등록 토큰 — 범위: atelier.products:read · atelier.products:write · atelier.products:submit · atelier.catalog:review · atelier.catalog:publish · atelier.purchases:read · atelier.purchases:write · atelier.library:download"
   },
   "DirectDelegation": {
    "type": "http",
    "scheme": "bearer",
    "bearerFormat": "lcdd.",
    "description": "루첼라 다이렉트 연결 토큰 — https://direct.lucela.kr/connections 에서 발급 · 실제 키(X-Lucela-API-Key)와 함께 보낸다"
   }
  },
  "schemas": {
   "Envelope": {
    "type": "object",
    "required": [
     "status",
     "data",
     "error",
     "meta"
    ],
    "properties": {
     "status": {
      "const": "ok"
     },
     "data": {},
     "error": {
      "type": "null"
     },
     "meta": {
      "type": "object",
      "properties": {
       "request_id": {
        "type": "string"
       },
       "environment": {
        "enum": [
         "SANDBOX",
         "LIVE"
        ]
       },
       "synthetic": {
        "type": "boolean"
       },
       "schema_version": {
        "type": "string"
       },
       "warnings": {
        "type": "array",
        "items": {}
       }
      }
     }
    }
   },
   "ErrorEnvelope": {
    "type": "object",
    "required": [
     "status",
     "data",
     "error",
     "meta"
    ],
    "properties": {
     "status": {
      "const": "error"
     },
     "data": {
      "type": "null"
     },
     "error": {
      "type": "object",
      "required": [
       "code",
       "title",
       "status",
       "type",
       "detail",
       "instance"
      ],
      "properties": {
       "code": {
        "enum": [
         "ambiguous_birth_place",
         "approval_required",
         "birth_place_required",
         "birth_time_required",
         "consent_required",
         "contract_required",
         "delegation_required",
         "dependency_unavailable",
         "dpa_required",
         "engine_unavailable",
         "environment_mismatch",
         "idempotency_conflict",
         "insufficient_scope",
         "invalid_answers",
         "invalid_credential",
         "invalid_date",
         "invalid_features",
         "invalid_longitude",
         "invalid_time",
         "malformed_request",
         "media_not_ready",
         "method_not_allowed",
         "not_owner",
         "payload_too_large",
         "precondition_required",
         "processing_timeout",
         "provision_ack_required",
         "purpose_not_allowed",
         "quota_exhausted",
         "rate_limited",
         "resource_expired",
         "resource_not_found",
         "rights_denied",
         "sandbox_requires_fixture",
         "scale_version_mismatch",
         "scope_required",
         "service_paused",
         "source_failed",
         "state_conflict",
         "subject_age_not_supported",
         "time_nonexistent",
         "unknown_city_code",
         "unsafe_content",
         "unsupported_calendar",
         "unsupported_capability",
         "unsupported_jasi_method",
         "unsupported_lunar_basis",
         "unsupported_ruleset",
         "unsupported_timezone",
         "validation_blocked",
         "version_conflict"
        ]
       },
       "title": {
        "type": "string"
       },
       "status": {
        "type": "integer"
       },
       "type": {
        "type": "string"
       },
       "detail": {
        "type": "string"
       },
       "instance": {
        "type": "string",
        "format": "uri"
       },
       "field": {
        "type": "string"
       }
      }
     },
     "meta": {
      "type": "object",
      "properties": {
       "request_id": {
        "type": "string"
       }
      }
     }
    }
   }
  },
  "responses": {
   "E400": {
    "description": "malformed_request: 요청 형식이 맞지 않습니다 · provision_ack_required: 제공 개시 확인이 필요합니다",
    "content": {
     "application/json": {
      "schema": {
       "$ref": "#/components/schemas/ErrorEnvelope"
      }
     }
    }
   },
   "E401": {
    "description": "invalid_credential: 인증할 수 없습니다",
    "content": {
     "application/json": {
      "schema": {
       "$ref": "#/components/schemas/ErrorEnvelope"
      }
     }
    }
   },
   "E403": {
    "description": "scope_required: 이 키로는 쓸 수 없는 기능입니다 · contract_required: 이용 계약이 필요합니다 · rights_denied: 제공할 수 없는 자료입니다 · environment_mismatch: 환경이 맞지 않습니다 · dpa_required: 처리 위탁 문서 동의가 필요합니다 · delegation_required: 손님 위임 토큰이 필요합니다 · insufficient_scope: 허락받지 않은 범위입니다 · not_owner: 이 자료의 주인이 아닙니다 · approval_required: 사람 승인이 필요합니다",
    "content": {
     "application/json": {
      "schema": {
       "$ref": "#/components/schemas/ErrorEnvelope"
      }
     }
    }
   },
   "E404": {
    "description": "resource_not_found: 찾을 수 없습니다",
    "content": {
     "application/json": {
      "schema": {
       "$ref": "#/components/schemas/ErrorEnvelope"
      }
     }
    }
   },
   "E409": {
    "description": "idempotency_conflict: 같은 멱등 키로 다른 요청이 왔습니다 · version_conflict: 다른 변경이 먼저 반영됐습니다 · state_conflict: 지금 상태에서는 할 수 없습니다 · media_not_ready: 미디어 처리가 끝나지 않았습니다 · scale_version_mismatch: 척도 판이 맞지 않습니다",
    "content": {
     "application/json": {
      "schema": {
       "$ref": "#/components/schemas/ErrorEnvelope"
      }
     }
    }
   },
   "E413": {
    "description": "payload_too_large: 요청이 너무 큽니다",
    "content": {
     "application/json": {
      "schema": {
       "$ref": "#/components/schemas/ErrorEnvelope"
      }
     }
    }
   },
   "E422": {
    "description": "invalid_date: 날짜가 올바르지 않습니다 · invalid_time: 시각이 올바르지 않습니다 · unsupported_calendar: 지원하지 않는 달력입니다 · unsupported_timezone: 지원하지 않는 시간대입니다 · time_nonexistent: 존재하지 않는 시각입니다 · birth_time_required: 출생 시각이 필요합니다 · birth_place_required: 출생지가 필요합니다 · unknown_city_code: 알 수 없는 도시입니다 · ambiguous_birth_place: 출생지가 하나로 정해지지 않습니다 · invalid_longitude: 경도가 올바르지 않습니다 · unsupported_jasi_method: 지원하지 않는 자시 규칙입니다 · unsupported_lunar_basis: 지원하지 않는 음력 기준입니다 · unsupported_ruleset: 지원하지 않는 규칙입니다 · unsupported_capability: 지원하지 않는 기능입니다 · sandbox_requires_fixture: 샌드박스 키는 시험 입력만 받습니다 · invalid_answers: 응답 값이 올바르지 않습니다 · invalid_features: 특징 코드가 올바르지 않습니다 · consent_required: 이용자 동의 확인이 필요합니다 · purpose_not_allowed: 허용되지 않는 이용 목적입니다 · subject_age_not_supported: 지원하지 않는 이용자 연령입니다 · validation_blocked: 막힌 칸이 있습니다 · unsafe_content: 허용하지 않는 내용입니다",
    "content": {
     "application/json": {
      "schema": {
       "$ref": "#/components/schemas/ErrorEnvelope"
      }
     }
    }
   },
   "E429": {
    "description": "rate_limited: 요청이 너무 잦습니다 · quota_exhausted: 포함량을 모두 썼습니다",
    "content": {
     "application/json": {
      "schema": {
       "$ref": "#/components/schemas/ErrorEnvelope"
      }
     }
    }
   },
   "E502": {
    "description": "source_failed: 원천 응답에 문제가 있습니다",
    "content": {
     "application/json": {
      "schema": {
       "$ref": "#/components/schemas/ErrorEnvelope"
      }
     }
    }
   },
   "E503": {
    "description": "engine_unavailable: 계산 엔진을 쓸 수 없습니다 · dependency_unavailable: 지금은 처리할 수 없습니다 · service_paused: 서비스가 잠시 멈춰 있습니다",
    "content": {
     "application/json": {
      "schema": {
       "$ref": "#/components/schemas/ErrorEnvelope"
      }
     }
    }
   }
  }
 }
}
