본문으로 건너뛰기
Apidly Cloud
쿠키 정책

분석 및 광고 쿠키는 수락하지 않으면 꺼진 상태로 유지됩니다. 쿠키 정책

페이지 조회와 세션 녹화를 포함해 공개 페이지가 어떻게 사용되는지 파악하기 위해 Google Analytics와 Microsoft Clarity를, Reddit에서의 광고가 방문과 가입으로 이어지는지 측정하기 위해 Reddit Pixel을 사용하고자 합니다. 사용 여부는 여기에서 선택하실 수 있습니다. 거부해도 사이트 이용에는 변함이 없습니다.

API 레퍼런스: 웹훅

웹훅의 API v1 작업: 스코프, 매개변수, curl·JavaScript·Python 예시, 응답.

최종 업데이트 2026년 11월 21일읽는 데 6분
Markdown으로 보기

웹훅: API v1의 모든 작업을 필요한 스코프, 매개변수, curl·JavaScript·Python 예시와 응답으로 설명합니다. 인증, 오류, 페이지 나누기, 속도 제한, 멱등성은 API 레퍼런스 개요를 참고하세요. SDK와 명령줄 도구도 확인해 보세요.

내 키로 시도해 보기: 콘솔에서 API 키를 만들고 터미널에서 export APIDLY_API_KEY=...를 실행한 다음 아래 curl 예시를 붙여 넣으세요. 예시 값은 설명용입니다. 이 페이지에는 키를 입력하는 곳이 없습니다.

작업과 필드 설명은 API 정의에서 가져오며 영어로 되어 있습니다.

작업 필요한 스코프 요약
GET /webhooks full 웹훅 엔드포인트와 구독 가능한 이벤트 유형
POST /webhooks full 웹훅 엔드포인트 만들기
DELETE /webhooks/{id} full 웹훅 엔드포인트 삭제
PATCH /webhooks/{id} full 웹훅 엔드포인트 변경
GET /webhooks/{id}/deliveries full 엔드포인트 하나의 전송 로그(최신순)
POST /webhooks/{id}/rotate-secret full 새 서명 시크릿 발급
POST /webhooks/{id}/test full 테스트 이벤트 보내기
POST /webhooks/deliveries/{deliveryId}/redeliver full 과거 전송 하나 다시 보내기

GET /webhooks

웹훅 엔드포인트와 구독 가능한 이벤트 유형

Webhook endpoints carry signing details, so reading them needs webhooks.manage, which only the full scope reaches: a read or servers key gets 403 insufficient_scope.

필요한 스코프: full · 생성자 역할: admin · 권한: webhooks.manage

요청 예시 (curl)

curl "https://apidly.com/api/v1/webhooks" \
  -H "Authorization: Bearer $APIDLY_API_KEY"

JavaScript (SDK)

await apidly.webhooks.list();

Python (SDK)

client.webhooks.list()

명령줄 도구: apidly webhooks (CLI 레퍼런스)

응답 예시 (200)

{
  "webhooks": [
    {
      "id": "example",
      "url": "https://example.com/hook",
      "format": "json",
      "events": [
        "example"
      ],
      "description": "example",
      "active": false,
      "disabledReason": "example",
      "secretHint": "example",
      "consecutiveFailures": 1,
      "lastDeliveryAt": "2026-11-21T10:00:00.000Z",
      "lastSuccessAt": "2026-11-21T10:00:00.000Z",
      "createdAt": "2026-11-21T10:00:00.000Z",
      "secret": "example"
    }
  ],
  "events": [
    "example"
  ],
  "max": 1
}

오류 상태: 401, 403, 429.

POST /webhooks

웹훅 엔드포인트 만들기

The signing secret is shown only in this response. format picks the body: json (default, signed) or a chat app (slack, discord, teams), whose URL must be that app's incoming-webhook address (400 url_not_chat_webhook otherwise). Chat messages carry no signature header and never contain secrets, variable values or connection details.

