메인 콘텐츠로 건너뛰기
POST
/
api
/
v2
/
orders
/
webhooks
cURL
curl -X POST https://morimori.app/api/v2/orders/webhooks \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "My Webhook",
    "url": "https://example.com/webhook"
  }'
{
  "data": {
    "id": 123,
    "name": "<string>",
    "secret": "<string>"
  }
}

인증

Authorization
string
header
필수

외부 클라이언트 접근을 위한 API 키

본문

application/json
url
string<uri>
필수

웹훅 엔드포인트 URL

예시:

"https://example.com/webhook"

name
string

웹훅 이름 (식별용)

Maximum string length: 100

응답

웹훅 생성 성공

data
object