PacteryDevelopers

문서 조회

GET /v1/documents/{id}

문서 한 건을 서명자·필드와 함께 반환합니다. 진행 상태 추적의 기본 수단입니다.

요청 예시

curl https://api.pactery.com/v1/documents/doc_8sK2... \
  -H "Authorization: Bearer sk_live_..."

응답 (200)

{
  "id": "doc_8sK2...",
  "object": "document",
  "status": "sent",
  "title": "업무 위탁 계약서",
  "participants": [
    { "id": "par_1", "name": "홍길동", "role": "signer", "status": "signed", "signed_at": "2026-06-05T10:05:00+09:00" },
    { "id": "par_2", "name": "김담당", "role": "signer", "status": "viewed" }
  ],
  "completed_at": null
}

폴링한다면 최소 간격을 두고, 가능하면 웹훅으로 전환하세요.