필요한 스코프: full · 생성자 역할: admin

요청 본문

이름 유형 필수 설명
url string 예
format json | slack | discord | teams 아니요 json (default): the signed JSON envelope. slack, discord, teams: a short message in the organization's language, posted in that app's incoming-webhook shape, with no signature header; the URL must be that app's incoming-webhook address.
description string 아니요
events server.requested | server.approved | server.rejected | server.provisioning | server.running | server.stopped | server.interrupted | server.failed | server.destroyed | server.resumed | server.offline | server.back_online | server.disk_low | server.gpu_idle | server.rental_ending | server.rental_ended | plan.available | endpoint.created | endpoint.paused | endpoint.resumed | endpoint.scaled | endpoint.job.completed | payment.failed | balance.low | balance.exhausted | balance.topped_up | invoice.created | budget.threshold | alert.triggered | member.invited | member.joined | member.removed | api_key.created | api_key.revoked | api_key.rotated | api_key.updated | transfer.completed | transfer.failed | transfer.unverified | volume.created | volume.deleted | server.contract_expiring | server.contract_expired의 배열 예 Event types to receive. server.contract_expiring and server.contract_expired are deprecated names of server.rental_ending and server.rental_ended, removed after 2027-05-31: a new subscription cannot select them (400 invalid_body); one that already lists an old name keeps it and receives the event under that old name until then, and under the current name after.

요청 예시 (curl)

curl -X POST "https://apidly.com/api/v1/webhooks" \
  -H "Authorization: Bearer $APIDLY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url":"https://example.com/hook","events":["server.requested"]}'

JavaScript (SDK)

await apidly.webhooks.create({
  url: "https://example.com/hook",
  events: [
    "server.requested"
  ]
});

Python (SDK)

client.webhooks.create(url="https://example.com/hook", events=["server.requested"])

명령줄 도구: apidly webhooks (CLI 레퍼런스)

응답 예시 (201)

{
  "webhook": {
    "id": "example",
    "url": "https://example.com/hook",
    "format": "json",
    "events": [
      "example"
    ],
    "description": "example",
    "active": false,
    "disabledReason": "example",
    "secretHint": "example",
    "consecutiveFailures": 1,
    "lastDeliveryAt": "2026-11-21T10:00:00.000Z",
    "lastSuccessAt": "2026-11-21T10:00:00.000Z",
    "createdAt": "2026-11-21T10:00:00.000Z",
    "secret": "example"
  },
  "endpoint": {
    "id": "example",
    "url": "https://example.com/hook",
    "format": "json",
    "events": [
      "example"
    ],
    "description": "example",
    "active": false,
    "disabledReason": "example",
    "secretHint": "example",
    "consecutiveFailures": 1,
    "lastDeliveryAt": "2026-11-21T10:00:00.000Z",
    "lastSuccessAt": "2026-11-21T10:00:00.000Z",
    "createdAt": "2026-11-21T10:00:00.000Z",
    "secret": "example"
  },
  "secret": "example"
}

오류 상태: 400, 401, 403, 429.

DELETE /webhooks/{id}

웹훅 엔드포인트 삭제

필요한 스코프: full · 생성자 역할: admin

매개변수

이름 위치 유형 필수 설명
id path string 예

요청 예시 (curl)

curl -X DELETE "https://apidly.com/api/v1/webhooks/webhook_example" \
  -H "Authorization: Bearer $APIDLY_API_KEY"

JavaScript (SDK)

await apidly.webhooks.delete("webhook_example");

Python (SDK)

client.webhooks.delete("webhook_example")

명령줄 도구: apidly webhooks (CLI 레퍼런스)

응답 예시 (200)

{
  "ok": false
}

오류 상태: 401, 403, 404, 429.

PATCH /webhooks/{id}

웹훅 엔드포인트 변경

