Skip to content
Search
Search the documentation
IntegrationCreateWebhookPayloadSchema
GitHub GitHub

IntegrationCreateWebhookPayloadSchema

Variable: IntegrationCreateWebhookPayloadSchema

const IntegrationCreateWebhookPayloadSchema: ZodMiniObject<{ data: ZodMiniObject<{ connection_id: ZodMiniString<string>; project: ZodMiniObject<{ id: ZodMiniString<string>; platform: ZodMiniEnum<{ discord: "discord"; roblox: "roblox"; }>; platform_id: ZodMiniString<string>; type: ZodMiniEnum<{ bot: "bot"; game: "game"; server: "server"; }>; }, $strip>; user: ZodMiniObject<{ avatar_url: ZodMiniURL; id: ZodMiniString<string>; name: ZodMiniString<string>; platform_id: ZodMiniString<string>; }, $strip>; webhook_secret: ZodMiniString<string>; }, $strip>; type: ZodMiniLiteral<"integration.create">; }, $strip>

Defined in: v1/schemas/integrations.ts:42

The payload delivered to your webhook endpoint when an integration connection is created. This will be sent if a user clicks “Connect” for your integration on the dashboard.

See

https://docs.top.gg/webhooks/integrations#the-handshake-flow