cURL
curl -X GET "https://api.bizmori.com/api/v2/orders/webhooks/WEBHOOK_ID/events?page=1&limit=20" \
-H "Authorization: Bearer YOUR_API_TOKEN"const webhookId = 'WEBHOOK_ID';
const params = new URLSearchParams({ page: 1, limit: 20 });
const response = await fetch(
`https://api.bizmori.com/api/v2/orders/webhooks/${webhookId}/events?${params}`,
{ headers: { 'Authorization': 'Bearer YOUR_API_TOKEN' } }
);
const data = await response.json();import requests
webhook_id = 'WEBHOOK_ID'
response = requests.get(
f'https://api.bizmori.com/api/v2/orders/webhooks/{webhook_id}/events',
headers={'Authorization': 'Bearer YOUR_API_TOKEN'},
params={'page': 1, 'limit': 20}
)
data = response.json()<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.bizmori.com/api/v2/orders/webhooks/{webhookId}/events",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.bizmori.com/api/v2/orders/webhooks/{webhookId}/events"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.bizmori.com/api/v2/orders/webhooks/{webhookId}/events")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.bizmori.com/api/v2/orders/webhooks/{webhookId}/events")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": {
"events": [
{
"id": 123,
"eventId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"eventType": "order.antiAi.completed",
"status": "PENDING",
"retries": 123,
"lastSentAt": "2023-11-07T05:31:56Z",
"createdAt": "2023-11-07T05:31:56Z"
}
],
"pagination": {
"page": 123,
"limit": 123,
"total": 123,
"totalPages": 123
}
}
}{
"code": "AUTH_NOT_AUTHENTICATED"
}{
"code": "AUTH_FORBIDDEN"
}{
"code": "WEBHOOK_NOT_FOUND"
}Webhooks
웹훅 이벤트 목록 조회
특정 웹훅의 전송 이벤트 목록을 페이지네이션으로 조회합니다. 테스트 API 키는 같은 owner의 테스트 엔드포인트 이벤트만 보며, live 또는 다른 owner ID는 WEBHOOK_NOT_FOUND를 반환합니다.
- 상태, 이벤트 타입, 전송 시각 포함
- 테스트 API 키는 같은 owner의 테스트 엔드포인트만 관리할 수 있습니다
GET
/
api
/
v2
/
orders
/
webhooks
/
{webhookId}
/
events
cURL
curl -X GET "https://api.bizmori.com/api/v2/orders/webhooks/WEBHOOK_ID/events?page=1&limit=20" \
-H "Authorization: Bearer YOUR_API_TOKEN"const webhookId = 'WEBHOOK_ID';
const params = new URLSearchParams({ page: 1, limit: 20 });
const response = await fetch(
`https://api.bizmori.com/api/v2/orders/webhooks/${webhookId}/events?${params}`,
{ headers: { 'Authorization': 'Bearer YOUR_API_TOKEN' } }
);
const data = await response.json();import requests
webhook_id = 'WEBHOOK_ID'
response = requests.get(
f'https://api.bizmori.com/api/v2/orders/webhooks/{webhook_id}/events',
headers={'Authorization': 'Bearer YOUR_API_TOKEN'},
params={'page': 1, 'limit': 20}
)
data = response.json()<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.bizmori.com/api/v2/orders/webhooks/{webhookId}/events",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.bizmori.com/api/v2/orders/webhooks/{webhookId}/events"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.bizmori.com/api/v2/orders/webhooks/{webhookId}/events")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.bizmori.com/api/v2/orders/webhooks/{webhookId}/events")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": {
"events": [
{
"id": 123,
"eventId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"eventType": "order.antiAi.completed",
"status": "PENDING",
"retries": 123,
"lastSentAt": "2023-11-07T05:31:56Z",
"createdAt": "2023-11-07T05:31:56Z"
}
],
"pagination": {
"page": 123,
"limit": 123,
"total": 123,
"totalPages": 123
}
}
}{
"code": "AUTH_NOT_AUTHENTICATED"
}{
"code": "AUTH_FORBIDDEN"
}{
"code": "WEBHOOK_NOT_FOUND"
}인증
외부 클라이언트 접근을 위한 Bearer API 키. 일반 키는 sk_ 접두사를 사용하고, 테스트 키는 sk_test_ 접두사로 모의 응답을 사용해 실제 처리나 크레딧 사용 없이 주문 흐름을 검증합니다.
경로 매개변수
웹훅 ID
응답
성공
Hide child attributes
Hide child attributes
Hide child attributes
Hide child attributes
이벤트 DB ID
이벤트 UUID
이벤트 타입
예시:
"order.antiAi.completed"
전송 상태
사용 가능한 옵션:
PENDING, SENT, RETRYING, FAILED 재시도 횟수
마지막 전송 시각
생성 시각
⌘I