API 레퍼런스
초안 및 첨부 파일
비공개 첨부 파일 저장소로 작성 화면 흐름을 구축합니다.
이 필터와 일치하는 작업이 없습니다.
POST
API 키/drafts작성 화면 초안 생성
작성 화면 초안 생성
curl https://sendhq.cc/api/v1/drafts \
-X POST \
-H "Authorization: Bearer $SENDHQ_API_KEY" \
-H "Content-Type: application/json" \
-d '{"from":"hello@example.com","to":["customer@example.net"],"subject":"Hello"}'{
"id": "dr_…",
"attachments": []
}GET
API 키/drafts작성 화면 초안 목록 조회
작성 화면 초안 목록 조회
curl https://sendhq.cc/api/v1/drafts \
-X GET \
-H "Authorization: Bearer $SENDHQ_API_KEY"{
"data": [],
"count": 0
}GET
API 키/drafts/:id초안과 첨부 파일 조회
초안과 첨부 파일 조회
curl https://sendhq.cc/api/v1/drafts/id_value \
-X GET \
-H "Authorization: Bearer $SENDHQ_API_KEY"{
"id": "dr_…",
"attachments": []
}PUT
API 키/drafts/:id초안 내용 교체
초안 내용 교체
curl https://sendhq.cc/api/v1/drafts/id_value \
-X PUT \
-H "Authorization: Bearer $SENDHQ_API_KEY" \
-H "Content-Type: application/json" \
-d '{"from":"hello@example.com","to":["customer@example.net"],"subject":"Updated subject","text":"Updated body"}'{
"id": "dr_…"
}DELETE
API 키/drafts/:id초안 삭제
초안 삭제
curl https://sendhq.cc/api/v1/drafts/id_value \
-X DELETE \
-H "Authorization: Bearer $SENDHQ_API_KEY"{
"ok": true
}POST
API 키/drafts/:id/attachments초안에 첨부 파일 업로드
원본 파일 바이트를 업로드합니다. Content-Type과 X-Filename을 설정하세요. 메시지 하나에는 최대 10개 파일, 총 10 MB까지 포함할 수 있습니다.
curl https://sendhq.cc/api/v1/drafts/id_value/attachments \
-X POST \
-H "Authorization: Bearer $SENDHQ_API_KEY" \
-H "Content-Type: application/pdf" \
-H "X-Filename: invoice.pdf" \
--data-binary @invoice.pdf{
"id": "att_…",
"filename": "invoice.pdf",
"sizeBytes": 48231,
"available": true
}GET
API 키/attachments/:id비공개 첨부 파일 다운로드
비공개 첨부 파일 다운로드
curl https://sendhq.cc/api/v1/attachments/id_value \
-X GET \
-H "Authorization: Bearer $SENDHQ_API_KEY"DELETE
API 키/attachments/:id비공개 첨부 파일 삭제
비공개 첨부 파일 삭제
curl https://sendhq.cc/api/v1/attachments/id_value \
-X DELETE \
-H "Authorization: Bearer $SENDHQ_API_KEY"{
"ok": true
}GET
API 키/sending-identities검증된 발신 ID 목록 조회
검증된 발신 ID 목록 조회
curl https://sendhq.cc/api/v1/sending-identities \
-X GET \
-H "Authorization: Bearer $SENDHQ_API_KEY"{
"domains": [],
"addresses": [],
"localParts": []
}