Any of url, format, description, events and active. A new url or format is checked together (400 url_not_chat_webhook when a chat format gets an address that is not that app's). The secret is never returned; rotate it with POST /webhooks/{id}/rotate-secret.

필요한 스코프: full · 권한: webhooks.manage

매개변수

이름 위치 유형 필수 설명
id path string 예

요청 본문

이름 유형 필수 설명
url string 아니요
format json | slack | discord | teams 아니요 json (default): the signed JSON envelope. slack, discord, teams: a short message in the organization's language, posted in that app's incoming-webhook shape, with no signature header; the URL must be that app's incoming-webhook address.
description string 아니요
events server.requested | server.approved | server.rejected | server.provisioning | server.running | server.stopped | server.interrupted | server.failed | server.destroyed | server.resumed | server.offline | server.back_online | server.disk_low | server.gpu_idle | server.rental_ending | server.rental_ended | plan.available | endpoint.created | endpoint.paused | endpoint.resumed | endpoint.scaled | endpoint.job.completed | payment.failed | balance.low | balance.exhausted | balance.topped_up | invoice.created | budget.threshold | alert.triggered | member.invited | member.joined | member.removed | api_key.created | api_key.revoked | api_key.rotated | api_key.updated | transfer.completed | transfer.failed | transfer.unverified | volume.created | volume.deleted | server.contract_expiring | server.contract_expired의 배열 아니요 Event types to receive. server.contract_expiring and server.contract_expired are deprecated names of server.rental_ending and server.rental_ended, removed after 2027-05-31: a new subscription cannot select them (400 invalid_body); one that already lists an old name keeps it and receives the event under that old name until then, and under the current name after.
active boolean 아니요

요청 예시 (curl)

curl -X PATCH "https://apidly.com/api/v1/webhooks/webhook_example" \
  -H "Authorization: Bearer $APIDLY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url":"https://example.com/hook","format":"json","description":"example"}'

JavaScript (SDK)

await apidly.webhooks.update("webhook_example", {
  url: "https://example.com/hook",
  format: "json",
  description: "example"
});

Python (SDK)

client.webhooks.update("webhook_example")

명령줄 도구: apidly webhooks (CLI 레퍼런스)

응답 예시 (200)

{
  "webhook": {
    "id": "example",
    "url": "https://example.com/hook",
    "format": "json",
    "events": [
      "example"
    ],
    "description": "example",
    "active": false,
    "disabledReason": "example",
    "secretHint": "example",
    "consecutiveFailures": 1,
    "lastDeliveryAt": "2026-11-21T10:00:00.000Z",
    "lastSuccessAt": "2026-11-21T10:00:00.000Z",
    "createdAt": "2026-11-21T10:00:00.000Z",
    "secret": "example"
  }
}

오류 상태: 400, 401, 403, 404, 429.

GET /webhooks/{id}/deliveries

엔드포인트 하나의 전송 로그(최신순)

필요한 스코프: full · 생성자 역할: admin · 권한: webhooks.manage

매개변수

이름 위치 유형 필수 설명
id path string 예
limit query integer 아니요

요청 예시 (curl)

curl "https://apidly.com/api/v1/webhooks/webhook_example/deliveries?limit=20" \
  -H "Authorization: Bearer $APIDLY_API_KEY"

JavaScript (SDK)

await apidly.webhooks.listDeliveries("webhook_example", { limit: 20 });

Python (SDK)

client.webhooks.list_deliveries("webhook_example")

명령줄 도구: apidly webhooks (CLI 레퍼런스)

응답 예시 (200)

{
  "deliveries": [
    {
      "id": "example",
      "endpointId": "id_example",
      "eventId": "id_example",
      "type": "example",
      "status": "example",
      "attempts": 1,
      "isTest": false,
      "responseCode": 1,
      "responseSnippet": "example",
      "durationMs": 1,
      "lastAttemptAt": "2026-11-21T10:00:00.000Z",
      "nextAttemptAt": "2026-11-21T10:00:00.000Z",
      "createdAt": "2026-11-21T10:00:00.000Z"
    }
  ]
}

