Advanced1

API 통합 가이드

프로 사용자를 위한 상세 API 사용법

API 통합 가이드

Pro(¥1,400/월) 사용자를 위한 API 가이드입니다.


🔑 API 키 받기

  1. 대시보드에 로그인
  2. "API 키" 섹션으로 이동
  3. "새 키 생성" 클릭
  4. 키를 안전하게 저장

📡 엔드포인트

POST https://yamlforge.dev/api/convert

📝 요청 예제

YAML → JSON

curl -X POST https://yamlforge.dev/api/convert \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "input": "name: test\nversion: 1.0",
    "inputFormat": "yaml",
    "outputFormat": "json",
    "options": {
      "preserveAnchors": true,
      "preserveComments": true,
      "indentSize": 2
    }
  }'

응답

{
  "success": true,
  "output": "{\n  \"name\": \"test\",\n  \"version\": 1.0\n}",
  "metadata": {}
}

📊 속도 제한

플랜요청/시간
Pro1,000

❌ 오류 코드

코드설명
401인증 오류
400잘못된 입력
429속도 제한 초과
태그
#api#integration#pro#advanced#developer