krapio
Library referenceTypes

WebhookEvent

type WebhookEvent = Omit<ApiEvent, "type" | "data"> & {
  data:   | MapEventData
     | {
     nonce: string;
   }
     | Record<string, unknown>;
  type: EventType | "webhook.test" | "webhook.verify";
};

one webhook delivery; test and verify sends carry id 0, the real id is in the Krunker-Event-Id header

Type Declaration

NameType
data| MapEventData | { nonce: string; } | Record<string, unknown>
typeEventType | "webhook.test" | "webhook.verify"

On this page