오류 상태: 401, 403, 404, 429.

POST /webhooks/{id}/rotate-secret

새 서명 시크릿 발급

The new secret is in this response only. The old one keeps signing for 24 hours so receivers can switch over.

필요한 스코프: full · 권한: webhooks.manage

매개변수

이름 위치 유형 필수 설명
id path string 예

요청 예시 (curl)

curl -X POST "https://apidly.com/api/v1/webhooks/webhook_example/rotate-secret" \
  -H "Authorization: Bearer $APIDLY_API_KEY"

JavaScript (SDK)

await apidly.webhooks.rotateSecret("webhook_example");

Python (SDK)

client.webhooks.rotate_secret("webhook_example")

명령줄 도구: apidly webhooks (CLI 레퍼런스)

응답 예시 (200)

{
  "webhook": {
    "id": "example",
    "url": "https://example.com/hook",
    "format": "json",
    "events": [
      "example"
    ],
    "description": "example",
    "active": false,
    "disabledReason": "example",
    "secretHint": "example",
    "consecutiveFailures": 1,
    "lastDeliveryAt": "2026-11-21T10:00:00.000Z",
    "lastSuccessAt": "2026-11-21T10:00:00.000Z",
    "createdAt": "2026-11-21T10:00:00.000Z",
    "secret": "example"
  },
  "endpoint": {
    "id": "example",
    "url": "https://example.com/hook",
    "format": "json",
    "events": [
      "example"
    ],
    "description": "example",
    "active": false,
    "disabledReason": "example",
    "secretHint": "example",
    "consecutiveFailures": 1,
    "lastDeliveryAt": "2026-11-21T10:00:00.000Z",
    "lastSuccessAt": "2026-11-21T10:00:00.000Z",
    "createdAt": "2026-11-21T10:00:00.000Z",
    "secret": "example"
  },
  "secret": "example"
}

오류 상태: 401, 403, 404, 429.

POST /webhooks/{id}/test

테스트 이벤트 보내기

A webhook.test event now (one attempt, never counted against the endpoint): the signed envelope for a json webhook, a short test message for a chat-app webhook.

필요한 스코프: full · 권한: webhooks.manage

매개변수

이름 위치 유형 필수 설명
id path string 예

요청 예시 (curl)

curl -X POST "https://apidly.com/api/v1/webhooks/webhook_example/test" \
  -H "Authorization: Bearer $APIDLY_API_KEY"

JavaScript (SDK)

await apidly.webhooks.test("webhook_example");

Python (SDK)

client.webhooks.test("webhook_example")

명령줄 도구: apidly webhooks (CLI 레퍼런스)

응답 예시 (200)

{
  "delivery": {
    "key": null
  }
}

오류 상태: 401, 403, 404, 429.

POST /webhooks/deliveries/{deliveryId}/redeliver

과거 전송 하나 다시 보내기

Same payload, new delivery row.

필요한 스코프: full · 권한: webhooks.manage

매개변수

이름 위치 유형 필수 설명
deliveryId path string 예

요청 예시 (curl)

curl -X POST "https://apidly.com/api/v1/webhooks/deliveries/webhook_example/redeliver" \
  -H "Authorization: Bearer $APIDLY_API_KEY"

JavaScript (SDK)

await apidly.webhooks.redeliver("webhook_example");

Python (SDK)

client.webhooks.redeliver("webhook_example")

명령줄 도구: apidly webhooks (CLI 레퍼런스)

응답 예시 (200)

{
  "delivery": {
    "key": null
  }
}

오류 상태: 401, 403, 404, 429.

써볼 준비가 되셨나요?

무료 계정을 만들고, 서버를 시작하고 싶을 때 크레딧을 충전하세요. 최소 충전 금액은 $10입니다.

무료 계정 만들기

도움이 되었나요?

해결되지 않았나요? 문의하기