5분 첫 발송
개발자 콘솔로 이동 →- 할 수 있는 일시험 키로 첫 서명 요청을 보내 봐요
- 필요한 것회사 관리자 계정 · 터미널 하나
- 걸리는 시간약 5분 (실제 발송·차감 없음)
시험 키는 안전해요 문자·알림톡이 나가지 않고 발송권도 줄지 않아요. 서명 인증번호는 늘 123456 이에요. 그래도 받는 사람 번호는 내 번호나 010-0000-0000 같은 가짜 번호만 쓰세요. 자세한 건 시험 모드.
시험 키도 운영과 같은 주소(https://api.signdeal.kr)를 써요. 서버가 키(sk_test_ / sk_live_)로 시험과 실제를 갈라요.
① 시험 키 만들기
키는 개발자 콘솔의 키 탭(/console/keys)에서 「시험 키」로 만들어요. 앱의 API·연동 화면에서도 돼요. 회사 관리자이고 이메일 인증을 마쳤으면 바로 돼요. sk_test_… 는 한 번만 보이니 환경 변수에 넣어요. 한 조직에 최대 5개예요.
하는 일: 키가 맞는지, 시험 모드인지 확인해요
export SIGNDEAL_API_KEY=sk_test_EXAMPLE0000000000000000 curl https://api.signdeal.kr/api/usage \ -H "Authorization: Bearer $SIGNDEAL_API_KEY"
import { SignDeal } from '@signdeal/sdk';
const signdeal = new SignDeal(); // SIGNDEAL_API_KEY 를 읽어요
console.log(await signdeal.usage());from signdeal import SignDeal client = SignDeal() # SIGNDEAL_API_KEY 를 읽어요 print(client.usage())
MCP 로는 키를 만드는 단계가 없어요 — 키는 화면에서만 만들어요. 대신 AI 도구에 시험 키로 연결한 뒤 아래 단계를 말로 시키세요. 연결법은 MCP 로 붙이기.
{ "sandbox": true, "billing": "none",
"sandbox_daily_limit": 100, … }401 tenant_unresolved — 키가 없거나 틀려요
② 보낼 양식 고르기
API 로 보낼 수 있는 양식은 api_sendable: true 인 것뿐이에요. 고른 양식의 template_id 와 fields[].key 를 다음 단계에서 써요.
하는 일: 보낼 수 있는 양식 목록을 받아요
curl https://api.signdeal.kr/api/templates \ -H "Authorization: Bearer $SIGNDEAL_API_KEY"
const { data } = await signdeal.templates.list();
const tpl = data.find((t) => t.api_sendable);
console.log(tpl.template_id, tpl.fields.map((f) => f.key));tpl = next(t for t in client.templates.list()["data"] if t.get("api_sendable"))
print(tpl["template_id"], [f["key"] for f in tpl["fields"]])claude.ai 커넥터에는 시험 모드가 없어요 — 시험은 Claude Code + 시험 키로
{ "data": [ { "template_id": "tpl_example", "api_sendable": true,
"fields": [ { "key": "company_name", "required": true, … } ],
"quick_send_example": { "endpoint": "POST /api/send", "body": { … } } } ] }api_sendable 인 양식이 하나도 없어요 — 화면에서 양식을 먼저 만들어요
③ 미리 보기
preview: true 를 넣으면 보내지 않고 채워질 값만 보여 줘요. 항상 이것부터 하세요. 본문은 ② 에서 고른 양식의 quick_send_example.body 를 그대로 옮기고 받는 사람(to)과 ref 만 바꿔요. fields[] 에서 required: true 인 칸은 values 에 다 채워야 해요 — 하나라도 비면 422 예요.
하는 일: 보내지 않고 채워질 값과 받는 사람을 확인해요
# ② 의 첫 api_sendable 양식 quick_send_example.body 에 받는 사람·ref·preview 를 얹어요
curl -s https://api.signdeal.kr/api/templates \
-H "Authorization: Bearer $SIGNDEAL_API_KEY" \
| jq '[.data[] | select(.api_sendable)][0].quick_send_example.body
+ { "to": { "name": "홍길동", "phone": "010-0000-0000" },
"ref": "order-1234", "preview": true }' > send.json
curl -X POST https://api.signdeal.kr/api/send \
-H "Authorization: Bearer $SIGNDEAL_API_KEY" \
-H "Content-Type: application/json" \
-d @send.jsonconst preview = await signdeal.previewSend({
...tpl.quick_send_example.body, // template · values(필수 칸까지)
to: { name: '홍길동', phone: '010-0000-0000' },
ref: 'order-1234',
});
console.log(preview.resolved_fields);preview = client.preview_send(
tpl["quick_send_example"]["body"], # template · values(필수 칸까지)
to={"name": "홍길동", "phone": "010-0000-0000"},
ref="order-1234",
)
print(preview["resolved_fields"])claude.ai 커넥터에는 시험 모드가 없어요 — 시험은 Claude Code + 시험 키로
200 { "preview": true, "would_send": true, "resolved_fields": [ … ],
"recipients": [ … ] }422 missing_required — 필수 칸(required: true)을 안 채웠어요 (내 PDF 양식은 field_required) template_not_api_sendable — api_sendable 이 아닌 양식이에요
④ 실제로 보내기
③ 에서 preview 만 빼면 돼요. ref 는 우리 쪽 주문 번호예요. 같은 ref 로 다시 보내도 1건만 나가요. 시험 키는 문자가 가지 않으니 서명 링크가 필요하면 "delivery": "none" 을 더해 응답 signers[].sign_url 로 받아요.
하는 일: 계약 1건을 보내요 (시험 키라 차감 0)
# ③ 의 send.json 에서 preview 를 빼고 delivery 를 더해요
jq 'del(.preview) + { "delivery": "none" }' send.json > send-real.json
curl -X POST https://api.signdeal.kr/api/send \
-H "Authorization: Bearer $SIGNDEAL_API_KEY" \
-H "Content-Type: application/json" \
-d @send-real.jsonconst sent = await signdeal.send({
...tpl.quick_send_example.body,
to: { name: '홍길동', phone: '010-0000-0000' },
ref: 'order-1234',
delivery: 'none',
});
console.log(sent.contract_id, sent.signers[0].sign_url);sent = client.send(
tpl["quick_send_example"]["body"],
to={"name": "홍길동", "phone": "010-0000-0000"},
ref="order-1234",
delivery="none",
)
print(sent["contract_id"], sent["signers"][0]["sign_url"])claude.ai 커넥터에는 시험 모드가 없어요 — 시험은 Claude Code + 시험 키로
202 { "contract_id": "ct_example", "status": "sent",
"billing": { … }, "signers": [ { "sign_url": "https://example.com/…" } ] }429 sandbox_daily_limit — 시험 키 하루 한도를 넘었어요
받는 사람 화면에서 서명해 보세요. 순서는 휴대폰 번호 확인 → 인증번호(123456) → 「문서 자세히 보기」 안에서 서명 칸에 서명하고 「이 칸에 넣기」 → 「동의하고 계약 체결하기」 → 동의 3칸 체크 → 「계약 체결하기」예요. 링크는 서명 권한이 담긴 값이니 로그·채팅에 남기지 마세요.
⑤ 상태 확인
하는 일: 계약이 어디까지 갔는지 봐요
curl https://api.signdeal.kr/api/contracts/ct_example \ -H "Authorization: Bearer $SIGNDEAL_API_KEY"
const c = await signdeal.contracts.get(sent.contract_id); console.log(c.status, c.signers.map((s) => s.signer_status));
c = client.contracts.get(sent["contract_id"]) print(c["status"], [s["signer_status"] for s in c["signers"]])
claude.ai 커넥터에는 시험 모드가 없어요 — 시험은 Claude Code + 시험 키로
{ "contract_id": "ct_example", "status": "sent",
"signers": [ { "signer_status": "notified", "signed": false } ] }404 not_found — 계약 번호가 틀렸거나 다른 조직 계약이에요
양식에 따라 보내는 쪽 서명이 자동으로 들어가서 status 가 partially_signed 이고 signers 가 2명으로 올 수도 있어요. 변화를 계속 물어보지 말고 웹훅으로 받으세요 — 웹훅. 진짜로 보내기 전에는 운영 전 체크를 보세요.
자주 막히는 곳
키가 없거나 틀렸어요. 헤더가 Bearer 뒤에 공백 한 칸인지, 지운 키는 아닌지 봐요.
tenant_unresolvedAPI 로 보낼 수 없는 양식이에요. 목록에서 api_sendable: true 인 양식을 골라요.
template_not_api_sendable한 조직에 5개까지예요. 안 쓰는 키를 지우고 다시 만들어요.
오류 코드test_key_limitSDK 는 공개 준비 중이라 지금은 npm install 이 안 돼요. 같은 일을 curl 로 하면 결과가 같아요.