Table of Contents

Class CreateWebhookResponse

Namespace
Mailtrap.Webhooks.Responses
Assembly
Mailtrap.Abstractions.dll

Response object for webhook creation.

public sealed record CreateWebhookResponse : Webhook, IEquatable<Webhook>, IEquatable<CreateWebhookResponse>
Inheritance
CreateWebhookResponse
Implements
Inherited Members

Remarks

Extends Webhook with SigningSecret, which is only returned upon webhook creation.

Properties

SigningSecret

Gets or sets the secret key for verifying webhook payload signatures using HMAC SHA-256.

[JsonPropertyName("signing_secret")]
[JsonPropertyOrder(9)]
public string SigningSecret { get; set; }

Property Value

string

Signing secret.

Remarks

Only returned at creation time. Store it securely - it cannot be retrieved later.