이벤트 조회
웹훅을 놓쳤을 때를 대비해, 발생한 이벤트를 직접 조회할 수 있습니다.
이벤트 목록
GET /v1/events
| 쿼리 | 설명 |
|---|---|
type |
이벤트 종류 필터(예: document.completed) |
document_id |
특정 문서의 이벤트만 |
limit |
1~100 |
curl "https://api.pactery.com/v1/events?type=document.completed&limit=20" \
-H "Authorization: Bearer sk_live_..."
이벤트 단건 조회
GET /v1/events/{id}
{ "id": "evt_7h...", "object": "event", "type": "document.completed", "data": { "document_id": "doc_8sK2..." } }
이벤트 구조는 이벤트 종류와 페이로드를 참고하세요.