@makehq/sdk
    Preparing search index...

    Type Alias EventSubscriptionDeliveryAttempt

    One attempt to send a delivery's event to the endpoint.

    type EventSubscriptionDeliveryAttempt = {
        attemptedAt: string;
        attemptNumber: number;
        durationMs: number | null;
        manual: boolean;
        responseBody: string | null;
        responseBodyTruncated: boolean;
        status: {
            httpStatus: number | null;
            reason: "endpoint_error" | "endpoint_unreachable" | null;
            state: "succeeded" | "failed";
        };
    }
    Index

    Properties

    attemptedAt: string

    ISO 8601 timestamp of when the attempt was made

    attemptNumber: number

    Sequence number of the attempt

    durationMs: number | null

    How long the endpoint took to answer, in milliseconds

    manual: boolean

    true for an attempt started by a resend

    responseBody: string | null

    The endpoint's response, cut off at 4 KiB. It comes from the endpoint, so treat it as untrusted.

    responseBodyTruncated: boolean

    true when responseBody was cut off

    status: {
        httpStatus: number | null;
        reason: "endpoint_error" | "endpoint_unreachable" | null;
        state: "succeeded" | "failed";
    }

    Outcome of the attempt

    Type declaration

    • httpStatus: number | null

      HTTP status the endpoint answered with, if it answered

    • reason: "endpoint_error" | "endpoint_unreachable" | null

      Why the attempt failed, and null otherwise

    • state: "succeeded" | "failed"

      Outcome of the attempt