@squidcloud/backend
    Preparing search index...

    Interface WebhookRequest<T>

    The context provided to a webhook function.

    interface WebhookRequest<T = any> {
        body: T;
        files?: SquidFile[];
        headers: Record<string, string>;
        httpMethod: "post" | "get" | "delete" | "put";
        queryParams: Record<string, string>;
        rawBody?: string;
    }

    Type Parameters

    • T = any
    Index

    Properties

    body: T

    The parsed body of the webhook request.

    files?: SquidFile[]

    An array of files uploaded with the webhook request, if any.

    headers: Record<string, string>

    A record of HTTP headers included in the webhook request.

    httpMethod: "post" | "get" | "delete" | "put"

    The HTTP method used for the webhook request.

    queryParams: Record<string, string>

    A record of query parameters included in the webhook request.

    rawBody?: string

    The unparsed body of the webhook request as a string, if available.