Letters
편지 최종 저장 및 링크 생성 api
최종 편지 데이터를 DB에 저장하고 고유 ID를 반환합니다. 발신자 식별을 위해 인증 미들웨어가 적용됩니다.
post/api/letters
Request
- Base URL: http://54.180.159.211:8080
- URL: http://54.180.159.211:8080/api/letters
- Auth: cookieAuth (a scheme the document does not define)
Request body
Example request
{
"sender_id": 1,
"sender_name": "정화",
"receiver_name": "민수",
"category": "생일",
"content": "민수야, 생일 정말 축하해! 맛있는 거 많이 먹어!.",
"theme": 1,
"password": "1111"
}Response
편지 저장 및 링크 생성 성공
Example response
{
"success": true,
"data": {
"letter_id": "V1StG_K9_D9W9SpgS8",
"published_at": "2026-04-28T14:41:59Z"
}
}Changes
No recorded changes to this operation across all 1 revision of this API.